[INFO] cloning repository https://github.com/INDA25PlusPlus/sofiefu-gui [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/INDA25PlusPlus/sofiefu-gui" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FINDA25PlusPlus%2Fsofiefu-gui", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FINDA25PlusPlus%2Fsofiefu-gui'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0a29b4ddba0c2a2189b6e1572a16419b47576bbb [INFO] checking INDA25PlusPlus/sofiefu-gui against try#6284d7b4bd27983dba388146648ab844ca7d032f for pr-152971 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FINDA25PlusPlus%2Fsofiefu-gui" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/INDA25PlusPlus/sofiefu-gui [INFO] finished tweaking git repo https://github.com/INDA25PlusPlus/sofiefu-gui [INFO] tweaked toml for git repo https://github.com/INDA25PlusPlus/sofiefu-gui written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/INDA25PlusPlus/sofiefu-gui on toolchain 6284d7b4bd27983dba388146648ab844ca7d032f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6284d7b4bd27983dba388146648ab844ca7d032f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/INDA25PlusPlus/sofiefu-gui already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6284d7b4bd27983dba388146648ab844ca7d032f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+6284d7b4bd27983dba388146648ab844ca7d032f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 95977f74718e5296482a85fd8848bdba7e21b0c4db84b1b0e1b2e9fabdf27591 [INFO] running `Command { std: "docker" "start" "-a" "95977f74718e5296482a85fd8848bdba7e21b0c4db84b1b0e1b2e9fabdf27591", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "95977f74718e5296482a85fd8848bdba7e21b0c4db84b1b0e1b2e9fabdf27591", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "95977f74718e5296482a85fd8848bdba7e21b0c4db84b1b0e1b2e9fabdf27591", kill_on_drop: false }` [INFO] [stdout] 95977f74718e5296482a85fd8848bdba7e21b0c4db84b1b0e1b2e9fabdf27591 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+6284d7b4bd27983dba388146648ab844ca7d032f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4dd8523347b1d0571939edcf0904b995640a4487190dca36083656f05a3b23bf [INFO] running `Command { std: "docker" "start" "-a" "4dd8523347b1d0571939edcf0904b995640a4487190dca36083656f05a3b23bf", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling xml-rs v0.8.27 [INFO] [stderr] Checking libloading v0.8.8 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling serde_core v1.0.226 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Checking crc32fast v1.5.0 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling camino v1.2.0 [INFO] [stderr] Checking ab_glyph_rasterizer v0.1.10 [INFO] [stderr] Checking flate2 v1.1.2 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Checking ab_glyph v0.2.31 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Checking euclid v0.22.11 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Checking libloading v0.7.4 [INFO] [stderr] Compiling ash v0.37.3+1.3.251 [INFO] [stderr] Compiling khronos-egl v4.1.0 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Compiling pulldown-cmark v0.9.6 [INFO] [stderr] Checking codespan-reporting v0.11.1 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking png v0.17.16 [INFO] [stderr] Checking gpu-descriptor-types v0.1.2 [INFO] [stderr] Checking spirv v0.2.0+1.5.4 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.1 [INFO] [stderr] Checking gpu-alloc-types v0.2.0 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Checking raw-window-handle v0.5.2 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Checking unicode-xid v0.2.6 [INFO] [stderr] Checking gpu-alloc v0.5.4 [INFO] [stderr] Checking wgpu-types v0.16.1 [INFO] [stderr] Compiling bytecount v0.6.9 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Checking glow v0.12.3 [INFO] [stderr] Checking gpu-descriptor v0.2.4 [INFO] [stderr] Checking lyon_geom v1.0.17 [INFO] [stderr] Checking profiling v1.0.17 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking rayon v1.11.0 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Checking float_next_after v1.0.0 [INFO] [stderr] Checking tiff v0.9.1 [INFO] [stderr] Checking glyph_brush_layout v0.2.4 [INFO] [stderr] Checking ordered-float v5.0.0 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Checking lyon_path v1.0.16 [INFO] [stderr] Checking zip v0.6.6 [INFO] [stderr] Checking glam v0.24.2 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Compiling winit v0.28.7 [INFO] [stderr] Checking ordered-float v3.9.2 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking nix v0.25.1 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Compiling serde_derive v1.0.226 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling bytemuck_derive v1.10.1 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Compiling tempfile v3.22.0 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking memmap2 v0.5.10 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking lyon_algorithms v1.0.16 [INFO] [stderr] Compiling semver v1.0.27 [INFO] [stderr] Checking lyon_tessellation v1.0.16 [INFO] [stderr] Checking glyph_brush_draw_cache v0.1.6 [INFO] [stderr] Checking x11-dl v2.21.0 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking directories v5.0.1 [INFO] [stderr] Compiling smart-default v0.7.1 [INFO] [stderr] Checking pollster v0.3.0 [INFO] [stderr] Checking twox-hash v2.1.2 [INFO] [stderr] Checking glyph_brush v0.7.12 [INFO] [stderr] Checking typed-arena v2.0.2 [INFO] [stderr] Checking lachess v0.1.0 (https://github.com/INDA25PlusPlus/wilmerfh-chess.git#3cdc1436) [INFO] [stderr] Checking wayland-commons v0.29.5 [INFO] [stderr] Checking bytemuck v1.23.2 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking lyon v1.0.16 [INFO] [stderr] Checking naga v0.12.3 [INFO] [stderr] Checking calloop v0.10.6 [INFO] [stderr] Checking tiny-skia-path v0.8.4 [INFO] [stderr] Checking image v0.24.9 [INFO] [stderr] Compiling crevice-derive v0.10.0 [INFO] [stderr] Checking crevice v0.13.0 [INFO] [stderr] Checking tiny-skia v0.8.4 [INFO] [stderr] Checking wayland-cursor v0.29.5 [INFO] [stderr] Compiling serde v1.0.226 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Compiling cargo-platform v0.1.9 [INFO] [stderr] Compiling cargo_metadata v0.14.2 [INFO] [stderr] Compiling skeptic v0.13.7 [INFO] [stderr] Compiling ggez v0.9.3 [INFO] [stderr] Checking wgpu-hal v0.16.2 [INFO] [stderr] Checking wgpu-core v0.16.1 [INFO] [stderr] Checking wgpu v0.16.3 [INFO] [stderr] Checking sctk-adwaita v0.5.4 [INFO] [stderr] Checking sofiefu_gui v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `lachess::*` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use lachess::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Board`, `PieceColor`, `Piece`, and `Position` [INFO] [stdout] --> src/main.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use lachess::{Board, Position, MoveResult, Piece, PieceType, PieceColor}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MouseButton` [INFO] [stdout] --> src/main.rs:8:39 [INFO] [stdout] | [INFO] [stdout] 8 | use ggez::event::{self, EventHandler, MouseButton}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::input::keyboard::KeyInput` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use ggez::input::keyboard::KeyInput; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> src/network.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EventHandler` [INFO] [stdout] --> src/main.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use ggez::event::{self, EventHandler, MouseButton}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | let (mut stream, client_addr) = listener.accept()?; // blocks until a client connects [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client_addr` [INFO] [stdout] --> src/network.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | let (mut stream, client_addr) = listener.accept()?; // blocks until a client connects [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut stream = TcpStream::connect(addr)?; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lachess::*` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use lachess::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Board`, `PieceColor`, `Piece`, and `Position` [INFO] [stdout] --> src/main.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use lachess::{Board, Position, MoveResult, Piece, PieceType, PieceColor}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MouseButton` [INFO] [stdout] --> src/main.rs:8:39 [INFO] [stdout] | [INFO] [stdout] 8 | use ggez::event::{self, EventHandler, MouseButton}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::input::keyboard::KeyInput` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use ggez::input::keyboard::KeyInput; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude::*` [INFO] [stdout] --> src/network.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/main.rs:226:26 [INFO] [stdout] | [INFO] [stdout] 226 | fn update(&mut self, ctx: &mut Context) -> GameResult<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece_type` [INFO] [stdout] --> src/main.rs:318:25 [INFO] [stdout] | [INFO] [stdout] 318 | let piece_type = piece.type_; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_piece_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/main.rs:339:63 [INFO] [stdout] | [INFO] [stdout] 339 | fn mouse_button_down_event(&mut self, _ctx: &mut Context, button: event::MouseButton, x: f32, y: f32,) -> GameResult { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:389:21 [INFO] [stdout] | [INFO] [stdout] 389 | let mut state = MainState::new(&mut ctx, true, true, stream); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:401:21 [INFO] [stdout] | [INFO] [stdout] 401 | let mut state = MainState::new(&mut ctx, false, false, stream); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:392:17 [INFO] [stdout] | [INFO] [stdout] 392 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:404:17 [INFO] [stdout] | [INFO] [stdout] 404 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `side` should have an upper case name [INFO] [stdout] --> src/main.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const side: f32 = 60.0; // pixels per square [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 12 - const side: f32 = 60.0; // pixels per square [INFO] [stdout] 12 + const SIDE: f32 = 60.0; // pixels per square [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `chA` should have a snake case name [INFO] [stdout] --> src/main.rs:184:33 [INFO] [stdout] | [INFO] [stdout] 184 | ... if let Some(chA) = my_msg.chars().nth(i) && let Some(chB) = msg.chars().nth(i) { if chA != chB { self.rage_quit(); } } [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ch_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `chB` should have a snake case name [INFO] [stdout] --> src/main.rs:184:74 [INFO] [stdout] | [INFO] [stdout] 184 | ... if let Some(chA) = my_msg.chars().nth(i) && let Some(chB) = msg.chars().nth(i) { if chA != chB { self.rage_quit(); } } [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ch_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:184:118 [INFO] [stdout] | [INFO] [stdout] 184 | ... if let Some(chA) = my_msg.chars().nth(i) && let Some(chB) = msg.chars().nth(i) { if chA != chB { self.rage_quit(); } } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 184 | if let Some(chA) = my_msg.chars().nth(i) && let Some(chB) = msg.chars().nth(i) { if chA != chB { let _ = self.rage_quit(); } } [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `chA` should have a snake case name [INFO] [stdout] --> src/main.rs:198:33 [INFO] [stdout] | [INFO] [stdout] 198 | ... if let Some(chA) = my_msg.chars().nth(i) && let Some(chB) = msg.chars().nth(i) { if chA != chB { self.rage_quit(); } } [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ch_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `chB` should have a snake case name [INFO] [stdout] --> src/main.rs:198:74 [INFO] [stdout] | [INFO] [stdout] 198 | ... if let Some(chA) = my_msg.chars().nth(i) && let Some(chB) = msg.chars().nth(i) { if chA != chB { self.rage_quit(); } } [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ch_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:198:118 [INFO] [stdout] | [INFO] [stdout] 198 | ... if let Some(chA) = my_msg.chars().nth(i) && let Some(chB) = msg.chars().nth(i) { if chA != chB { self.rage_quit(); } } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 198 | if let Some(chA) = my_msg.chars().nth(i) && let Some(chB) = msg.chars().nth(i) { if chA != chB { let _ = self.rage_quit(); } } [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/main.rs:211:21 [INFO] [stdout] | [INFO] [stdout] 211 | if let Some(A) = msg.chars().nth(16) && let Some(B) = msg.chars().nth(18) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/main.rs:211:58 [INFO] [stdout] | [INFO] [stdout] 211 | if let Some(A) = msg.chars().nth(16) && let Some(B) = msg.chars().nth(18) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:235:31 [INFO] [stdout] | [INFO] [stdout] 235 | if self.my_turn { self.rage_quit(); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 235 | if self.my_turn { let _ = self.rage_quit(); } [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EventHandler` [INFO] [stdout] --> src/main.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use ggez::event::{self, EventHandler, MouseButton}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | let (mut stream, client_addr) = listener.accept()?; // blocks until a client connects [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client_addr` [INFO] [stdout] --> src/network.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | let (mut stream, client_addr) = listener.accept()?; // blocks until a client connects [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_client_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/network.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut stream = TcpStream::connect(addr)?; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/main.rs:226:26 [INFO] [stdout] | [INFO] [stdout] 226 | fn update(&mut self, ctx: &mut Context) -> GameResult<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece_type` [INFO] [stdout] --> src/main.rs:318:25 [INFO] [stdout] | [INFO] [stdout] 318 | let piece_type = piece.type_; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_piece_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `button` [INFO] [stdout] --> src/main.rs:339:63 [INFO] [stdout] | [INFO] [stdout] 339 | fn mouse_button_down_event(&mut self, _ctx: &mut Context, button: event::MouseButton, x: f32, y: f32,) -> GameResult { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:389:21 [INFO] [stdout] | [INFO] [stdout] 389 | let mut state = MainState::new(&mut ctx, true, true, stream); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:401:21 [INFO] [stdout] | [INFO] [stdout] 401 | let mut state = MainState::new(&mut ctx, false, false, stream); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:392:17 [INFO] [stdout] | [INFO] [stdout] 392 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:404:17 [INFO] [stdout] | [INFO] [stdout] 404 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `side` should have an upper case name [INFO] [stdout] --> src/main.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const side: f32 = 60.0; // pixels per square [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 12 - const side: f32 = 60.0; // pixels per square [INFO] [stdout] 12 + const SIDE: f32 = 60.0; // pixels per square [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `chA` should have a snake case name [INFO] [stdout] --> src/main.rs:184:33 [INFO] [stdout] | [INFO] [stdout] 184 | ... if let Some(chA) = my_msg.chars().nth(i) && let Some(chB) = msg.chars().nth(i) { if chA != chB { self.rage_quit(); } } [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ch_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `chB` should have a snake case name [INFO] [stdout] --> src/main.rs:184:74 [INFO] [stdout] | [INFO] [stdout] 184 | ... if let Some(chA) = my_msg.chars().nth(i) && let Some(chB) = msg.chars().nth(i) { if chA != chB { self.rage_quit(); } } [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ch_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:184:118 [INFO] [stdout] | [INFO] [stdout] 184 | ... if let Some(chA) = my_msg.chars().nth(i) && let Some(chB) = msg.chars().nth(i) { if chA != chB { self.rage_quit(); } } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 184 | if let Some(chA) = my_msg.chars().nth(i) && let Some(chB) = msg.chars().nth(i) { if chA != chB { let _ = self.rage_quit(); } } [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `chA` should have a snake case name [INFO] [stdout] --> src/main.rs:198:33 [INFO] [stdout] | [INFO] [stdout] 198 | ... if let Some(chA) = my_msg.chars().nth(i) && let Some(chB) = msg.chars().nth(i) { if chA != chB { self.rage_quit(); } } [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ch_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `chB` should have a snake case name [INFO] [stdout] --> src/main.rs:198:74 [INFO] [stdout] | [INFO] [stdout] 198 | ... if let Some(chA) = my_msg.chars().nth(i) && let Some(chB) = msg.chars().nth(i) { if chA != chB { self.rage_quit(); } } [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `ch_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:198:118 [INFO] [stdout] | [INFO] [stdout] 198 | ... if let Some(chA) = my_msg.chars().nth(i) && let Some(chB) = msg.chars().nth(i) { if chA != chB { self.rage_quit(); } } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 198 | if let Some(chA) = my_msg.chars().nth(i) && let Some(chB) = msg.chars().nth(i) { if chA != chB { let _ = self.rage_quit(); } } [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/main.rs:211:21 [INFO] [stdout] | [INFO] [stdout] 211 | if let Some(A) = msg.chars().nth(16) && let Some(B) = msg.chars().nth(18) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `B` should have a snake case name [INFO] [stdout] --> src/main.rs:211:58 [INFO] [stdout] | [INFO] [stdout] 211 | if let Some(A) = msg.chars().nth(16) && let Some(B) = msg.chars().nth(18) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:235:31 [INFO] [stdout] | [INFO] [stdout] 235 | if self.my_turn { self.rage_quit(); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 235 | if self.my_turn { let _ = self.rage_quit(); } [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 11s [INFO] running `Command { std: "docker" "inspect" "4dd8523347b1d0571939edcf0904b995640a4487190dca36083656f05a3b23bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4dd8523347b1d0571939edcf0904b995640a4487190dca36083656f05a3b23bf", kill_on_drop: false }` [INFO] [stdout] 4dd8523347b1d0571939edcf0904b995640a4487190dca36083656f05a3b23bf