[INFO] cloning repository https://github.com/northbytruth/snake_game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/northbytruth/snake_game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnorthbytruth%2Fsnake_game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnorthbytruth%2Fsnake_game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ef5587191e0d92dca63f8319a0923bc62bafc1a5 [INFO] checking northbytruth/snake_game against master#bbefc9837f4157cc09ed60e6d7b21e345d582dd9 for pr-114571-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnorthbytruth%2Fsnake_game" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/northbytruth/snake_game on toolchain bbefc9837f4157cc09ed60e6d7b21e345d582dd9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bbefc9837f4157cc09ed60e6d7b21e345d582dd9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/northbytruth/snake_game [INFO] finished tweaking git repo https://github.com/northbytruth/snake_game [INFO] tweaked toml for git repo https://github.com/northbytruth/snake_game written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/northbytruth/snake_game 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" "+bbefc9837f4157cc09ed60e6d7b21e345d582dd9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking northbytruth/snake_game against try#2399cef65c47f346b5fa9df51f48df0acd4a9d85 for pr-114571-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnorthbytruth%2Fsnake_game" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/northbytruth/snake_game on toolchain 2399cef65c47f346b5fa9df51f48df0acd4a9d85 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2399cef65c47f346b5fa9df51f48df0acd4a9d85" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/northbytruth/snake_game [INFO] finished tweaking git repo https://github.com/northbytruth/snake_game [INFO] tweaked toml for git repo https://github.com/northbytruth/snake_game written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/northbytruth/snake_game 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" "+2399cef65c47f346b5fa9df51f48df0acd4a9d85" "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 [ERROR] error running command: no output for 300 seconds [INFO] checking northbytruth/snake_game against try#2399cef65c47f346b5fa9df51f48df0acd4a9d85 for pr-114571-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnorthbytruth%2Fsnake_game" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/northbytruth/snake_game on toolchain 2399cef65c47f346b5fa9df51f48df0acd4a9d85 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2399cef65c47f346b5fa9df51f48df0acd4a9d85" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/northbytruth/snake_game [INFO] finished tweaking git repo https://github.com/northbytruth/snake_game [INFO] tweaked toml for git repo https://github.com/northbytruth/snake_game written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/northbytruth/snake_game 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" "+2399cef65c47f346b5fa9df51f48df0acd4a9d85" "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 rand_core v0.1.0-pre.0 [INFO] [stderr] Downloaded pancurses v0.15.0 [INFO] [stderr] Downloaded ncurses v5.91.0 [INFO] [stderr] Downloaded winreg v0.5.0 [INFO] [stderr] Downloaded cc v1.0.6 [INFO] [stderr] Downloaded rand v0.5.0-pre.0 [INFO] [stderr] Downloaded pdcurses-sys v0.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+2399cef65c47f346b5fa9df51f48df0acd4a9d85" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5c23eeec6199d7c0ce6fc4b80527ebb2abbf7a79f338978edf326a1340c500bb [INFO] running `Command { std: "docker" "start" "-a" "5c23eeec6199d7c0ce6fc4b80527ebb2abbf7a79f338978edf326a1340c500bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5c23eeec6199d7c0ce6fc4b80527ebb2abbf7a79f338978edf326a1340c500bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c23eeec6199d7c0ce6fc4b80527ebb2abbf7a79f338978edf326a1340c500bb", kill_on_drop: false }` [INFO] [stdout] 5c23eeec6199d7c0ce6fc4b80527ebb2abbf7a79f338978edf326a1340c500bb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+2399cef65c47f346b5fa9df51f48df0acd4a9d85" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ce19381b6beb21bc4a0a1e233cf55618a3d016106d0f7a062b4df2a57518c891 [INFO] running `Command { std: "docker" "start" "-a" "ce19381b6beb21bc4a0a1e233cf55618a3d016106d0f7a062b4df2a57518c891", kill_on_drop: false }` [INFO] [stderr] Compiling gcc v0.3.54 [INFO] [stderr] Compiling pkg-config v0.3.9 [INFO] [stderr] Checking cfg-if v0.1.2 [INFO] [stderr] Checking libc v0.2.39 [INFO] [stderr] Checking rand_core v0.1.0-pre.0 [INFO] [stderr] Checking log v0.4.1 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking rand v0.5.0-pre.0 [INFO] [stderr] Compiling ncurses v5.91.0 [INFO] [stderr] Checking pancurses v0.15.0 [INFO] [stderr] Checking snake_game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `thread_rng` [INFO] [stdout] --> src/main.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::{Rng, thread_rng}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:122:7 [INFO] [stdout] | [INFO] [stdout] 122 | if(key_in == "s"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 122 - if(key_in == "s"){ [INFO] [stdout] 122 + if key_in == "s" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:126:7 [INFO] [stdout] | [INFO] [stdout] 126 | if(key_in == "w"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 126 - if(key_in == "w"){ [INFO] [stdout] 126 + if key_in == "w" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:130:7 [INFO] [stdout] | [INFO] [stdout] 130 | if(key_in == "d"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 130 - if(key_in == "d"){ [INFO] [stdout] 130 + if key_in == "d" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:134:7 [INFO] [stdout] | [INFO] [stdout] 134 | if(key_in == "a"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 134 - if(key_in == "a"){ [INFO] [stdout] 134 + if key_in == "a" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:253:15 [INFO] [stdout] | [INFO] [stdout] 253 | if(ret == 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 253 - if(ret == 0){ [INFO] [stdout] 253 + if ret == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `thread_rng` [INFO] [stdout] --> src/main.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::{Rng, thread_rng}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `screen` [INFO] [stdout] --> src/main.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | fn startGame(screen : &mut Screen, snake :&mut Snake, food :&mut Point){ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `snake` [INFO] [stdout] --> src/main.rs:33:36 [INFO] [stdout] | [INFO] [stdout] 33 | fn startGame(screen : &mut Screen, snake :&mut Snake, food :&mut Point){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_snake` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `food` [INFO] [stdout] --> src/main.rs:33:55 [INFO] [stdout] | [INFO] [stdout] 33 | fn startGame(screen : &mut Screen, snake :&mut Snake, food :&mut Point){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_food` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `screen` [INFO] [stdout] --> src/main.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | fn addIntroToScreen(screen : &mut Screen, content :&mut Vec){ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:122:7 [INFO] [stdout] | [INFO] [stdout] 122 | if(key_in == "s"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 122 - if(key_in == "s"){ [INFO] [stdout] 122 + if key_in == "s" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:126:7 [INFO] [stdout] | [INFO] [stdout] 126 | if(key_in == "w"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 126 - if(key_in == "w"){ [INFO] [stdout] 126 + if key_in == "w" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:130:7 [INFO] [stdout] | [INFO] [stdout] 130 | if(key_in == "d"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 130 - if(key_in == "d"){ [INFO] [stdout] 130 + if key_in == "d" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:134:7 [INFO] [stdout] | [INFO] [stdout] 134 | if(key_in == "a"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 134 - if(key_in == "a"){ [INFO] [stdout] 134 + if key_in == "a" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:253:15 [INFO] [stdout] | [INFO] [stdout] 253 | if(ret == 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 253 - if(ret == 0){ [INFO] [stdout] 253 + if ret == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | let mut s = "\n\n\n".to_string(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `startGame` should have a snake case name [INFO] [stdout] --> src/main.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn startGame(screen : &mut Screen, snake :&mut Snake, food :&mut Point){ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `start_game` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `addIntroToScreen` should have a snake case name [INFO] [stdout] --> src/main.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn addIntroToScreen(screen : &mut Screen, content :&mut Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `add_intro_to_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `iterateScreen` should have a snake case name [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn iterateScreen(screen :&mut Screen, content :&mut Vec, key_in : &String, snake : &mut Snake, food :&mut Point, direction :&mut ... [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `iterate_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gameOver` should have a snake case name [INFO] [stdout] --> src/main.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn gameOver(content: &mut Vec, snake: &Snake){ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `game_over` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drawScreen` should have a snake case name [INFO] [stdout] --> src/main.rs:192:4 [INFO] [stdout] | [INFO] [stdout] 192 | fn drawScreen(content :&mut Vec, window :&Window){ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `draw_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `gameRunning` should have a snake case name [INFO] [stdout] --> src/main.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | let mut gameRunning: bool = false; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `game_running` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lastKey` should have a snake case name [INFO] [stdout] --> src/main.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | let mut lastKey = "".to_string(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `last_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `screen` [INFO] [stdout] --> src/main.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | fn startGame(screen : &mut Screen, snake :&mut Snake, food :&mut Point){ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `snake` [INFO] [stdout] --> src/main.rs:33:36 [INFO] [stdout] | [INFO] [stdout] 33 | fn startGame(screen : &mut Screen, snake :&mut Snake, food :&mut Point){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_snake` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `food` [INFO] [stdout] --> src/main.rs:33:55 [INFO] [stdout] | [INFO] [stdout] 33 | fn startGame(screen : &mut Screen, snake :&mut Snake, food :&mut Point){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_food` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `screen` [INFO] [stdout] --> src/main.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | fn addIntroToScreen(screen : &mut Screen, content :&mut Vec){ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | let mut s = "\n\n\n".to_string(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `startGame` should have a snake case name [INFO] [stdout] --> src/main.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn startGame(screen : &mut Screen, snake :&mut Snake, food :&mut Point){ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `start_game` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `addIntroToScreen` should have a snake case name [INFO] [stdout] --> src/main.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn addIntroToScreen(screen : &mut Screen, content :&mut Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `add_intro_to_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `iterateScreen` should have a snake case name [INFO] [stdout] --> src/main.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn iterateScreen(screen :&mut Screen, content :&mut Vec, key_in : &String, snake : &mut Snake, food :&mut Point, direction :&mut ... [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `iterate_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gameOver` should have a snake case name [INFO] [stdout] --> src/main.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn gameOver(content: &mut Vec, snake: &Snake){ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `game_over` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `drawScreen` should have a snake case name [INFO] [stdout] --> src/main.rs:192:4 [INFO] [stdout] | [INFO] [stdout] 192 | fn drawScreen(content :&mut Vec, window :&Window){ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `draw_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `gameRunning` should have a snake case name [INFO] [stdout] --> src/main.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | let mut gameRunning: bool = false; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `game_running` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lastKey` should have a snake case name [INFO] [stdout] --> src/main.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | let mut lastKey = "".to_string(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `last_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.30s [INFO] running `Command { std: "docker" "inspect" "ce19381b6beb21bc4a0a1e233cf55618a3d016106d0f7a062b4df2a57518c891", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce19381b6beb21bc4a0a1e233cf55618a3d016106d0f7a062b4df2a57518c891", kill_on_drop: false }` [INFO] [stdout] ce19381b6beb21bc4a0a1e233cf55618a3d016106d0f7a062b4df2a57518c891