[INFO] cloning repository https://github.com/Ziothh/rust-snake [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ziothh/rust-snake" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZiothh%2Frust-snake", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZiothh%2Frust-snake'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7331b672199fddc218b09534cdd6cfcfac6ba148 [INFO] testing Ziothh/rust-snake against 1.84.0 for beta-1.85-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZiothh%2Frust-snake" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Ziothh/rust-snake on toolchain 1.84.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.84.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Ziothh/rust-snake [INFO] finished tweaking git repo https://github.com/Ziothh/rust-snake [INFO] tweaked toml for git repo https://github.com/Ziothh/rust-snake written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Ziothh/rust-snake 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" "+1.84.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded piston-graphics_api_version v1.0.1 [INFO] [stderr] Downloaded shader_version v0.7.0 [INFO] [stderr] Downloaded pistoncore-glutin_window v0.70.1 [INFO] [stderr] Downloaded piston-float v1.0.1 [INFO] [stderr] Downloaded pistoncore-input v1.0.1 [INFO] [stderr] Downloaded pistoncore-window v0.47.1 [INFO] [stderr] Downloaded piston-gfx_texture v0.42.0 [INFO] [stderr] Downloaded gl v0.13.0 [INFO] [stderr] Downloaded piston_window v0.124.0 [INFO] [stderr] Downloaded gfx_core v0.9.2 [INFO] [stderr] Downloaded piston-shaders_graphics2d v0.4.0 [INFO] [stderr] Downloaded pistoncore-event_loop v0.53.1 [INFO] [stderr] Downloaded draw_state v0.8.0 [INFO] [stderr] Downloaded gfx_device_gl v0.16.2 [INFO] [stderr] Downloaded gfx_gl v0.6.1 [INFO] [stderr] Downloaded gfx v0.18.2 [INFO] [stderr] Downloaded ab_glyph_rasterizer v0.1.7 [INFO] [stderr] Downloaded xdg v2.4.1 [INFO] [stderr] Downloaded piston2d-gfx_graphics v0.76.0 [INFO] [stderr] Downloaded owned_ttf_parser v0.15.2 [INFO] [stderr] Downloaded rusttype v0.9.3 [INFO] [stderr] Downloaded piston2d-graphics v0.42.0 [INFO] [stderr] Downloaded tiff v0.7.4 [INFO] [stderr] Downloaded piston-viewport v1.0.2 [INFO] [stderr] Downloaded piston v0.53.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+1.84.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 53a27b6c43b570c172924d4c7f4deb57758e102403192e626b22ddb520ce510d [INFO] running `Command { std: "docker" "start" "-a" "53a27b6c43b570c172924d4c7f4deb57758e102403192e626b22ddb520ce510d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "53a27b6c43b570c172924d4c7f4deb57758e102403192e626b22ddb520ce510d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53a27b6c43b570c172924d4c7f4deb57758e102403192e626b22ddb520ce510d", kill_on_drop: false }` [INFO] [stdout] 53a27b6c43b570c172924d4c7f4deb57758e102403192e626b22ddb520ce510d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+1.84.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f4651f06a022e71d8c8d02c129103658be1f2efcf2f62f38f0a5cd1b56742b17 [INFO] running `Command { std: "docker" "start" "-a" "f4651f06a022e71d8c8d02c129103658be1f2efcf2f62f38f0a5cd1b56742b17", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.137 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.47 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling unicode-ident v1.0.5 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling syn v1.0.103 [INFO] [stderr] Compiling crossbeam-utils v0.8.12 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling once_cell v1.16.0 [INFO] [stderr] Compiling ttf-parser v0.15.2 [INFO] [stderr] Compiling piston-float v1.0.1 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling dlib v0.5.0 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.11 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.7 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling piston-viewport v1.0.2 [INFO] [stderr] Compiling wayland-sys v0.28.6 [INFO] [stderr] Compiling serde v1.0.147 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Compiling serde_derive v1.0.147 [INFO] [stderr] Compiling futures-core v0.3.25 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Compiling nom v7.1.1 [INFO] [stderr] Compiling x11-dl v2.20.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling miniz_oxide v0.5.4 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling piston-graphics_api_version v1.0.1 [INFO] [stderr] Compiling wayland-scanner v0.28.6 [INFO] [stderr] Compiling crossbeam-deque v0.8.2 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling spin v0.9.4 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling draw_state v0.8.0 [INFO] [stderr] Compiling flate2 v1.0.24 [INFO] [stderr] Compiling miniz_oxide v0.6.2 [INFO] [stderr] Compiling libloading v0.6.7 [INFO] [stderr] Compiling nix v0.20.0 [INFO] [stderr] Compiling num_cpus v1.14.0 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling dirs-sys v0.3.7 [INFO] [stderr] Compiling net2 v0.2.38 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling nanorand v0.7.0 [INFO] [stderr] Compiling dirs v4.0.0 [INFO] [stderr] Compiling xdg v2.4.1 [INFO] [stderr] Compiling futures-sink v0.3.25 [INFO] [stderr] Compiling weezl v0.1.7 [INFO] [stderr] Compiling cty v0.2.2 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling raw-window-handle v0.4.3 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling owned_ttf_parser v0.15.2 [INFO] [stderr] Compiling gfx_core v0.9.2 [INFO] [stderr] Compiling wayland-client v0.28.6 [INFO] [stderr] Compiling wayland-protocols v0.28.6 [INFO] [stderr] Compiling rusttype v0.9.3 [INFO] [stderr] Compiling memmap2 v0.1.0 [INFO] [stderr] Compiling glutin_egl_sys v0.1.6 [INFO] [stderr] Compiling xcursor v0.3.4 [INFO] [stderr] Compiling andrew v0.3.1 [INFO] [stderr] Compiling glutin_glx_sys v0.1.8 [INFO] [stderr] Compiling gl_generator v0.13.1 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling bit_field v0.10.1 [INFO] [stderr] Compiling lebe v0.5.2 [INFO] [stderr] Compiling half v2.1.0 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling gif v0.11.4 [INFO] [stderr] Compiling mio-extras v2.0.6 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling raw-window-handle v0.3.4 [INFO] [stderr] Compiling png v0.17.7 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling gfx_gl v0.6.1 [INFO] [stderr] Compiling gl v0.13.0 [INFO] [stderr] Compiling bytemuck v1.12.3 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling piston-texture v0.8.0 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling gfx v0.18.2 [INFO] [stderr] Compiling shader_version v0.7.0 [INFO] [stderr] Compiling vecmath v1.0.0 [INFO] [stderr] Compiling read_color v1.0.0 [INFO] [stderr] Compiling spin_sleep v1.1.1 [INFO] [stderr] Compiling interpolation v0.2.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling piston-shaders_graphics2d v0.4.0 [INFO] [stderr] Compiling piston2d-graphics v0.42.0 [INFO] [stderr] Compiling wayland-commons v0.28.6 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling calloop v0.6.5 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling jpeg-decoder v0.2.6 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling tiff v0.7.4 [INFO] [stderr] Compiling pin-project v1.0.12 [INFO] [stderr] Compiling flume v0.10.14 [INFO] [stderr] Compiling gfx_device_gl v0.16.2 [INFO] [stderr] Compiling wayland-cursor v0.28.6 [INFO] [stderr] Compiling wayland-egl v0.28.6 [INFO] [stderr] Compiling exr v1.5.2 [INFO] [stderr] Compiling pistoncore-input v1.0.1 [INFO] [stderr] Compiling pistoncore-window v0.47.1 [INFO] [stderr] Compiling pistoncore-event_loop v0.53.1 [INFO] [stderr] Compiling piston v0.53.1 [INFO] [stderr] Compiling image v0.24.4 [INFO] [stderr] Compiling piston-gfx_texture v0.42.0 [INFO] [stderr] Compiling piston2d-gfx_graphics v0.76.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.12.3 [INFO] [stderr] Compiling winit v0.24.0 [INFO] [stderr] Compiling glutin v0.26.0 [INFO] [stderr] Compiling pistoncore-glutin_window v0.70.1 [INFO] [stderr] Compiling piston_window v0.124.0 [INFO] [stderr] Compiling snake v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/helpers/draw.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | return (to_coord(game_coord) as u32) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 11 - return (to_coord(game_coord) as u32) [INFO] [stdout] 11 + return to_coord(game_coord) as u32 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/snake.rs:138:16 [INFO] [stdout] | [INFO] [stdout] 138 | if (x == block.x && y == block.y) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 138 - if (x == block.x && y == block.y) { [INFO] [stdout] 138 + if x == block.x && y == block.y { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/game.rs:60:32 [INFO] [stdout] | [INFO] [stdout] 60 | self.rng.gen_range((1..(self.width - 1))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - self.rng.gen_range((1..(self.width - 1))) [INFO] [stdout] 60 + self.rng.gen_range(1..(self.width - 1)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | if (self.game_over) { return; } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - if (self.game_over) { return; } [INFO] [stdout] 65 + if self.game_over { return; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | if (dir.is_none()) {return;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 79 - if (dir.is_none()) {return;} [INFO] [stdout] 79 + if dir.is_none() {return;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | if (!self.game_started) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 81 - if (!self.game_started) { [INFO] [stdout] 81 + if !self.game_started { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:83:19 [INFO] [stdout] | [INFO] [stdout] 83 | } else if (dir.unwrap() == self.snake.get_head_direction().opposite()) {return;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 83 - } else if (dir.unwrap() == self.snake.get_head_direction().opposite()) {return;} [INFO] [stdout] 83 + } else if dir.unwrap() == self.snake.get_head_direction().opposite() {return;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | if (self.check_if_snake_alive(direction)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 101 - if (self.check_if_snake_alive(direction)) { [INFO] [stdout] 101 + if self.check_if_snake_alive(direction) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | if (self.food_exists) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 114 - if (self.food_exists) { [INFO] [stdout] 114 + if self.food_exists { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | if (self.game_over) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 123 - if (self.game_over) { [INFO] [stdout] 123 + if self.game_over { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | else if (!self.game_started) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 126 - else if (!self.game_started) { [INFO] [stdout] 126 + else if !self.game_started { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | if (self.game_over) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 134 - if (self.game_over) { [INFO] [stdout] 134 + if self.game_over { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:135:16 [INFO] [stdout] | [INFO] [stdout] 135 | if (self.waiting_time > RESTART_TIME) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 135 - if (self.waiting_time > RESTART_TIME) { [INFO] [stdout] 135 + if self.waiting_time > RESTART_TIME { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 142 | if (!self.game_started) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 142 - if (!self.game_started) { [INFO] [stdout] 142 + if !self.game_started { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | if (!self.food_exists) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 146 - if (!self.food_exists) { [INFO] [stdout] 146 + if !self.food_exists { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:150:12 [INFO] [stdout] | [INFO] [stdout] 150 | if (self.waiting_time > MOVING_PERIOD) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 150 - if (self.waiting_time > MOVING_PERIOD) { [INFO] [stdout] 150 + if self.waiting_time > MOVING_PERIOD { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | if (self.food_exists && self.food_x == head_x && self.food_y == head_y) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 158 - if (self.food_exists && self.food_x == head_x && self.food_y == head_y) { [INFO] [stdout] 158 + if self.food_exists && self.food_x == head_x && self.food_y == head_y { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | if (self.snake.overlap_tail(next_x, next_y)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 168 - if (self.snake.overlap_tail(next_x, next_y)) { [INFO] [stdout] 168 + if self.snake.overlap_tail(next_x, next_y) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 56.38s [INFO] running `Command { std: "docker" "inspect" "f4651f06a022e71d8c8d02c129103658be1f2efcf2f62f38f0a5cd1b56742b17", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f4651f06a022e71d8c8d02c129103658be1f2efcf2f62f38f0a5cd1b56742b17", kill_on_drop: false }` [INFO] [stdout] f4651f06a022e71d8c8d02c129103658be1f2efcf2f62f38f0a5cd1b56742b17 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+1.84.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8713c7bacd7846db85798f79bbf43a91e31205334260e66d8e7dd75d5171c039 [INFO] running `Command { std: "docker" "start" "-a" "8713c7bacd7846db85798f79bbf43a91e31205334260e66d8e7dd75d5171c039", kill_on_drop: false }` [INFO] [stderr] Compiling snake v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `return` value [INFO] [stdout] --> src/helpers/draw.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | return (to_coord(game_coord) as u32) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 11 - return (to_coord(game_coord) as u32) [INFO] [stdout] 11 + return to_coord(game_coord) as u32 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/snake.rs:138:16 [INFO] [stdout] | [INFO] [stdout] 138 | if (x == block.x && y == block.y) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 138 - if (x == block.x && y == block.y) { [INFO] [stdout] 138 + if x == block.x && y == block.y { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/game.rs:60:32 [INFO] [stdout] | [INFO] [stdout] 60 | self.rng.gen_range((1..(self.width - 1))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - self.rng.gen_range((1..(self.width - 1))) [INFO] [stdout] 60 + self.rng.gen_range(1..(self.width - 1)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | if (self.game_over) { return; } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - if (self.game_over) { return; } [INFO] [stdout] 65 + if self.game_over { return; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | if (dir.is_none()) {return;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 79 - if (dir.is_none()) {return;} [INFO] [stdout] 79 + if dir.is_none() {return;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | if (!self.game_started) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 81 - if (!self.game_started) { [INFO] [stdout] 81 + if !self.game_started { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:83:19 [INFO] [stdout] | [INFO] [stdout] 83 | } else if (dir.unwrap() == self.snake.get_head_direction().opposite()) {return;} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 83 - } else if (dir.unwrap() == self.snake.get_head_direction().opposite()) {return;} [INFO] [stdout] 83 + } else if dir.unwrap() == self.snake.get_head_direction().opposite() {return;} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | if (self.check_if_snake_alive(direction)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 101 - if (self.check_if_snake_alive(direction)) { [INFO] [stdout] 101 + if self.check_if_snake_alive(direction) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 114 | if (self.food_exists) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 114 - if (self.food_exists) { [INFO] [stdout] 114 + if self.food_exists { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | if (self.game_over) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 123 - if (self.game_over) { [INFO] [stdout] 123 + if self.game_over { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | else if (!self.game_started) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 126 - else if (!self.game_started) { [INFO] [stdout] 126 + else if !self.game_started { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | if (self.game_over) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 134 - if (self.game_over) { [INFO] [stdout] 134 + if self.game_over { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:135:16 [INFO] [stdout] | [INFO] [stdout] 135 | if (self.waiting_time > RESTART_TIME) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 135 - if (self.waiting_time > RESTART_TIME) { [INFO] [stdout] 135 + if self.waiting_time > RESTART_TIME { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 142 | if (!self.game_started) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 142 - if (!self.game_started) { [INFO] [stdout] 142 + if !self.game_started { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | if (!self.food_exists) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 146 - if (!self.food_exists) { [INFO] [stdout] 146 + if !self.food_exists { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:150:12 [INFO] [stdout] | [INFO] [stdout] 150 | if (self.waiting_time > MOVING_PERIOD) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 150 - if (self.waiting_time > MOVING_PERIOD) { [INFO] [stdout] 150 + if self.waiting_time > MOVING_PERIOD { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | if (self.food_exists && self.food_x == head_x && self.food_y == head_y) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 158 - if (self.food_exists && self.food_x == head_x && self.food_y == head_y) { [INFO] [stdout] 158 + if self.food_exists && self.food_x == head_x && self.food_y == head_y { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/game.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | if (self.snake.overlap_tail(next_x, next_y)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 168 - if (self.snake.overlap_tail(next_x, next_y)) { [INFO] [stdout] 168 + if self.snake.overlap_tail(next_x, next_y) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.43s [INFO] running `Command { std: "docker" "inspect" "8713c7bacd7846db85798f79bbf43a91e31205334260e66d8e7dd75d5171c039", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8713c7bacd7846db85798f79bbf43a91e31205334260e66d8e7dd75d5171c039", kill_on_drop: false }` [INFO] [stdout] 8713c7bacd7846db85798f79bbf43a91e31205334260e66d8e7dd75d5171c039 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+1.84.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4f8c125d2abf0c97994c62df4ac4da84e939cdeee47f5dd188231f5c68c4b857 [INFO] running `Command { std: "docker" "start" "-a" "4f8c125d2abf0c97994c62df4ac4da84e939cdeee47f5dd188231f5c68c4b857", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around `return` value [INFO] [stderr] --> src/helpers/draw.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 11 | return (to_coord(game_coord) as u32) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 11 - return (to_coord(game_coord) as u32) [INFO] [stderr] 11 + return to_coord(game_coord) as u32 [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/snake.rs:138:16 [INFO] [stderr] | [INFO] [stderr] 138 | if (x == block.x && y == block.y) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 138 - if (x == block.x && y == block.y) { [INFO] [stderr] 138 + if x == block.x && y == block.y { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around method argument [INFO] [stderr] --> src/game.rs:60:32 [INFO] [stderr] | [INFO] [stderr] 60 | self.rng.gen_range((1..(self.width - 1))) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 60 - self.rng.gen_range((1..(self.width - 1))) [INFO] [stderr] 60 + self.rng.gen_range(1..(self.width - 1)) [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/game.rs:65:12 [INFO] [stderr] | [INFO] [stderr] 65 | if (self.game_over) { return; } [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 65 - if (self.game_over) { return; } [INFO] [stderr] 65 + if self.game_over { return; } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/game.rs:79:12 [INFO] [stderr] | [INFO] [stderr] 79 | if (dir.is_none()) {return;} [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 79 - if (dir.is_none()) {return;} [INFO] [stderr] 79 + if dir.is_none() {return;} [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/game.rs:81:12 [INFO] [stderr] | [INFO] [stderr] 81 | if (!self.game_started) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 81 - if (!self.game_started) { [INFO] [stderr] 81 + if !self.game_started { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/game.rs:83:19 [INFO] [stderr] | [INFO] [stderr] 83 | } else if (dir.unwrap() == self.snake.get_head_direction().opposite()) {return;} [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 83 - } else if (dir.unwrap() == self.snake.get_head_direction().opposite()) {return;} [INFO] [stderr] 83 + } else if dir.unwrap() == self.snake.get_head_direction().opposite() {return;} [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/game.rs:101:12 [INFO] [stderr] | [INFO] [stderr] 101 | if (self.check_if_snake_alive(direction)) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 101 - if (self.check_if_snake_alive(direction)) { [INFO] [stderr] 101 + if self.check_if_snake_alive(direction) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/game.rs:114:12 [INFO] [stderr] | [INFO] [stderr] 114 | if (self.food_exists) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 114 - if (self.food_exists) { [INFO] [stderr] 114 + if self.food_exists { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/game.rs:123:12 [INFO] [stderr] | [INFO] [stderr] 123 | if (self.game_over) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 123 - if (self.game_over) { [INFO] [stderr] 123 + if self.game_over { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/game.rs:126:17 [INFO] [stderr] | [INFO] [stderr] 126 | else if (!self.game_started) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 126 - else if (!self.game_started) { [INFO] [stderr] 126 + else if !self.game_started { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/game.rs:134:12 [INFO] [stderr] | [INFO] [stderr] 134 | if (self.game_over) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 134 - if (self.game_over) { [INFO] [stderr] 134 + if self.game_over { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/game.rs:135:16 [INFO] [stderr] | [INFO] [stderr] 135 | if (self.waiting_time > RESTART_TIME) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 135 - if (self.waiting_time > RESTART_TIME) { [INFO] [stderr] 135 + if self.waiting_time > RESTART_TIME { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/game.rs:142:12 [INFO] [stderr] | [INFO] [stderr] 142 | if (!self.game_started) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 142 - if (!self.game_started) { [INFO] [stderr] 142 + if !self.game_started { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/game.rs:146:12 [INFO] [stderr] | [INFO] [stderr] 146 | if (!self.food_exists) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 146 - if (!self.food_exists) { [INFO] [stderr] 146 + if !self.food_exists { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/game.rs:150:12 [INFO] [stderr] | [INFO] [stderr] 150 | if (self.waiting_time > MOVING_PERIOD) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 150 - if (self.waiting_time > MOVING_PERIOD) { [INFO] [stderr] 150 + if self.waiting_time > MOVING_PERIOD { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/game.rs:158:12 [INFO] [stderr] | [INFO] [stderr] 158 | if (self.food_exists && self.food_x == head_x && self.food_y == head_y) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 158 - if (self.food_exists && self.food_x == head_x && self.food_y == head_y) { [INFO] [stderr] 158 + if self.food_exists && self.food_x == head_x && self.food_y == head_y { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/game.rs:168:12 [INFO] [stderr] | [INFO] [stderr] 168 | if (self.snake.overlap_tail(next_x, next_y)) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 168 - if (self.snake.overlap_tail(next_x, next_y)) { [INFO] [stderr] 168 + if self.snake.overlap_tail(next_x, next_y) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `snake` (bin "snake" test) generated 18 warnings (run `cargo fix --bin "snake" --tests` to apply 18 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.19s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/snake-69844c99c7ecc25a) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4f8c125d2abf0c97994c62df4ac4da84e939cdeee47f5dd188231f5c68c4b857", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f8c125d2abf0c97994c62df4ac4da84e939cdeee47f5dd188231f5c68c4b857", kill_on_drop: false }` [INFO] [stdout] 4f8c125d2abf0c97994c62df4ac4da84e939cdeee47f5dd188231f5c68c4b857