[INFO] cloning repository https://github.com/Will-6978/Rust_SnakeGame
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Will-6978/Rust_SnakeGame" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWill-6978%2FRust_SnakeGame", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWill-6978%2FRust_SnakeGame'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 49f730e1278ae36ea15eaf6b13f2971aa0e4cf32
[INFO] checking Will-6978/Rust_SnakeGame against 1.95.0 for pr-155915
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWill-6978%2FRust_SnakeGame" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Will-6978/Rust_SnakeGame
[INFO] finished tweaking git repo https://github.com/Will-6978/Rust_SnakeGame
[INFO] tweaked toml for git repo https://github.com/Will-6978/Rust_SnakeGame written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Will-6978/Rust_SnakeGame on toolchain 1.95.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.95.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Will-6978/Rust_SnakeGame 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.95.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded spin v0.9.6
[INFO] [stderr]   Downloaded pistoncore-window v0.47.1
[INFO] [stderr]   Downloaded piston v0.53.2
[INFO] [stderr]   Downloaded piston2d-gfx_graphics v0.79.0
[INFO] [stderr]   Downloaded piston2d-graphics v0.43.0
[INFO] [stderr]   Downloaded pistoncore-event_loop v0.53.1
[INFO] [stderr]   Downloaded crossbeam-channel v0.5.7
[INFO] [stderr]   Downloaded zune-inflate v0.2.52
[INFO] [stderr]   Downloaded pistoncore-glutin_window v0.70.1
[INFO] [stderr]   Downloaded piston_window v0.127.0
[INFO] [stderr]   Downloaded exr v1.6.3
[INFO] [stderr]   Downloaded proc-macro2 v1.0.54
[INFO] [stderr]   Downloaded syn v2.0.10
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] d75d6a0db486d8fbc3e982369e8ff757438a30a9bd0811b639ecd8531242ba6e
[INFO] running `Command { std: "docker" "start" "-a" "d75d6a0db486d8fbc3e982369e8ff757438a30a9bd0811b639ecd8531242ba6e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d75d6a0db486d8fbc3e982369e8ff757438a30a9bd0811b639ecd8531242ba6e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d75d6a0db486d8fbc3e982369e8ff757438a30a9bd0811b639ecd8531242ba6e", kill_on_drop: false }`
[INFO] [stdout] d75d6a0db486d8fbc3e982369e8ff757438a30a9bd0811b639ecd8531242ba6e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] fc1c1a834d9219a46f699d350f0445cd395b41487cb67c0edb5ec315da8d5f84
[INFO] running `Command { std: "docker" "start" "-a" "fc1c1a834d9219a46f699d350f0445cd395b41487cb67c0edb5ec315da8d5f84", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.140
[INFO] [stderr]    Compiling proc-macro2 v1.0.54
[INFO] [stderr]    Compiling log v0.4.17
[INFO] [stderr]    Compiling quote v1.0.26
[INFO] [stderr]    Compiling xml-rs v0.8.4
[INFO] [stderr]    Compiling pkg-config v0.3.26
[INFO] [stderr]    Compiling crossbeam-utils v0.8.15
[INFO] [stderr]    Compiling memoffset v0.8.0
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.14
[INFO] [stderr]     Checking libloading v0.7.4
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]     Checking ttf-parser v0.15.2
[INFO] [stderr]     Checking piston-float v1.0.1
[INFO] [stderr]    Compiling rayon-core v1.11.0
[INFO] [stderr]     Checking miniz_oxide v0.6.2
[INFO] [stderr]    Compiling num-traits v0.2.15
[INFO] [stderr]     Checking piston-viewport v1.0.2
[INFO] [stderr]    Compiling futures-core v0.3.27
[INFO] [stderr]     Checking dlib v0.5.0
[INFO] [stderr]    Compiling serde_derive v1.0.158
[INFO] [stderr]    Compiling serde v1.0.158
[INFO] [stderr]    Compiling num-integer v0.1.45
[INFO] [stderr]     Checking piston-graphics_api_version v1.0.1
[INFO] [stderr]     Checking either v1.8.1
[INFO] [stderr]     Checking walkdir v2.3.3
[INFO] [stderr]     Checking flate2 v1.0.25
[INFO] [stderr]     Checking xcursor v0.3.4
[INFO] [stderr]     Checking spin v0.9.6
[INFO] [stderr]     Checking draw_state v0.8.0
[INFO] [stderr]    Compiling num-rational v0.4.1
[INFO] [stderr]     Checking simd-adler32 v0.3.5
[INFO] [stderr]     Checking weezl v0.1.7
[INFO] [stderr]     Checking futures-sink v0.3.27
[INFO] [stderr]     Checking raw-window-handle v0.4.3
[INFO] [stderr]     Checking bytemuck v1.13.1
[INFO] [stderr]     Checking half v2.2.1
[INFO] [stderr]     Checking zune-inflate v0.2.52
[INFO] [stderr]     Checking gfx_core v0.9.2
[INFO] [stderr]     Checking png v0.17.7
[INFO] [stderr]     Checking piston-texture v0.9.0
[INFO] [stderr]     Checking crossbeam-channel v0.5.7
[INFO] [stderr]     Checking gif v0.12.0
[INFO] [stderr]     Checking qoi v0.4.1
[INFO] [stderr]    Compiling wayland-sys v0.28.6
[INFO] [stderr]    Compiling x11-dl v2.21.0
[INFO] [stderr]    Compiling gl_generator v0.14.0
[INFO] [stderr]     Checking owned_ttf_parser v0.15.2
[INFO] [stderr]    Compiling gl_generator v0.13.1
[INFO] [stderr]     Checking rusttype v0.9.3
[INFO] [stderr]     Checking shader_version v0.7.0
[INFO] [stderr]    Compiling wayland-scanner v0.28.6
[INFO] [stderr]     Checking crossbeam-deque v0.8.3
[INFO] [stderr]    Compiling syn v2.0.10
[INFO] [stderr]     Checking vecmath v1.0.0
[INFO] [stderr]     Checking interpolation v0.2.0
[INFO] [stderr]     Checking spin_sleep v1.1.1
[INFO] [stderr]     Checking read_color v1.0.0
[INFO] [stderr]     Checking piston-shaders_graphics2d v0.4.0
[INFO] [stderr]    Compiling glutin_egl_sys v0.1.6
[INFO] [stderr]    Compiling glutin_glx_sys v0.1.8
[INFO] [stderr]    Compiling gfx_gl v0.6.1
[INFO] [stderr]    Compiling gl v0.13.0
[INFO] [stderr]     Checking nix v0.20.0
[INFO] [stderr]     Checking getrandom v0.2.8
[INFO] [stderr]     Checking num_cpus v1.15.0
[INFO] [stderr]     Checking dirs-sys v0.3.7
[INFO] [stderr]     Checking iovec v0.1.4
[INFO] [stderr]     Checking nanorand v0.7.0
[INFO] [stderr]     Checking net2 v0.2.38
[INFO] [stderr]     Checking dirs v4.0.0
[INFO] [stderr]     Checking nix v0.18.0
[INFO] [stderr]     Checking xdg v2.4.1
[INFO] [stderr]     Checking mio v0.6.23
[INFO] [stderr]     Checking rayon v1.7.0
[INFO] [stderr]     Checking andrew v0.3.1
[INFO] [stderr]     Checking parking_lot_core v0.8.6
[INFO] [stderr]     Checking memmap2 v0.1.0
[INFO] [stderr]     Checking mio-extras v2.0.6
[INFO] [stderr]     Checking raw-window-handle v0.3.4
[INFO] [stderr]     Checking shared_library v0.1.9
[INFO] [stderr]     Checking parking_lot v0.11.2
[INFO] [stderr]     Checking osmesa-sys v0.1.2
[INFO] [stderr]     Checking gfx v0.18.3
[INFO] [stderr]     Checking piston2d-graphics v0.43.0
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]    Compiling wayland-client v0.28.6
[INFO] [stderr]    Compiling wayland-protocols v0.28.6
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking gfx_device_gl v0.16.2
[INFO] [stderr]     Checking jpeg-decoder v0.3.0
[INFO] [stderr]     Checking wayland-commons v0.28.6
[INFO] [stderr]     Checking calloop v0.6.5
[INFO] [stderr]    Compiling pin-project-internal v1.0.12
[INFO] [stderr]     Checking tiff v0.8.1
[INFO] [stderr]     Checking pin-project v1.0.12
[INFO] [stderr]     Checking flume v0.10.14
[INFO] [stderr]     Checking exr v1.6.3
[INFO] [stderr]     Checking wayland-cursor v0.28.6
[INFO] [stderr]     Checking wayland-egl v0.28.6
[INFO] [stderr]     Checking pistoncore-input v1.0.1
[INFO] [stderr]     Checking image v0.24.6
[INFO] [stderr]     Checking pistoncore-window v0.47.1
[INFO] [stderr]     Checking pistoncore-event_loop v0.53.1
[INFO] [stderr]     Checking piston v0.53.2
[INFO] [stderr]     Checking piston-gfx_texture v0.44.0
[INFO] [stderr]     Checking piston2d-gfx_graphics v0.79.0
[INFO] [stderr]     Checking smithay-client-toolkit v0.12.3
[INFO] [stderr]     Checking winit v0.24.0
[INFO] [stderr]     Checking glutin v0.26.0
[INFO] [stderr]     Checking pistoncore-glutin_window v0.70.1
[INFO] [stderr]     Checking piston_window v0.127.0
[INFO] [stderr]     Checking snake v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Glyphs`, `Key`, `TextureSettings`, and `clear`
[INFO] [stdout]  --> src/main.rs:2:21
[INFO] [stdout]   |
[INFO] [stdout] 2 | use piston_window::{clear, Button, PistonWindow, PressEvent, UpdateEvent, WindowSettings, Glyphs, TextureSettings, Transformed, Key};
[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 import: `rand::seq::SliceRandom`
[INFO] [stdout]  --> src/main.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use rand::seq::SliceRandom;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]    --> src/snake_snake/snake.rs:276:28
[INFO] [stdout]     |
[INFO] [stdout] 276 |                 offset_x = ((time * 20.0).sin() * 3.0 + (time * 7.0).cos() * 2.0);
[INFO] [stdout]     |                            ^                                                    ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 276 -                 offset_x = ((time * 20.0).sin() * 3.0 + (time * 7.0).cos() * 2.0);
[INFO] [stdout] 276 +                 offset_x = (time * 20.0).sin() * 3.0 + (time * 7.0).cos() * 2.0 ;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]    --> src/snake_snake/snake.rs:277:28
[INFO] [stdout]     |
[INFO] [stdout] 277 |                 offset_y = ((time * 17.0).cos() * 2.0 + (time * 5.0).sin() * 1.5);
[INFO] [stdout]     |                            ^                                                    ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 277 -                 offset_y = ((time * 17.0).cos() * 2.0 + (time * 5.0).sin() * 1.5);
[INFO] [stdout] 277 +                 offset_y = (time * 17.0).cos() * 2.0 + (time * 5.0).sin() * 1.5 ;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `snake_window::draw::to_coord_u32`
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use snake_window::draw::to_coord_u32;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Glyphs`, `Key`, `TextureSettings`, and `clear`
[INFO] [stdout]  --> src/main.rs:2:21
[INFO] [stdout]   |
[INFO] [stdout] 2 | use piston_window::{clear, Button, PistonWindow, PressEvent, UpdateEvent, WindowSettings, Glyphs, TextureSettings, Transformed, Key};
[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 import: `rand::seq::SliceRandom`
[INFO] [stdout]  --> src/main.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use rand::seq::SliceRandom;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]    --> src/snake_snake/snake.rs:276:28
[INFO] [stdout]     |
[INFO] [stdout] 276 |                 offset_x = ((time * 20.0).sin() * 3.0 + (time * 7.0).cos() * 2.0);
[INFO] [stdout]     |                            ^                                                    ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 276 -                 offset_x = ((time * 20.0).sin() * 3.0 + (time * 7.0).cos() * 2.0);
[INFO] [stdout] 276 +                 offset_x = (time * 20.0).sin() * 3.0 + (time * 7.0).cos() * 2.0 ;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]    --> src/snake_snake/snake.rs:277:28
[INFO] [stdout]     |
[INFO] [stdout] 277 |                 offset_y = ((time * 17.0).cos() * 2.0 + (time * 5.0).sin() * 1.5);
[INFO] [stdout]     |                            ^                                                    ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 277 -                 offset_y = ((time * 17.0).cos() * 2.0 + (time * 5.0).sin() * 1.5);
[INFO] [stdout] 277 +                 offset_y = (time * 17.0).cos() * 2.0 + (time * 5.0).sin() * 1.5 ;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `snake_window::draw::to_coord_u32`
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use snake_window::draw::to_coord_u32;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/snake_game/game.rs:249:18
[INFO] [stdout]     |
[INFO] [stdout] 249 |             for (i, block) in ai.body.iter().enumerate().skip(1).take(2) {
[INFO] [stdout]     |                  ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/snake_game/game.rs:249:18
[INFO] [stdout]     |
[INFO] [stdout] 249 |             for (i, block) in ai.body.iter().enumerate().skip(1).take(2) {
[INFO] [stdout]     |                  ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]    --> src/snake_game/game.rs:488:9
[INFO] [stdout]     |
[INFO] [stdout] 488 |     let t = (time * 2.0).sin();
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]    --> src/snake_game/game.rs:488:9
[INFO] [stdout]     |
[INFO] [stdout] 488 |     let t = (time * 2.0).sin();
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `base_x`
[INFO] [stdout]    --> src/snake_snake/snake.rs:344:21
[INFO] [stdout]     |
[INFO] [stdout] 344 |                 let base_x = (block.x as f64) * 20.0 + offset_x;
[INFO] [stdout]     |                     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `base_y`
[INFO] [stdout]    --> src/snake_snake/snake.rs:345:21
[INFO] [stdout]     |
[INFO] [stdout] 345 |                 let base_y = (block.y as f64) * 20.0 + offset_y;
[INFO] [stdout]     |                     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `base_x`
[INFO] [stdout]    --> src/snake_snake/snake.rs:344:21
[INFO] [stdout]     |
[INFO] [stdout] 344 |                 let base_x = (block.x as f64) * 20.0 + offset_x;
[INFO] [stdout]     |                     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `base_y`
[INFO] [stdout]    --> src/snake_snake/snake.rs:345:21
[INFO] [stdout]     |
[INFO] [stdout] 345 |                 let base_y = (block.y as f64) * 20.0 + offset_y;
[INFO] [stdout]     |                     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_y`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:528:29
[INFO] [stdout]     |
[INFO] [stdout] 528 |                         let mut transform_ghost = c.transform.trans(tx, ty)
[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: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:677:25
[INFO] [stdout]     |
[INFO] [stdout] 677 |                     let mut rng = rand::thread_rng();
[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:158:9
[INFO] [stdout]     |
[INFO] [stdout] 158 |     let mut last_score = 0;
[INFO] [stdout]     |         ----^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `obs`
[INFO] [stdout]    --> src/main.rs:828:29
[INFO] [stdout]     |
[INFO] [stdout] 828 |                         let obs = game.get_obstacles();
[INFO] [stdout]     |                             ^^^ help: if this is intentional, prefix it with an underscore: `_obs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `rng`
[INFO] [stdout]    --> src/main.rs:677:25
[INFO] [stdout]     |
[INFO] [stdout] 677 |                     let mut rng = rand::thread_rng();
[INFO] [stdout]     |                         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rng`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `device`
[INFO] [stdout]    --> src/main.rs:338:47
[INFO] [stdout]     |
[INFO] [stdout] 338 |                 window.draw_2d(&event, |c, g, device| {
[INFO] [stdout]     |                                               ^^^^^^ help: if this is intentional, prefix it with an underscore: `_device`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `last_score`
[INFO] [stdout]    --> src/main.rs:158:9
[INFO] [stdout]     |
[INFO] [stdout] 158 |     let mut last_score = 0;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_score`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BACK_COLOR` is never used
[INFO] [stdout]   --> src/main.rs:16:7
[INFO] [stdout]    |
[INFO] [stdout] 16 | const BACK_COLOR: Color = [0.5, 0.5, 0.5, 1.0];
[INFO] [stdout]    |       ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `FOOD_COLOR` is never used
[INFO] [stdout]   --> src/snake_game/game.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const FOOD_COLOR: Color = [0.8, 0.2, 1.0, 1.0]; // 亮紫色
[INFO] [stdout]    |       ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `SNAKE_BODY_COLOR` is never used
[INFO] [stdout]  --> src/snake_snake/snake.rs:8:7
[INFO] [stdout]   |
[INFO] [stdout] 8 | const SNAKE_BODY_COLOR: Color = [1.0, 0.7, 0.2, 1.0]; // 橙黄色
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `SNAKE_HEAD_COLOR` is never used
[INFO] [stdout]   --> src/snake_snake/snake.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const SNAKE_HEAD_COLOR: Color = [1.0, 0.2, 0.2, 1.0]; // 亮红色
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `color_head` and `color_body` are never read
[INFO] [stdout]    --> src/snake_snake/snake.rs:206:9
[INFO] [stdout]     |
[INFO] [stdout] 202 | pub struct AISnake {
[INFO] [stdout]     |            ------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 206 |     pub color_head: Color,
[INFO] [stdout]     |         ^^^^^^^^^^
[INFO] [stdout] 207 |     pub color_body: Color,
[INFO] [stdout]     |         ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `AISnake` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `restore_tail` is never used
[INFO] [stdout]    --> src/snake_snake/snake.rs:358:12
[INFO] [stdout]     |
[INFO] [stdout] 210 | impl AISnake {
[INFO] [stdout]     | ------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 358 |     pub fn restore_tail(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `to_coord_u32` is never used
[INFO] [stdout]   --> src/snake_window/draw.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub fn to_coord_u32(game_coord: i32) -> u32 {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:528:29
[INFO] [stdout]     |
[INFO] [stdout] 528 |                         let mut transform_ghost = c.transform.trans(tx, ty)
[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: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:677:25
[INFO] [stdout]     |
[INFO] [stdout] 677 |                     let mut rng = rand::thread_rng();
[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:158:9
[INFO] [stdout]     |
[INFO] [stdout] 158 |     let mut last_score = 0;
[INFO] [stdout]     |         ----^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `obs`
[INFO] [stdout]    --> src/main.rs:828:29
[INFO] [stdout]     |
[INFO] [stdout] 828 |                         let obs = game.get_obstacles();
[INFO] [stdout]     |                             ^^^ help: if this is intentional, prefix it with an underscore: `_obs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `rng`
[INFO] [stdout]    --> src/main.rs:677:25
[INFO] [stdout]     |
[INFO] [stdout] 677 |                     let mut rng = rand::thread_rng();
[INFO] [stdout]     |                         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rng`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `device`
[INFO] [stdout]    --> src/main.rs:338:47
[INFO] [stdout]     |
[INFO] [stdout] 338 |                 window.draw_2d(&event, |c, g, device| {
[INFO] [stdout]     |                                               ^^^^^^ help: if this is intentional, prefix it with an underscore: `_device`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `last_score`
[INFO] [stdout]    --> src/main.rs:158:9
[INFO] [stdout]     |
[INFO] [stdout] 158 |     let mut last_score = 0;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_score`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BACK_COLOR` is never used
[INFO] [stdout]   --> src/main.rs:16:7
[INFO] [stdout]    |
[INFO] [stdout] 16 | const BACK_COLOR: Color = [0.5, 0.5, 0.5, 1.0];
[INFO] [stdout]    |       ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `FOOD_COLOR` is never used
[INFO] [stdout]   --> src/snake_game/game.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const FOOD_COLOR: Color = [0.8, 0.2, 1.0, 1.0]; // 亮紫色
[INFO] [stdout]    |       ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `SNAKE_BODY_COLOR` is never used
[INFO] [stdout]  --> src/snake_snake/snake.rs:8:7
[INFO] [stdout]   |
[INFO] [stdout] 8 | const SNAKE_BODY_COLOR: Color = [1.0, 0.7, 0.2, 1.0]; // 橙黄色
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `SNAKE_HEAD_COLOR` is never used
[INFO] [stdout]   --> src/snake_snake/snake.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const SNAKE_HEAD_COLOR: Color = [1.0, 0.2, 0.2, 1.0]; // 亮红色
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `color_head` and `color_body` are never read
[INFO] [stdout]    --> src/snake_snake/snake.rs:206:9
[INFO] [stdout]     |
[INFO] [stdout] 202 | pub struct AISnake {
[INFO] [stdout]     |            ------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 206 |     pub color_head: Color,
[INFO] [stdout]     |         ^^^^^^^^^^
[INFO] [stdout] 207 |     pub color_body: Color,
[INFO] [stdout]     |         ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `AISnake` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `restore_tail` is never used
[INFO] [stdout]    --> src/snake_snake/snake.rs:358:12
[INFO] [stdout]     |
[INFO] [stdout] 210 | impl AISnake {
[INFO] [stdout]     | ------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 358 |     pub fn restore_tail(&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `to_coord_u32` is never used
[INFO] [stdout]   --> src/snake_window/draw.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub fn to_coord_u32(game_coord: i32) -> u32 {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 59.27s
[INFO] running `Command { std: "docker" "inspect" "fc1c1a834d9219a46f699d350f0445cd395b41487cb67c0edb5ec315da8d5f84", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fc1c1a834d9219a46f699d350f0445cd395b41487cb67c0edb5ec315da8d5f84", kill_on_drop: false }`
[INFO] [stdout] fc1c1a834d9219a46f699d350f0445cd395b41487cb67c0edb5ec315da8d5f84
