[INFO] cloning repository https://github.com/ninomerlino/CheeseAdventure [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ninomerlino/CheeseAdventure" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fninomerlino%2FCheeseAdventure", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fninomerlino%2FCheeseAdventure'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2203c1f1c67eab285ac437ad7b4b2ef6434350bb [INFO] building ninomerlino/CheeseAdventure against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fninomerlino%2FCheeseAdventure" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ninomerlino/CheeseAdventure on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ninomerlino/CheeseAdventure [INFO] finished tweaking git repo https://github.com/ninomerlino/CheeseAdventure [INFO] tweaked toml for git repo https://github.com/ninomerlino/CheeseAdventure written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ninomerlino/CheeseAdventure 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 14b78ddcd5ab7743a34b97592dbc0a6f13fa487bf41961b89f168d100a086c8f [INFO] running `Command { std: "docker" "start" "-a" "14b78ddcd5ab7743a34b97592dbc0a6f13fa487bf41961b89f168d100a086c8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "14b78ddcd5ab7743a34b97592dbc0a6f13fa487bf41961b89f168d100a086c8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14b78ddcd5ab7743a34b97592dbc0a6f13fa487bf41961b89f168d100a086c8f", kill_on_drop: false }` [INFO] [stdout] 14b78ddcd5ab7743a34b97592dbc0a6f13fa487bf41961b89f168d100a086c8f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d8cc9c758123e73cf5c91855d75652f9a71a60ac8b8a07076889d93f8554c306 [INFO] running `Command { std: "docker" "start" "-a" "d8cc9c758123e73cf5c91855d75652f9a71a60ac8b8a07076889d93f8554c306", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling fs_extra v1.2.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling cmake v0.1.48 [INFO] [stderr] Compiling raylib-sys v3.7.0 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling raylib v3.7.0 [INFO] [stderr] Compiling CheeseAdventure v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | if (!self.available) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 134 - if (!self.available) { [INFO] [stdout] 134 + if !self.available { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:210:12 [INFO] [stdout] | [INFO] [stdout] 210 | if (self.last_time_point.elapsed().as_millis() > self.animation_speed as u128) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 210 - if (self.last_time_point.elapsed().as_millis() > self.animation_speed as u128) { [INFO] [stdout] 210 + if self.last_time_point.elapsed().as_millis() > self.animation_speed as u128 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:251:11 [INFO] [stdout] | [INFO] [stdout] 251 | if(self.start.elapsed().as_millis() >= self.animation_duration as u128){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 251 - if(self.start.elapsed().as_millis() >= self.animation_duration as u128){ [INFO] [stdout] 251 + if self.start.elapsed().as_millis() >= self.animation_duration as u128 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:255:11 [INFO] [stdout] | [INFO] [stdout] 255 | if(self.delta.elapsed().as_millis() >=self.animation_speed as u128){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 255 - if(self.delta.elapsed().as_millis() >=self.animation_speed as u128){ [INFO] [stdout] 255 + if self.delta.elapsed().as_millis() >=self.animation_speed as u128 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:261:11 [INFO] [stdout] | [INFO] [stdout] 261 | if(self.pressed && !self.ready){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 261 - if(self.pressed && !self.ready){ [INFO] [stdout] 261 + if self.pressed && !self.ready { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:280:15 [INFO] [stdout] | [INFO] [stdout] 280 | if(self.animation_status){Color{r:0,g:167,b:255,a:255}}else{Color{r:255,g:103,b:0,a:255}}, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 280 - if(self.animation_status){Color{r:0,g:167,b:255,a:255}}else{Color{r:255,g:103,b:0,a:255}}, [INFO] [stdout] 280 + if self.animation_status {Color{r:0,g:167,b:255,a:255}}else{Color{r:255,g:103,b:0,a:255}}, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:293:11 [INFO] [stdout] | [INFO] [stdout] 293 | if(self.ready){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 293 - if(self.ready){ [INFO] [stdout] 293 + if self.ready { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:314:11 [INFO] [stdout] | [INFO] [stdout] 314 | if(self.backup != self.value && self.start.elapsed().as_millis() > 50){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 314 - if(self.backup != self.value && self.start.elapsed().as_millis() > 50){ [INFO] [stdout] 314 + if self.backup != self.value && self.start.elapsed().as_millis() > 50 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:330:11 [INFO] [stdout] | [INFO] [stdout] 330 | if(self.backup != 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 330 - if(self.backup != 0){ [INFO] [stdout] 330 + if self.backup != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:334:15 [INFO] [stdout] | [INFO] [stdout] 334 | if(digit != '1' && digit != '4'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 334 - if(digit != '1' && digit != '4'){ [INFO] [stdout] 334 + if digit != '1' && digit != '4' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:337:15 [INFO] [stdout] | [INFO] [stdout] 337 | if(digit != '5' && digit != '6'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 337 - if(digit != '5' && digit != '6'){ [INFO] [stdout] 337 + if digit != '5' && digit != '6' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:340:15 [INFO] [stdout] | [INFO] [stdout] 340 | if(digit != '2'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 340 - if(digit != '2'){ [INFO] [stdout] 340 + if digit != '2' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:343:15 [INFO] [stdout] | [INFO] [stdout] 343 | if(digit != '1' && digit != '4' && digit != '7'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 343 - if(digit != '1' && digit != '4' && digit != '7'){ [INFO] [stdout] 343 + if digit != '1' && digit != '4' && digit != '7' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:346:15 [INFO] [stdout] | [INFO] [stdout] 346 | if(digit == '0' || digit == '2' || digit == '6' || digit == '8'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 346 - if(digit == '0' || digit == '2' || digit == '6' || digit == '8'){ [INFO] [stdout] 346 + if digit == '0' || digit == '2' || digit == '6' || digit == '8' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:349:15 [INFO] [stdout] | [INFO] [stdout] 349 | if(digit != '1' && digit != '2' && digit != '3' && digit != '7'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 349 - if(digit != '1' && digit != '2' && digit != '3' && digit != '7'){ [INFO] [stdout] 349 + if digit != '1' && digit != '2' && digit != '3' && digit != '7' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:352:15 [INFO] [stdout] | [INFO] [stdout] 352 | if(digit != '0' && digit != '1' && digit != '7'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 352 - if(digit != '0' && digit != '1' && digit != '7'){ [INFO] [stdout] 352 + if digit != '0' && digit != '1' && digit != '7' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::Thread` [INFO] [stdout] --> src/drawable.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::thread::Thread; [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/drawable.rs:45:16 [INFO] [stdout] | [INFO] [stdout] 45 | if (self.node.pos.x > -3.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 - if (self.node.pos.x > -3.0) { [INFO] [stdout] 45 + if self.node.pos.x > -3.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | if (self.node.pos.x < 58.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 50 - if (self.node.pos.x < 58.0) { [INFO] [stdout] 50 + if self.node.pos.x < 58.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 55 | if (self.node.pos.y < 58.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 55 - if (self.node.pos.y < 58.0) { [INFO] [stdout] 55 + if self.node.pos.y < 58.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:60:16 [INFO] [stdout] | [INFO] [stdout] 60 | if (self.node.pos.y > -3.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - if (self.node.pos.y > -3.0) { [INFO] [stdout] 60 + if self.node.pos.y > -3.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | if (!self.node.available) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - if (!self.node.available) { [INFO] [stdout] 127 + if !self.node.available { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | if (orientation.x.abs() >= orientation.y.abs()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 134 - if (orientation.x.abs() >= orientation.y.abs()) { [INFO] [stdout] 134 + if orientation.x.abs() >= orientation.y.abs() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:135:16 [INFO] [stdout] | [INFO] [stdout] 135 | if (orientation.x > 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 135 - if (orientation.x > 0.0) { [INFO] [stdout] 135 + if orientation.x > 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:136:20 [INFO] [stdout] | [INFO] [stdout] 136 | if (self.node.pos.x < 58.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 136 - if (self.node.pos.x < 58.0) { [INFO] [stdout] 136 + if self.node.pos.x < 58.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:141:20 [INFO] [stdout] | [INFO] [stdout] 141 | if (self.node.pos.x > 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 141 - if (self.node.pos.x > 0.0) { [INFO] [stdout] 141 + if self.node.pos.x > 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:147:16 [INFO] [stdout] | [INFO] [stdout] 147 | if (orientation.y > 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 147 - if (orientation.y > 0.0) { [INFO] [stdout] 147 + if orientation.y > 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:148:20 [INFO] [stdout] | [INFO] [stdout] 148 | if (self.node.pos.y < 58.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 148 - if (self.node.pos.y < 58.0) { [INFO] [stdout] 148 + if self.node.pos.y < 58.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:153:20 [INFO] [stdout] | [INFO] [stdout] 153 | if (self.node.pos.y > 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - if (self.node.pos.y > 0.0) { [INFO] [stdout] 153 + if self.node.pos.y > 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:184:12 [INFO] [stdout] | [INFO] [stdout] 184 | if (self.direction == Direction::RIGHT) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 184 - if (self.direction == Direction::RIGHT) { [INFO] [stdout] 184 + if self.direction == Direction::RIGHT { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:239:20 [INFO] [stdout] | [INFO] [stdout] 239 | if (prob_c <= *cheese_spawn_rate) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 239 - if (prob_c <= *cheese_spawn_rate) { [INFO] [stdout] 239 + if prob_c <= *cheese_spawn_rate { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:241:27 [INFO] [stdout] | [INFO] [stdout] 241 | } else if (prob_e <= *enemy_spaw_rate) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 241 - } else if (prob_e <= *enemy_spaw_rate) { [INFO] [stdout] 241 + } else if prob_e <= *enemy_spaw_rate { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:251:12 [INFO] [stdout] | [INFO] [stdout] 251 | if (cheeses.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 251 - if (cheeses.len() == 0) { [INFO] [stdout] 251 + if cheeses.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:274:24 [INFO] [stdout] | [INFO] [stdout] 274 | if (elm.0.x != spider.node.pos.x [INFO] [stdout] | ^ [INFO] [stdout] 275 | && elm.0.y != spider.node.pos.y [INFO] [stdout] 276 | && spider.node.collision(elm.0.x, elm.0.y, elm.1.x, elm.1.y)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 274 ~ if elm.0.x != spider.node.pos.x [INFO] [stdout] 275 | && elm.0.y != spider.node.pos.y [INFO] [stdout] 276 ~ && spider.node.collision(elm.0.x, elm.0.y, elm.1.x, elm.1.y) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:278:28 [INFO] [stdout] | [INFO] [stdout] 278 | if (spider.direction == Direction::UP) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 278 - if (spider.direction == Direction::UP) { [INFO] [stdout] 278 + if spider.direction == Direction::UP { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:280:35 [INFO] [stdout] | [INFO] [stdout] 280 | } else if (spider.direction == Direction::DOWN) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 280 - } else if (spider.direction == Direction::DOWN) { [INFO] [stdout] 280 + } else if spider.direction == Direction::DOWN { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:282:35 [INFO] [stdout] | [INFO] [stdout] 282 | } else if (spider.direction == Direction::LEFT) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 282 - } else if (spider.direction == Direction::LEFT) { [INFO] [stdout] 282 + } else if spider.direction == Direction::LEFT { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:289:20 [INFO] [stdout] | [INFO] [stdout] 289 | if (spider [INFO] [stdout] | ^ [INFO] [stdout] 290 | .node [INFO] [stdout] 291 | .collision(mouse.node.pos.x + 3.0, mouse.node.pos.y + 3.0, 3.0, 3.0)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 289 ~ if spider [INFO] [stdout] 290 | .node [INFO] [stdout] 291 ~ .collision(mouse.node.pos.x + 3.0, mouse.node.pos.y + 3.0, 3.0, 3.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:297:12 [INFO] [stdout] | [INFO] [stdout] 297 | if (!self.exit.is_available() && self.points == self.max_points) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 297 - if (!self.exit.is_available() && self.points == self.max_points) { [INFO] [stdout] 297 + if !self.exit.is_available() && self.points == self.max_points { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:299:19 [INFO] [stdout] | [INFO] [stdout] 299 | } else if (*self.exit.is_available() [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 303 | .collision(mouse.node.pos.x + 3.0, mouse.node.pos.y + 3.0, 3.0, 3.0)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 299 ~ } else if *self.exit.is_available() [INFO] [stdout] 300 | && self [INFO] [stdout] 301 | .exit [INFO] [stdout] 302 | .node [INFO] [stdout] 303 ~ .collision(mouse.node.pos.x + 3.0, mouse.node.pos.y + 3.0, 3.0, 3.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:308:20 [INFO] [stdout] | [INFO] [stdout] 308 | if (*cheese.is_available() [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 314 | )) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 308 ~ if *cheese.is_available() [INFO] [stdout] 309 | && cheese.node.collision( [INFO] [stdout] ... [INFO] [stdout] 313 | mouse.node.size.y - 6.0, [INFO] [stdout] 314 ~ ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:387:11 [INFO] [stdout] | [INFO] [stdout] 387 | if(!device.is_sound_playing(&self.texture_manager.theme)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 387 - if(!device.is_sound_playing(&self.texture_manager.theme)){ [INFO] [stdout] 387 + if !device.is_sound_playing(&self.texture_manager.theme) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:398:20 [INFO] [stdout] | [INFO] [stdout] 398 | if (self.level_count % 8 == 0 && self.cheese_spawn_rate < 0.5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 398 - if (self.level_count % 8 == 0 && self.cheese_spawn_rate < 0.5) { [INFO] [stdout] 398 + if self.level_count % 8 == 0 && self.cheese_spawn_rate < 0.5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:401:20 [INFO] [stdout] | [INFO] [stdout] 401 | if (self.level_count % 5 == 0 && self.enemy_spawn_rate < 0.5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 401 - if (self.level_count % 5 == 0 && self.enemy_spawn_rate < 0.5) { [INFO] [stdout] 401 + if self.level_count % 5 == 0 && self.enemy_spawn_rate < 0.5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:411:20 [INFO] [stdout] | [INFO] [stdout] 411 | if (self.curr_level.spiders.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 411 - if (self.curr_level.spiders.len() == 0) { [INFO] [stdout] 411 + if self.curr_level.spiders.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:417:20 [INFO] [stdout] | [INFO] [stdout] 417 | if (self.start_button.is_ready()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 417 - if (self.start_button.is_ready()) { [INFO] [stdout] 417 + if self.start_button.is_ready() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:419:27 [INFO] [stdout] | [INFO] [stdout] 419 | } else if (self.option_button.is_ready()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 419 - } else if (self.option_button.is_ready()) { [INFO] [stdout] 419 + } else if self.option_button.is_ready() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:421:27 [INFO] [stdout] | [INFO] [stdout] 421 | } else if (r_handle.is_key_released(KEY_A)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 421 - } else if (r_handle.is_key_released(KEY_A)) { [INFO] [stdout] 421 + } else if r_handle.is_key_released(KEY_A) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:425:27 [INFO] [stdout] | [INFO] [stdout] 425 | } else if (r_handle.is_key_released(KEY_S)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 425 - } else if (r_handle.is_key_released(KEY_S)) { [INFO] [stdout] 425 + } else if r_handle.is_key_released(KEY_S) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:434:20 [INFO] [stdout] | [INFO] [stdout] 434 | if (self.retry_button.is_ready()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 434 - if (self.retry_button.is_ready()) { [INFO] [stdout] 434 + if self.retry_button.is_ready() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:438:24 [INFO] [stdout] | [INFO] [stdout] 438 | if (self.total_points.get_pos().x == 1.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 438 - if (self.total_points.get_pos().x == 1.0) { [INFO] [stdout] 438 + if self.total_points.get_pos().x == 1.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:443:24 [INFO] [stdout] | [INFO] [stdout] 443 | if (r_handle.is_key_released(KEY_A) && self.total_points.has_escalated()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 443 - if (r_handle.is_key_released(KEY_A) && self.total_points.has_escalated()) { [INFO] [stdout] 443 + if r_handle.is_key_released(KEY_A) && self.total_points.has_escalated() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:450:40 [INFO] [stdout] | [INFO] [stdout] 450 | Gamestate::OptionMenu => if(self.back.is_ready()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 450 - Gamestate::OptionMenu => if(self.back.is_ready()){ [INFO] [stdout] 450 + Gamestate::OptionMenu => if self.back.is_ready() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:453:19 [INFO] [stdout] | [INFO] [stdout] 453 | if(r_handle.is_key_released(KEY_A)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 453 - if(r_handle.is_key_released(KEY_A)){ [INFO] [stdout] 453 + if r_handle.is_key_released(KEY_A) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:456:25 [INFO] [stdout] | [INFO] [stdout] 456 | }else if(r_handle.is_key_released(KEY_X)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 456 - }else if(r_handle.is_key_released(KEY_X)){ [INFO] [stdout] 456 + }else if r_handle.is_key_released(KEY_X) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:457:23 [INFO] [stdout] | [INFO] [stdout] 457 | if(self.volume.value < 100){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 457 - if(self.volume.value < 100){ [INFO] [stdout] 457 + if self.volume.value < 100 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:461:25 [INFO] [stdout] | [INFO] [stdout] 461 | }else if(r_handle.is_key_released(KEY_Z)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 461 - }else if(r_handle.is_key_released(KEY_Z)){ [INFO] [stdout] 461 + }else if r_handle.is_key_released(KEY_Z) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:462:23 [INFO] [stdout] | [INFO] [stdout] 462 | if(self.volume.value > 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 462 - if(self.volume.value > 0){ [INFO] [stdout] 462 + if self.volume.value > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:494:20 [INFO] [stdout] | [INFO] [stdout] 494 | if (self.curr_level.spiders.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 494 - if (self.curr_level.spiders.len() == 0) { [INFO] [stdout] 494 + if self.curr_level.spiders.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/drawable.rs:350:13 [INFO] [stdout] | [INFO] [stdout] 350 | let mut texture_manager = ResourceManager::new(handle, thread); [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: unreachable pattern [INFO] [stdout] --> src/drawable.rs:469:13 [INFO] [stdout] | [INFO] [stdout] 469 | _ => Gamestate::Play, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/drawable.rs:469:13 [INFO] [stdout] | [INFO] [stdout] 391 | Gamestate::Play => { [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 395 | Gamestate::NextLevel => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 416 | Gamestate::MainMenu => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 433 | Gamestate::GameOver => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 469 | _ => Gamestate::Play, [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `UP`, `LEFT`, `DOWN`, and `RIGHT` are never constructed [INFO] [stdout] --> src/node.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 24 | UP = 0, [INFO] [stdout] | ^^ [INFO] [stdout] 25 | LEFT = 1, [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | DOWN = 2, [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | RIGHT = 3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Gamestate` is never used [INFO] [stdout] --> src/node.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | pub enum Gamestate { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResourceManager` is never constructed [INFO] [stdout] --> src/node.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct ResourceManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `load_texture`, `load_font`, `load_audio`, and `load_music` are never used [INFO] [stdout] --> src/node.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl ResourceManager { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] 57 | pub fn new(handle: &mut RaylibHandle, thread: &RaylibThread) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | fn load_texture(handle: &mut RaylibHandle, thread: &RaylibThread, name: &str) -> Texture2D { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | fn load_font(handle: &mut RaylibHandle, thread: &RaylibThread, name: &str) -> Font { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | fn load_audio(name: &str) -> Sound { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | fn load_music(thread: &RaylibThread, name: &str) -> Music { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pos`, `size`, and `available` are never read [INFO] [stdout] --> src/node.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 113 | pub struct VisibleNode { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 114 | pub pos: Vector2, [INFO] [stdout] | ^^^ [INFO] [stdout] 115 | pub size: Vector2, [INFO] [stdout] | ^^^^ [INFO] [stdout] 116 | pub available: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create_vn`, `draw`, `collision`, and `box_collisions` are never used [INFO] [stdout] --> src/node.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 119 | impl VisibleNode { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 120 | pub fn create_vn(x: f32, y: f32, w: f32, h: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn draw( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn collision(&self, el_x: f32, el_y: f32, el_w: f32, el_h: f32) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | fn box_collisions( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `animation_steps_count`, `animation_step`, `animation_speed`, and `last_time_point` are never read [INFO] [stdout] --> src/node.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 182 | pub struct AnimatedNode { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 183 | pub node: VisibleNode, [INFO] [stdout] 184 | pub animation_steps_count: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 185 | pub animation_step: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 186 | pub animation_speed: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 187 | pub last_time_point: Instant, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create_an` and `cycle_animation` are never used [INFO] [stdout] --> src/node.rs:191:12 [INFO] [stdout] | [INFO] [stdout] 190 | impl AnimatedNode { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 191 | pub fn create_an( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn cycle_animation(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnimatedButton` is never constructed [INFO] [stdout] --> src/node.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 224 | pub struct AnimatedButton { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `cycle_animation`, `draw`, `click`, `reset`, and `is_ready` are never used [INFO] [stdout] --> src/node.rs:237:12 [INFO] [stdout] | [INFO] [stdout] 236 | impl AnimatedButton { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 237 | pub fn new(x: f32, y: f32, w: f32, h: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 250 | fn cycle_animation(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | pub fn draw(&mut self, drawer: &mut RaylibTextureMode, texture : &Texture2D){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn click(&mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | pub fn reset(&mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | pub fn is_ready(&mut self) -> bool{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NumberDisplay` is never constructed [INFO] [stdout] --> src/node.rs:302:12 [INFO] [stdout] | [INFO] [stdout] 302 | pub struct NumberDisplay{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/node.rs:310:12 [INFO] [stdout] | [INFO] [stdout] 309 | impl NumberDisplay{ [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 310 | pub fn new(x : f32, y : f32) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | fn cycle_animation(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 319 | pub fn escalate(&mut self){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 324 | pub fn has_escalated(&self) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 327 | pub fn draw(&mut self, drawer: &mut RaylibTextureMode){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 358 | pub fn translate(&mut self, x : f32, y : f32){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 362 | pub fn reset(&mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 366 | pub fn get_pos(&self) -> &Vector2{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SCALE` is never used [INFO] [stdout] --> src/drawable.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | pub const SCALE: i32 = 10; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mouse` is never constructed [INFO] [stdout] --> src/drawable.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Mouse { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `cycle`, `draw`, and `get_pos` are never used [INFO] [stdout] --> src/drawable.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Mouse { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 36 | pub fn new(x: f32, y: f32, direction: Direction) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn cycle(&mut self, handle: &mut RaylibHandle) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn draw(&mut self, drawer: &mut RaylibTextureMode, texture: &Texture2D) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn get_pos(&self) -> &Vector2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cheese` is never constructed [INFO] [stdout] --> src/drawable.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct Cheese { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `draw`, and `is_available` are never used [INFO] [stdout] --> src/drawable.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl Cheese { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 85 | pub fn new(x: f32, y: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn draw(&mut self, drawer: &mut RaylibTextureMode, texture: &Texture2D) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn is_available(&self) -> &bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Spider` is never constructed [INFO] [stdout] --> src/drawable.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub struct Spider { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `draw`, `cycle`, `get_pos`, and `get_size` are never used [INFO] [stdout] --> src/drawable.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 110 | impl Spider { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 111 | pub fn new(x: f32, y: f32, direction: Direction) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn draw(&mut self, drawer: &mut RaylibTextureMode, texture: &Texture2D) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn cycle(&mut self, target: &Vector2) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | pub fn get_pos(&self) -> &Vector2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn get_size(&self) -> &Vector2 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Exit` is never constructed [INFO] [stdout] --> src/drawable.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | pub struct Exit { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `draw`, `is_available`, and `activate` are never used [INFO] [stdout] --> src/drawable.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 173 | impl Exit { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 174 | pub fn new(x: f32, y: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 182 | pub fn draw(&mut self, drawer: &mut RaylibTextureMode, texture: &Texture2D) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn is_available(&self) -> &bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn activate(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Level` is never constructed [INFO] [stdout] --> src/drawable.rs:208:12 [INFO] [stdout] | [INFO] [stdout] 208 | pub struct Level { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `generate` and `cycle` are never used [INFO] [stdout] --> src/drawable.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 216 | impl Level { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 217 | pub fn generate( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn cycle(&mut self, mouse: &Mouse, device : &mut RaylibAudio, pickup_sound : &Sound) -> Gamestate { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Game` is never constructed [INFO] [stdout] --> src/drawable.rs:326:12 [INFO] [stdout] | [INFO] [stdout] 326 | pub struct Game { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, `show`, and `reset_game` are never used [INFO] [stdout] --> src/drawable.rs:345:12 [INFO] [stdout] | [INFO] [stdout] 344 | impl Game { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 345 | pub fn new(handle: &mut RaylibHandle, thread: &RaylibThread) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 386 | pub fn update(&mut self, r_handle: &mut RaylibHandle, device : &mut RaylibAudio) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 472 | pub fn show(&mut self, drawer: &mut RaylibDrawHandle, thread: &RaylibThread) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 590 | pub fn reset_game(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `CheeseAdventure` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `cheese_adventure` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::Thread` [INFO] [stdout] --> src/drawable.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::thread::Thread; [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/drawable.rs:45:16 [INFO] [stdout] | [INFO] [stdout] 45 | if (self.node.pos.x > -3.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 - if (self.node.pos.x > -3.0) { [INFO] [stdout] 45 + if self.node.pos.x > -3.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | if (self.node.pos.x < 58.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 50 - if (self.node.pos.x < 58.0) { [INFO] [stdout] 50 + if self.node.pos.x < 58.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 55 | if (self.node.pos.y < 58.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 55 - if (self.node.pos.y < 58.0) { [INFO] [stdout] 55 + if self.node.pos.y < 58.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:60:16 [INFO] [stdout] | [INFO] [stdout] 60 | if (self.node.pos.y > -3.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - if (self.node.pos.y > -3.0) { [INFO] [stdout] 60 + if self.node.pos.y > -3.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | if (!self.node.available) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - if (!self.node.available) { [INFO] [stdout] 127 + if !self.node.available { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | if (orientation.x.abs() >= orientation.y.abs()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 134 - if (orientation.x.abs() >= orientation.y.abs()) { [INFO] [stdout] 134 + if orientation.x.abs() >= orientation.y.abs() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:135:16 [INFO] [stdout] | [INFO] [stdout] 135 | if (orientation.x > 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 135 - if (orientation.x > 0.0) { [INFO] [stdout] 135 + if orientation.x > 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:136:20 [INFO] [stdout] | [INFO] [stdout] 136 | if (self.node.pos.x < 58.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 136 - if (self.node.pos.x < 58.0) { [INFO] [stdout] 136 + if self.node.pos.x < 58.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:141:20 [INFO] [stdout] | [INFO] [stdout] 141 | if (self.node.pos.x > 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 141 - if (self.node.pos.x > 0.0) { [INFO] [stdout] 141 + if self.node.pos.x > 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:147:16 [INFO] [stdout] | [INFO] [stdout] 147 | if (orientation.y > 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 147 - if (orientation.y > 0.0) { [INFO] [stdout] 147 + if orientation.y > 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:148:20 [INFO] [stdout] | [INFO] [stdout] 148 | if (self.node.pos.y < 58.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 148 - if (self.node.pos.y < 58.0) { [INFO] [stdout] 148 + if self.node.pos.y < 58.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:153:20 [INFO] [stdout] | [INFO] [stdout] 153 | if (self.node.pos.y > 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - if (self.node.pos.y > 0.0) { [INFO] [stdout] 153 + if self.node.pos.y > 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:184:12 [INFO] [stdout] | [INFO] [stdout] 184 | if (self.direction == Direction::RIGHT) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 184 - if (self.direction == Direction::RIGHT) { [INFO] [stdout] 184 + if self.direction == Direction::RIGHT { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:239:20 [INFO] [stdout] | [INFO] [stdout] 239 | if (prob_c <= *cheese_spawn_rate) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 239 - if (prob_c <= *cheese_spawn_rate) { [INFO] [stdout] 239 + if prob_c <= *cheese_spawn_rate { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:241:27 [INFO] [stdout] | [INFO] [stdout] 241 | } else if (prob_e <= *enemy_spaw_rate) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 241 - } else if (prob_e <= *enemy_spaw_rate) { [INFO] [stdout] 241 + } else if prob_e <= *enemy_spaw_rate { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:251:12 [INFO] [stdout] | [INFO] [stdout] 251 | if (cheeses.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 251 - if (cheeses.len() == 0) { [INFO] [stdout] 251 + if cheeses.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:274:24 [INFO] [stdout] | [INFO] [stdout] 274 | if (elm.0.x != spider.node.pos.x [INFO] [stdout] | ^ [INFO] [stdout] 275 | && elm.0.y != spider.node.pos.y [INFO] [stdout] 276 | && spider.node.collision(elm.0.x, elm.0.y, elm.1.x, elm.1.y)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 274 ~ if elm.0.x != spider.node.pos.x [INFO] [stdout] 275 | && elm.0.y != spider.node.pos.y [INFO] [stdout] 276 ~ && spider.node.collision(elm.0.x, elm.0.y, elm.1.x, elm.1.y) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:278:28 [INFO] [stdout] | [INFO] [stdout] 278 | if (spider.direction == Direction::UP) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 278 - if (spider.direction == Direction::UP) { [INFO] [stdout] 278 + if spider.direction == Direction::UP { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:280:35 [INFO] [stdout] | [INFO] [stdout] 280 | } else if (spider.direction == Direction::DOWN) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 280 - } else if (spider.direction == Direction::DOWN) { [INFO] [stdout] 280 + } else if spider.direction == Direction::DOWN { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:282:35 [INFO] [stdout] | [INFO] [stdout] 282 | } else if (spider.direction == Direction::LEFT) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 282 - } else if (spider.direction == Direction::LEFT) { [INFO] [stdout] 282 + } else if spider.direction == Direction::LEFT { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:289:20 [INFO] [stdout] | [INFO] [stdout] 289 | if (spider [INFO] [stdout] | ^ [INFO] [stdout] 290 | .node [INFO] [stdout] 291 | .collision(mouse.node.pos.x + 3.0, mouse.node.pos.y + 3.0, 3.0, 3.0)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 289 ~ if spider [INFO] [stdout] 290 | .node [INFO] [stdout] 291 ~ .collision(mouse.node.pos.x + 3.0, mouse.node.pos.y + 3.0, 3.0, 3.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:297:12 [INFO] [stdout] | [INFO] [stdout] 297 | if (!self.exit.is_available() && self.points == self.max_points) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 297 - if (!self.exit.is_available() && self.points == self.max_points) { [INFO] [stdout] 297 + if !self.exit.is_available() && self.points == self.max_points { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:299:19 [INFO] [stdout] | [INFO] [stdout] 299 | } else if (*self.exit.is_available() [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 303 | .collision(mouse.node.pos.x + 3.0, mouse.node.pos.y + 3.0, 3.0, 3.0)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 299 ~ } else if *self.exit.is_available() [INFO] [stdout] 300 | && self [INFO] [stdout] 301 | .exit [INFO] [stdout] 302 | .node [INFO] [stdout] 303 ~ .collision(mouse.node.pos.x + 3.0, mouse.node.pos.y + 3.0, 3.0, 3.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:308:20 [INFO] [stdout] | [INFO] [stdout] 308 | if (*cheese.is_available() [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 314 | )) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 308 ~ if *cheese.is_available() [INFO] [stdout] 309 | && cheese.node.collision( [INFO] [stdout] ... [INFO] [stdout] 313 | mouse.node.size.y - 6.0, [INFO] [stdout] 314 ~ ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:387:11 [INFO] [stdout] | [INFO] [stdout] 387 | if(!device.is_sound_playing(&self.texture_manager.theme)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 387 - if(!device.is_sound_playing(&self.texture_manager.theme)){ [INFO] [stdout] 387 + if !device.is_sound_playing(&self.texture_manager.theme) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:398:20 [INFO] [stdout] | [INFO] [stdout] 398 | if (self.level_count % 8 == 0 && self.cheese_spawn_rate < 0.5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 398 - if (self.level_count % 8 == 0 && self.cheese_spawn_rate < 0.5) { [INFO] [stdout] 398 + if self.level_count % 8 == 0 && self.cheese_spawn_rate < 0.5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:401:20 [INFO] [stdout] | [INFO] [stdout] 401 | if (self.level_count % 5 == 0 && self.enemy_spawn_rate < 0.5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 401 - if (self.level_count % 5 == 0 && self.enemy_spawn_rate < 0.5) { [INFO] [stdout] 401 + if self.level_count % 5 == 0 && self.enemy_spawn_rate < 0.5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:411:20 [INFO] [stdout] | [INFO] [stdout] 411 | if (self.curr_level.spiders.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 411 - if (self.curr_level.spiders.len() == 0) { [INFO] [stdout] 411 + if self.curr_level.spiders.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:417:20 [INFO] [stdout] | [INFO] [stdout] 417 | if (self.start_button.is_ready()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 417 - if (self.start_button.is_ready()) { [INFO] [stdout] 417 + if self.start_button.is_ready() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:419:27 [INFO] [stdout] | [INFO] [stdout] 419 | } else if (self.option_button.is_ready()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 419 - } else if (self.option_button.is_ready()) { [INFO] [stdout] 419 + } else if self.option_button.is_ready() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:421:27 [INFO] [stdout] | [INFO] [stdout] 421 | } else if (r_handle.is_key_released(KEY_A)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 421 - } else if (r_handle.is_key_released(KEY_A)) { [INFO] [stdout] 421 + } else if r_handle.is_key_released(KEY_A) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:425:27 [INFO] [stdout] | [INFO] [stdout] 425 | } else if (r_handle.is_key_released(KEY_S)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 425 - } else if (r_handle.is_key_released(KEY_S)) { [INFO] [stdout] 425 + } else if r_handle.is_key_released(KEY_S) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:434:20 [INFO] [stdout] | [INFO] [stdout] 434 | if (self.retry_button.is_ready()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 434 - if (self.retry_button.is_ready()) { [INFO] [stdout] 434 + if self.retry_button.is_ready() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:438:24 [INFO] [stdout] | [INFO] [stdout] 438 | if (self.total_points.get_pos().x == 1.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 438 - if (self.total_points.get_pos().x == 1.0) { [INFO] [stdout] 438 + if self.total_points.get_pos().x == 1.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:443:24 [INFO] [stdout] | [INFO] [stdout] 443 | if (r_handle.is_key_released(KEY_A) && self.total_points.has_escalated()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 443 - if (r_handle.is_key_released(KEY_A) && self.total_points.has_escalated()) { [INFO] [stdout] 443 + if r_handle.is_key_released(KEY_A) && self.total_points.has_escalated() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:450:40 [INFO] [stdout] | [INFO] [stdout] 450 | Gamestate::OptionMenu => if(self.back.is_ready()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 450 - Gamestate::OptionMenu => if(self.back.is_ready()){ [INFO] [stdout] 450 + Gamestate::OptionMenu => if self.back.is_ready() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:453:19 [INFO] [stdout] | [INFO] [stdout] 453 | if(r_handle.is_key_released(KEY_A)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 453 - if(r_handle.is_key_released(KEY_A)){ [INFO] [stdout] 453 + if r_handle.is_key_released(KEY_A) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:456:25 [INFO] [stdout] | [INFO] [stdout] 456 | }else if(r_handle.is_key_released(KEY_X)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 456 - }else if(r_handle.is_key_released(KEY_X)){ [INFO] [stdout] 456 + }else if r_handle.is_key_released(KEY_X) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:457:23 [INFO] [stdout] | [INFO] [stdout] 457 | if(self.volume.value < 100){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 457 - if(self.volume.value < 100){ [INFO] [stdout] 457 + if self.volume.value < 100 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:461:25 [INFO] [stdout] | [INFO] [stdout] 461 | }else if(r_handle.is_key_released(KEY_Z)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 461 - }else if(r_handle.is_key_released(KEY_Z)){ [INFO] [stdout] 461 + }else if r_handle.is_key_released(KEY_Z) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:462:23 [INFO] [stdout] | [INFO] [stdout] 462 | if(self.volume.value > 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 462 - if(self.volume.value > 0){ [INFO] [stdout] 462 + if self.volume.value > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:494:20 [INFO] [stdout] | [INFO] [stdout] 494 | if (self.curr_level.spiders.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 494 - if (self.curr_level.spiders.len() == 0) { [INFO] [stdout] 494 + if self.curr_level.spiders.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | if (!self.available) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 134 - if (!self.available) { [INFO] [stdout] 134 + if !self.available { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:210:12 [INFO] [stdout] | [INFO] [stdout] 210 | if (self.last_time_point.elapsed().as_millis() > self.animation_speed as u128) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 210 - if (self.last_time_point.elapsed().as_millis() > self.animation_speed as u128) { [INFO] [stdout] 210 + if self.last_time_point.elapsed().as_millis() > self.animation_speed as u128 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:251:11 [INFO] [stdout] | [INFO] [stdout] 251 | if(self.start.elapsed().as_millis() >= self.animation_duration as u128){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 251 - if(self.start.elapsed().as_millis() >= self.animation_duration as u128){ [INFO] [stdout] 251 + if self.start.elapsed().as_millis() >= self.animation_duration as u128 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:255:11 [INFO] [stdout] | [INFO] [stdout] 255 | if(self.delta.elapsed().as_millis() >=self.animation_speed as u128){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 255 - if(self.delta.elapsed().as_millis() >=self.animation_speed as u128){ [INFO] [stdout] 255 + if self.delta.elapsed().as_millis() >=self.animation_speed as u128 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:261:11 [INFO] [stdout] | [INFO] [stdout] 261 | if(self.pressed && !self.ready){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 261 - if(self.pressed && !self.ready){ [INFO] [stdout] 261 + if self.pressed && !self.ready { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:280:15 [INFO] [stdout] | [INFO] [stdout] 280 | if(self.animation_status){Color{r:0,g:167,b:255,a:255}}else{Color{r:255,g:103,b:0,a:255}}, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 280 - if(self.animation_status){Color{r:0,g:167,b:255,a:255}}else{Color{r:255,g:103,b:0,a:255}}, [INFO] [stdout] 280 + if self.animation_status {Color{r:0,g:167,b:255,a:255}}else{Color{r:255,g:103,b:0,a:255}}, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:293:11 [INFO] [stdout] | [INFO] [stdout] 293 | if(self.ready){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 293 - if(self.ready){ [INFO] [stdout] 293 + if self.ready { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:314:11 [INFO] [stdout] | [INFO] [stdout] 314 | if(self.backup != self.value && self.start.elapsed().as_millis() > 50){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 314 - if(self.backup != self.value && self.start.elapsed().as_millis() > 50){ [INFO] [stdout] 314 + if self.backup != self.value && self.start.elapsed().as_millis() > 50 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:330:11 [INFO] [stdout] | [INFO] [stdout] 330 | if(self.backup != 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 330 - if(self.backup != 0){ [INFO] [stdout] 330 + if self.backup != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:334:15 [INFO] [stdout] | [INFO] [stdout] 334 | if(digit != '1' && digit != '4'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 334 - if(digit != '1' && digit != '4'){ [INFO] [stdout] 334 + if digit != '1' && digit != '4' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:337:15 [INFO] [stdout] | [INFO] [stdout] 337 | if(digit != '5' && digit != '6'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 337 - if(digit != '5' && digit != '6'){ [INFO] [stdout] 337 + if digit != '5' && digit != '6' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:340:15 [INFO] [stdout] | [INFO] [stdout] 340 | if(digit != '2'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 340 - if(digit != '2'){ [INFO] [stdout] 340 + if digit != '2' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:343:15 [INFO] [stdout] | [INFO] [stdout] 343 | if(digit != '1' && digit != '4' && digit != '7'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 343 - if(digit != '1' && digit != '4' && digit != '7'){ [INFO] [stdout] 343 + if digit != '1' && digit != '4' && digit != '7' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:346:15 [INFO] [stdout] | [INFO] [stdout] 346 | if(digit == '0' || digit == '2' || digit == '6' || digit == '8'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 346 - if(digit == '0' || digit == '2' || digit == '6' || digit == '8'){ [INFO] [stdout] 346 + if digit == '0' || digit == '2' || digit == '6' || digit == '8' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:349:15 [INFO] [stdout] | [INFO] [stdout] 349 | if(digit != '1' && digit != '2' && digit != '3' && digit != '7'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 349 - if(digit != '1' && digit != '2' && digit != '3' && digit != '7'){ [INFO] [stdout] 349 + if digit != '1' && digit != '2' && digit != '3' && digit != '7' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:352:15 [INFO] [stdout] | [INFO] [stdout] 352 | if(digit != '0' && digit != '1' && digit != '7'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 352 - if(digit != '0' && digit != '1' && digit != '7'){ [INFO] [stdout] 352 + if digit != '0' && digit != '1' && digit != '7' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/drawable.rs:350:13 [INFO] [stdout] | [INFO] [stdout] 350 | let mut texture_manager = ResourceManager::new(handle, thread); [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: unreachable pattern [INFO] [stdout] --> src/drawable.rs:469:13 [INFO] [stdout] | [INFO] [stdout] 469 | _ => Gamestate::Play, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/drawable.rs:469:13 [INFO] [stdout] | [INFO] [stdout] 391 | Gamestate::Play => { [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 395 | Gamestate::NextLevel => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 416 | Gamestate::MainMenu => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 433 | Gamestate::GameOver => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 469 | _ => Gamestate::Play, [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/drawable.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Mouse { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 36 | pub fn new(x: f32, y: f32, direction: Direction) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `load_font` and `load_music` are never used [INFO] [stdout] --> src/node.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 56 | impl ResourceManager { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 99 | fn load_font(handle: &mut RaylibHandle, thread: &RaylibThread, name: &str) -> Font { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | fn load_music(thread: &RaylibThread, name: &str) -> Music { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 26.36s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: fs_extra v1.2.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "d8cc9c758123e73cf5c91855d75652f9a71a60ac8b8a07076889d93f8554c306", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8cc9c758123e73cf5c91855d75652f9a71a60ac8b8a07076889d93f8554c306", kill_on_drop: false }` [INFO] [stdout] d8cc9c758123e73cf5c91855d75652f9a71a60ac8b8a07076889d93f8554c306 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 53af41db27f53c8a3db2d777563e6bd656b8ec95896f224a7eb4dd7ec984dadc [INFO] running `Command { std: "docker" "start" "-a" "53af41db27f53c8a3db2d777563e6bd656b8ec95896f224a7eb4dd7ec984dadc", kill_on_drop: false }` [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | if (!self.available) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 134 - if (!self.available) { [INFO] [stdout] 134 + if !self.available { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:210:12 [INFO] [stdout] | [INFO] [stdout] 210 | if (self.last_time_point.elapsed().as_millis() > self.animation_speed as u128) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 210 - if (self.last_time_point.elapsed().as_millis() > self.animation_speed as u128) { [INFO] [stdout] 210 + if self.last_time_point.elapsed().as_millis() > self.animation_speed as u128 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:251:11 [INFO] [stdout] | [INFO] [stdout] 251 | if(self.start.elapsed().as_millis() >= self.animation_duration as u128){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 251 - if(self.start.elapsed().as_millis() >= self.animation_duration as u128){ [INFO] [stdout] 251 + if self.start.elapsed().as_millis() >= self.animation_duration as u128 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:255:11 [INFO] [stdout] | [INFO] [stdout] 255 | if(self.delta.elapsed().as_millis() >=self.animation_speed as u128){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 255 - if(self.delta.elapsed().as_millis() >=self.animation_speed as u128){ [INFO] [stdout] 255 + if self.delta.elapsed().as_millis() >=self.animation_speed as u128 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:261:11 [INFO] [stdout] | [INFO] [stdout] 261 | if(self.pressed && !self.ready){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 261 - if(self.pressed && !self.ready){ [INFO] [stdout] 261 + if self.pressed && !self.ready { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:280:15 [INFO] [stdout] | [INFO] [stdout] 280 | if(self.animation_status){Color{r:0,g:167,b:255,a:255}}else{Color{r:255,g:103,b:0,a:255}}, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 280 - if(self.animation_status){Color{r:0,g:167,b:255,a:255}}else{Color{r:255,g:103,b:0,a:255}}, [INFO] [stdout] 280 + if self.animation_status {Color{r:0,g:167,b:255,a:255}}else{Color{r:255,g:103,b:0,a:255}}, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:293:11 [INFO] [stdout] | [INFO] [stdout] 293 | if(self.ready){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 293 - if(self.ready){ [INFO] [stdout] 293 + if self.ready { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:314:11 [INFO] [stdout] | [INFO] [stdout] 314 | if(self.backup != self.value && self.start.elapsed().as_millis() > 50){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 314 - if(self.backup != self.value && self.start.elapsed().as_millis() > 50){ [INFO] [stdout] 314 + if self.backup != self.value && self.start.elapsed().as_millis() > 50 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:330:11 [INFO] [stdout] | [INFO] [stdout] 330 | if(self.backup != 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 330 - if(self.backup != 0){ [INFO] [stdout] 330 + if self.backup != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:334:15 [INFO] [stdout] | [INFO] [stdout] 334 | if(digit != '1' && digit != '4'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 334 - if(digit != '1' && digit != '4'){ [INFO] [stdout] 334 + if digit != '1' && digit != '4' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:337:15 [INFO] [stdout] | [INFO] [stdout] 337 | if(digit != '5' && digit != '6'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 337 - if(digit != '5' && digit != '6'){ [INFO] [stdout] 337 + if digit != '5' && digit != '6' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:340:15 [INFO] [stdout] | [INFO] [stdout] 340 | if(digit != '2'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 340 - if(digit != '2'){ [INFO] [stdout] 340 + if digit != '2' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:343:15 [INFO] [stdout] | [INFO] [stdout] 343 | if(digit != '1' && digit != '4' && digit != '7'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 343 - if(digit != '1' && digit != '4' && digit != '7'){ [INFO] [stdout] 343 + if digit != '1' && digit != '4' && digit != '7' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:346:15 [INFO] [stdout] | [INFO] [stdout] 346 | if(digit == '0' || digit == '2' || digit == '6' || digit == '8'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 346 - if(digit == '0' || digit == '2' || digit == '6' || digit == '8'){ [INFO] [stdout] 346 + if digit == '0' || digit == '2' || digit == '6' || digit == '8' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:349:15 [INFO] [stdout] | [INFO] [stdout] 349 | if(digit != '1' && digit != '2' && digit != '3' && digit != '7'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 349 - if(digit != '1' && digit != '2' && digit != '3' && digit != '7'){ [INFO] [stdout] 349 + if digit != '1' && digit != '2' && digit != '3' && digit != '7' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:352:15 [INFO] [stdout] | [INFO] [stdout] 352 | if(digit != '0' && digit != '1' && digit != '7'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 352 - if(digit != '0' && digit != '1' && digit != '7'){ [INFO] [stdout] 352 + if digit != '0' && digit != '1' && digit != '7' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::Thread` [INFO] [stdout] --> src/drawable.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::thread::Thread; [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/drawable.rs:45:16 [INFO] [stdout] | [INFO] [stdout] 45 | if (self.node.pos.x > -3.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 - if (self.node.pos.x > -3.0) { [INFO] [stdout] 45 + if self.node.pos.x > -3.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | if (self.node.pos.x < 58.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 50 - if (self.node.pos.x < 58.0) { [INFO] [stdout] 50 + if self.node.pos.x < 58.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 55 | if (self.node.pos.y < 58.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 55 - if (self.node.pos.y < 58.0) { [INFO] [stdout] 55 + if self.node.pos.y < 58.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:60:16 [INFO] [stdout] | [INFO] [stdout] 60 | if (self.node.pos.y > -3.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - if (self.node.pos.y > -3.0) { [INFO] [stdout] 60 + if self.node.pos.y > -3.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | if (!self.node.available) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - if (!self.node.available) { [INFO] [stdout] 127 + if !self.node.available { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | if (orientation.x.abs() >= orientation.y.abs()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 134 - if (orientation.x.abs() >= orientation.y.abs()) { [INFO] [stdout] 134 + if orientation.x.abs() >= orientation.y.abs() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:135:16 [INFO] [stdout] | [INFO] [stdout] 135 | if (orientation.x > 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 135 - if (orientation.x > 0.0) { [INFO] [stdout] 135 + if orientation.x > 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:136:20 [INFO] [stdout] | [INFO] [stdout] 136 | if (self.node.pos.x < 58.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 136 - if (self.node.pos.x < 58.0) { [INFO] [stdout] 136 + if self.node.pos.x < 58.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:141:20 [INFO] [stdout] | [INFO] [stdout] 141 | if (self.node.pos.x > 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 141 - if (self.node.pos.x > 0.0) { [INFO] [stdout] 141 + if self.node.pos.x > 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:147:16 [INFO] [stdout] | [INFO] [stdout] 147 | if (orientation.y > 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 147 - if (orientation.y > 0.0) { [INFO] [stdout] 147 + if orientation.y > 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:148:20 [INFO] [stdout] | [INFO] [stdout] 148 | if (self.node.pos.y < 58.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 148 - if (self.node.pos.y < 58.0) { [INFO] [stdout] 148 + if self.node.pos.y < 58.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:153:20 [INFO] [stdout] | [INFO] [stdout] 153 | if (self.node.pos.y > 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - if (self.node.pos.y > 0.0) { [INFO] [stdout] 153 + if self.node.pos.y > 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:184:12 [INFO] [stdout] | [INFO] [stdout] 184 | if (self.direction == Direction::RIGHT) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 184 - if (self.direction == Direction::RIGHT) { [INFO] [stdout] 184 + if self.direction == Direction::RIGHT { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:239:20 [INFO] [stdout] | [INFO] [stdout] 239 | if (prob_c <= *cheese_spawn_rate) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 239 - if (prob_c <= *cheese_spawn_rate) { [INFO] [stdout] 239 + if prob_c <= *cheese_spawn_rate { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:241:27 [INFO] [stdout] | [INFO] [stdout] 241 | } else if (prob_e <= *enemy_spaw_rate) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 241 - } else if (prob_e <= *enemy_spaw_rate) { [INFO] [stdout] 241 + } else if prob_e <= *enemy_spaw_rate { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:251:12 [INFO] [stdout] | [INFO] [stdout] 251 | if (cheeses.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 251 - if (cheeses.len() == 0) { [INFO] [stdout] 251 + if cheeses.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:274:24 [INFO] [stdout] | [INFO] [stdout] 274 | if (elm.0.x != spider.node.pos.x [INFO] [stdout] | ^ [INFO] [stdout] 275 | && elm.0.y != spider.node.pos.y [INFO] [stdout] 276 | && spider.node.collision(elm.0.x, elm.0.y, elm.1.x, elm.1.y)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 274 ~ if elm.0.x != spider.node.pos.x [INFO] [stdout] 275 | && elm.0.y != spider.node.pos.y [INFO] [stdout] 276 ~ && spider.node.collision(elm.0.x, elm.0.y, elm.1.x, elm.1.y) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:278:28 [INFO] [stdout] | [INFO] [stdout] 278 | if (spider.direction == Direction::UP) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 278 - if (spider.direction == Direction::UP) { [INFO] [stdout] 278 + if spider.direction == Direction::UP { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:280:35 [INFO] [stdout] | [INFO] [stdout] 280 | } else if (spider.direction == Direction::DOWN) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 280 - } else if (spider.direction == Direction::DOWN) { [INFO] [stdout] 280 + } else if spider.direction == Direction::DOWN { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:282:35 [INFO] [stdout] | [INFO] [stdout] 282 | } else if (spider.direction == Direction::LEFT) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 282 - } else if (spider.direction == Direction::LEFT) { [INFO] [stdout] 282 + } else if spider.direction == Direction::LEFT { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:289:20 [INFO] [stdout] | [INFO] [stdout] 289 | if (spider [INFO] [stdout] | ^ [INFO] [stdout] 290 | .node [INFO] [stdout] 291 | .collision(mouse.node.pos.x + 3.0, mouse.node.pos.y + 3.0, 3.0, 3.0)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 289 ~ if spider [INFO] [stdout] 290 | .node [INFO] [stdout] 291 ~ .collision(mouse.node.pos.x + 3.0, mouse.node.pos.y + 3.0, 3.0, 3.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:297:12 [INFO] [stdout] | [INFO] [stdout] 297 | if (!self.exit.is_available() && self.points == self.max_points) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 297 - if (!self.exit.is_available() && self.points == self.max_points) { [INFO] [stdout] 297 + if !self.exit.is_available() && self.points == self.max_points { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:299:19 [INFO] [stdout] | [INFO] [stdout] 299 | } else if (*self.exit.is_available() [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 303 | .collision(mouse.node.pos.x + 3.0, mouse.node.pos.y + 3.0, 3.0, 3.0)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 299 ~ } else if *self.exit.is_available() [INFO] [stdout] 300 | && self [INFO] [stdout] 301 | .exit [INFO] [stdout] 302 | .node [INFO] [stdout] 303 ~ .collision(mouse.node.pos.x + 3.0, mouse.node.pos.y + 3.0, 3.0, 3.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:308:20 [INFO] [stdout] | [INFO] [stdout] 308 | if (*cheese.is_available() [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 314 | )) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 308 ~ if *cheese.is_available() [INFO] [stdout] 309 | && cheese.node.collision( [INFO] [stdout] ... [INFO] [stdout] 313 | mouse.node.size.y - 6.0, [INFO] [stdout] 314 ~ ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:387:11 [INFO] [stdout] | [INFO] [stdout] 387 | if(!device.is_sound_playing(&self.texture_manager.theme)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 387 - if(!device.is_sound_playing(&self.texture_manager.theme)){ [INFO] [stdout] 387 + if !device.is_sound_playing(&self.texture_manager.theme) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:398:20 [INFO] [stdout] | [INFO] [stdout] 398 | if (self.level_count % 8 == 0 && self.cheese_spawn_rate < 0.5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 398 - if (self.level_count % 8 == 0 && self.cheese_spawn_rate < 0.5) { [INFO] [stdout] 398 + if self.level_count % 8 == 0 && self.cheese_spawn_rate < 0.5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:401:20 [INFO] [stdout] | [INFO] [stdout] 401 | if (self.level_count % 5 == 0 && self.enemy_spawn_rate < 0.5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 401 - if (self.level_count % 5 == 0 && self.enemy_spawn_rate < 0.5) { [INFO] [stdout] 401 + if self.level_count % 5 == 0 && self.enemy_spawn_rate < 0.5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:411:20 [INFO] [stdout] | [INFO] [stdout] 411 | if (self.curr_level.spiders.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 411 - if (self.curr_level.spiders.len() == 0) { [INFO] [stdout] 411 + if self.curr_level.spiders.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:417:20 [INFO] [stdout] | [INFO] [stdout] 417 | if (self.start_button.is_ready()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 417 - if (self.start_button.is_ready()) { [INFO] [stdout] 417 + if self.start_button.is_ready() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:419:27 [INFO] [stdout] | [INFO] [stdout] 419 | } else if (self.option_button.is_ready()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 419 - } else if (self.option_button.is_ready()) { [INFO] [stdout] 419 + } else if self.option_button.is_ready() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:421:27 [INFO] [stdout] | [INFO] [stdout] 421 | } else if (r_handle.is_key_released(KEY_A)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 421 - } else if (r_handle.is_key_released(KEY_A)) { [INFO] [stdout] 421 + } else if r_handle.is_key_released(KEY_A) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:425:27 [INFO] [stdout] | [INFO] [stdout] 425 | } else if (r_handle.is_key_released(KEY_S)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 425 - } else if (r_handle.is_key_released(KEY_S)) { [INFO] [stdout] 425 + } else if r_handle.is_key_released(KEY_S) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:434:20 [INFO] [stdout] | [INFO] [stdout] 434 | if (self.retry_button.is_ready()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 434 - if (self.retry_button.is_ready()) { [INFO] [stdout] 434 + if self.retry_button.is_ready() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:438:24 [INFO] [stdout] | [INFO] [stdout] 438 | if (self.total_points.get_pos().x == 1.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 438 - if (self.total_points.get_pos().x == 1.0) { [INFO] [stdout] 438 + if self.total_points.get_pos().x == 1.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:443:24 [INFO] [stdout] | [INFO] [stdout] 443 | if (r_handle.is_key_released(KEY_A) && self.total_points.has_escalated()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 443 - if (r_handle.is_key_released(KEY_A) && self.total_points.has_escalated()) { [INFO] [stdout] 443 + if r_handle.is_key_released(KEY_A) && self.total_points.has_escalated() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:450:40 [INFO] [stdout] | [INFO] [stdout] 450 | Gamestate::OptionMenu => if(self.back.is_ready()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 450 - Gamestate::OptionMenu => if(self.back.is_ready()){ [INFO] [stdout] 450 + Gamestate::OptionMenu => if self.back.is_ready() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:453:19 [INFO] [stdout] | [INFO] [stdout] 453 | if(r_handle.is_key_released(KEY_A)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 453 - if(r_handle.is_key_released(KEY_A)){ [INFO] [stdout] 453 + if r_handle.is_key_released(KEY_A) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:456:25 [INFO] [stdout] | [INFO] [stdout] 456 | }else if(r_handle.is_key_released(KEY_X)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 456 - }else if(r_handle.is_key_released(KEY_X)){ [INFO] [stdout] 456 + }else if r_handle.is_key_released(KEY_X) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:457:23 [INFO] [stdout] | [INFO] [stdout] 457 | if(self.volume.value < 100){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 457 - if(self.volume.value < 100){ [INFO] [stdout] 457 + if self.volume.value < 100 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:461:25 [INFO] [stdout] | [INFO] [stdout] 461 | }else if(r_handle.is_key_released(KEY_Z)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 461 - }else if(r_handle.is_key_released(KEY_Z)){ [INFO] [stdout] 461 + }else if r_handle.is_key_released(KEY_Z) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:462:23 [INFO] [stdout] | [INFO] [stdout] 462 | if(self.volume.value > 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 462 - if(self.volume.value > 0){ [INFO] [stdout] 462 + if self.volume.value > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:494:20 [INFO] [stdout] | [INFO] [stdout] 494 | if (self.curr_level.spiders.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 494 - if (self.curr_level.spiders.len() == 0) { [INFO] [stdout] 494 + if self.curr_level.spiders.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/drawable.rs:350:13 [INFO] [stdout] | [INFO] [stdout] 350 | let mut texture_manager = ResourceManager::new(handle, thread); [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: unreachable pattern [INFO] [stdout] --> src/drawable.rs:469:13 [INFO] [stdout] | [INFO] [stdout] 469 | _ => Gamestate::Play, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/drawable.rs:469:13 [INFO] [stdout] | [INFO] [stdout] 391 | Gamestate::Play => { [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 395 | Gamestate::NextLevel => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 416 | Gamestate::MainMenu => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 433 | Gamestate::GameOver => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 469 | _ => Gamestate::Play, [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `UP`, `LEFT`, `DOWN`, and `RIGHT` are never constructed [INFO] [stdout] --> src/node.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 24 | UP = 0, [INFO] [stdout] | ^^ [INFO] [stdout] 25 | LEFT = 1, [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | DOWN = 2, [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | RIGHT = 3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Gamestate` is never used [INFO] [stdout] --> src/node.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | pub enum Gamestate { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResourceManager` is never constructed [INFO] [stdout] --> src/node.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct ResourceManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `load_texture`, `load_font`, `load_audio`, and `load_music` are never used [INFO] [stdout] --> src/node.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl ResourceManager { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] 57 | pub fn new(handle: &mut RaylibHandle, thread: &RaylibThread) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | fn load_texture(handle: &mut RaylibHandle, thread: &RaylibThread, name: &str) -> Texture2D { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | fn load_font(handle: &mut RaylibHandle, thread: &RaylibThread, name: &str) -> Font { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | fn load_audio(name: &str) -> Sound { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | fn load_music(thread: &RaylibThread, name: &str) -> Music { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pos`, `size`, and `available` are never read [INFO] [stdout] --> src/node.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 113 | pub struct VisibleNode { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 114 | pub pos: Vector2, [INFO] [stdout] | ^^^ [INFO] [stdout] 115 | pub size: Vector2, [INFO] [stdout] | ^^^^ [INFO] [stdout] 116 | pub available: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create_vn`, `draw`, `collision`, and `box_collisions` are never used [INFO] [stdout] --> src/node.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 119 | impl VisibleNode { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 120 | pub fn create_vn(x: f32, y: f32, w: f32, h: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn draw( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn collision(&self, el_x: f32, el_y: f32, el_w: f32, el_h: f32) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | fn box_collisions( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `animation_steps_count`, `animation_step`, `animation_speed`, and `last_time_point` are never read [INFO] [stdout] --> src/node.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 182 | pub struct AnimatedNode { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 183 | pub node: VisibleNode, [INFO] [stdout] 184 | pub animation_steps_count: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 185 | pub animation_step: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 186 | pub animation_speed: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 187 | pub last_time_point: Instant, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create_an` and `cycle_animation` are never used [INFO] [stdout] --> src/node.rs:191:12 [INFO] [stdout] | [INFO] [stdout] 190 | impl AnimatedNode { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 191 | pub fn create_an( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn cycle_animation(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnimatedButton` is never constructed [INFO] [stdout] --> src/node.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 224 | pub struct AnimatedButton { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `cycle_animation`, `draw`, `click`, `reset`, and `is_ready` are never used [INFO] [stdout] --> src/node.rs:237:12 [INFO] [stdout] | [INFO] [stdout] 236 | impl AnimatedButton { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 237 | pub fn new(x: f32, y: f32, w: f32, h: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 250 | fn cycle_animation(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | pub fn draw(&mut self, drawer: &mut RaylibTextureMode, texture : &Texture2D){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn click(&mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | pub fn reset(&mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | pub fn is_ready(&mut self) -> bool{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NumberDisplay` is never constructed [INFO] [stdout] --> src/node.rs:302:12 [INFO] [stdout] | [INFO] [stdout] 302 | pub struct NumberDisplay{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/node.rs:310:12 [INFO] [stdout] | [INFO] [stdout] 309 | impl NumberDisplay{ [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 310 | pub fn new(x : f32, y : f32) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | fn cycle_animation(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 319 | pub fn escalate(&mut self){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 324 | pub fn has_escalated(&self) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 327 | pub fn draw(&mut self, drawer: &mut RaylibTextureMode){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 358 | pub fn translate(&mut self, x : f32, y : f32){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 362 | pub fn reset(&mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 366 | pub fn get_pos(&self) -> &Vector2{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SCALE` is never used [INFO] [stdout] --> src/drawable.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | pub const SCALE: i32 = 10; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mouse` is never constructed [INFO] [stdout] --> src/drawable.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Mouse { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `cycle`, `draw`, and `get_pos` are never used [INFO] [stdout] --> src/drawable.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Mouse { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 36 | pub fn new(x: f32, y: f32, direction: Direction) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn cycle(&mut self, handle: &mut RaylibHandle) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn draw(&mut self, drawer: &mut RaylibTextureMode, texture: &Texture2D) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn get_pos(&self) -> &Vector2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cheese` is never constructed [INFO] [stdout] --> src/drawable.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct Cheese { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `draw`, and `is_available` are never used [INFO] [stdout] --> src/drawable.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl Cheese { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 85 | pub fn new(x: f32, y: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn draw(&mut self, drawer: &mut RaylibTextureMode, texture: &Texture2D) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn is_available(&self) -> &bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Spider` is never constructed [INFO] [stdout] --> src/drawable.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub struct Spider { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `draw`, `cycle`, `get_pos`, and `get_size` are never used [INFO] [stdout] --> src/drawable.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 110 | impl Spider { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 111 | pub fn new(x: f32, y: f32, direction: Direction) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn draw(&mut self, drawer: &mut RaylibTextureMode, texture: &Texture2D) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn cycle(&mut self, target: &Vector2) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | pub fn get_pos(&self) -> &Vector2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn get_size(&self) -> &Vector2 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Exit` is never constructed [INFO] [stdout] --> src/drawable.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | pub struct Exit { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `draw`, `is_available`, and `activate` are never used [INFO] [stdout] --> src/drawable.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 173 | impl Exit { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 174 | pub fn new(x: f32, y: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 182 | pub fn draw(&mut self, drawer: &mut RaylibTextureMode, texture: &Texture2D) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn is_available(&self) -> &bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn activate(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Level` is never constructed [INFO] [stdout] --> src/drawable.rs:208:12 [INFO] [stdout] | [INFO] [stdout] 208 | pub struct Level { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `generate` and `cycle` are never used [INFO] [stdout] --> src/drawable.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 216 | impl Level { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 217 | pub fn generate( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn cycle(&mut self, mouse: &Mouse, device : &mut RaylibAudio, pickup_sound : &Sound) -> Gamestate { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Game` is never constructed [INFO] [stdout] --> src/drawable.rs:326:12 [INFO] [stdout] | [INFO] [stdout] 326 | pub struct Game { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, `show`, and `reset_game` are never used [INFO] [stdout] --> src/drawable.rs:345:12 [INFO] [stdout] | [INFO] [stdout] 344 | impl Game { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 345 | pub fn new(handle: &mut RaylibHandle, thread: &RaylibThread) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 386 | pub fn update(&mut self, r_handle: &mut RaylibHandle, device : &mut RaylibAudio) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 472 | pub fn show(&mut self, drawer: &mut RaylibDrawHandle, thread: &RaylibThread) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 590 | pub fn reset_game(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `CheeseAdventure` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `cheese_adventure` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling CheeseAdventure v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | if (!self.available) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 134 - if (!self.available) { [INFO] [stdout] 134 + if !self.available { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:210:12 [INFO] [stdout] | [INFO] [stdout] 210 | if (self.last_time_point.elapsed().as_millis() > self.animation_speed as u128) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 210 - if (self.last_time_point.elapsed().as_millis() > self.animation_speed as u128) { [INFO] [stdout] 210 + if self.last_time_point.elapsed().as_millis() > self.animation_speed as u128 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:251:11 [INFO] [stdout] | [INFO] [stdout] 251 | if(self.start.elapsed().as_millis() >= self.animation_duration as u128){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 251 - if(self.start.elapsed().as_millis() >= self.animation_duration as u128){ [INFO] [stdout] 251 + if self.start.elapsed().as_millis() >= self.animation_duration as u128 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::Thread` [INFO] [stdout] --> src/drawable.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::thread::Thread; [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/node.rs:255:11 [INFO] [stdout] | [INFO] [stdout] 255 | if(self.delta.elapsed().as_millis() >=self.animation_speed as u128){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 255 - if(self.delta.elapsed().as_millis() >=self.animation_speed as u128){ [INFO] [stdout] 255 + if self.delta.elapsed().as_millis() >=self.animation_speed as u128 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:261:11 [INFO] [stdout] | [INFO] [stdout] 261 | if(self.pressed && !self.ready){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 261 - if(self.pressed && !self.ready){ [INFO] [stdout] 261 + if self.pressed && !self.ready { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:45:16 [INFO] [stdout] | [INFO] [stdout] 45 | if (self.node.pos.x > -3.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 - if (self.node.pos.x > -3.0) { [INFO] [stdout] 45 + if self.node.pos.x > -3.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:280:15 [INFO] [stdout] | [INFO] [stdout] 280 | if(self.animation_status){Color{r:0,g:167,b:255,a:255}}else{Color{r:255,g:103,b:0,a:255}}, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 280 - if(self.animation_status){Color{r:0,g:167,b:255,a:255}}else{Color{r:255,g:103,b:0,a:255}}, [INFO] [stdout] 280 + if self.animation_status {Color{r:0,g:167,b:255,a:255}}else{Color{r:255,g:103,b:0,a:255}}, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | if (self.node.pos.x < 58.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 50 - if (self.node.pos.x < 58.0) { [INFO] [stdout] 50 + if self.node.pos.x < 58.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:293:11 [INFO] [stdout] | [INFO] [stdout] 293 | if(self.ready){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 293 - if(self.ready){ [INFO] [stdout] 293 + if self.ready { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:314:11 [INFO] [stdout] | [INFO] [stdout] 314 | if(self.backup != self.value && self.start.elapsed().as_millis() > 50){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 314 - if(self.backup != self.value && self.start.elapsed().as_millis() > 50){ [INFO] [stdout] 314 + if self.backup != self.value && self.start.elapsed().as_millis() > 50 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 55 | if (self.node.pos.y < 58.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 55 - if (self.node.pos.y < 58.0) { [INFO] [stdout] 55 + if self.node.pos.y < 58.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:330:11 [INFO] [stdout] | [INFO] [stdout] 330 | if(self.backup != 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 330 - if(self.backup != 0){ [INFO] [stdout] 330 + if self.backup != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:60:16 [INFO] [stdout] | [INFO] [stdout] 60 | if (self.node.pos.y > -3.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - if (self.node.pos.y > -3.0) { [INFO] [stdout] 60 + if self.node.pos.y > -3.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:334:15 [INFO] [stdout] | [INFO] [stdout] 334 | if(digit != '1' && digit != '4'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 334 - if(digit != '1' && digit != '4'){ [INFO] [stdout] 334 + if digit != '1' && digit != '4' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | if (!self.node.available) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - if (!self.node.available) { [INFO] [stdout] 127 + if !self.node.available { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | if (orientation.x.abs() >= orientation.y.abs()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 134 - if (orientation.x.abs() >= orientation.y.abs()) { [INFO] [stdout] 134 + if orientation.x.abs() >= orientation.y.abs() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:337:15 [INFO] [stdout] | [INFO] [stdout] 337 | if(digit != '5' && digit != '6'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 337 - if(digit != '5' && digit != '6'){ [INFO] [stdout] 337 + if digit != '5' && digit != '6' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:135:16 [INFO] [stdout] | [INFO] [stdout] 135 | if (orientation.x > 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 135 - if (orientation.x > 0.0) { [INFO] [stdout] 135 + if orientation.x > 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:340:15 [INFO] [stdout] | [INFO] [stdout] 340 | if(digit != '2'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 340 - if(digit != '2'){ [INFO] [stdout] 340 + if digit != '2' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:136:20 [INFO] [stdout] | [INFO] [stdout] 136 | if (self.node.pos.x < 58.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 136 - if (self.node.pos.x < 58.0) { [INFO] [stdout] 136 + if self.node.pos.x < 58.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:343:15 [INFO] [stdout] | [INFO] [stdout] 343 | if(digit != '1' && digit != '4' && digit != '7'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 343 - if(digit != '1' && digit != '4' && digit != '7'){ [INFO] [stdout] 343 + if digit != '1' && digit != '4' && digit != '7' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:346:15 [INFO] [stdout] | [INFO] [stdout] 346 | if(digit == '0' || digit == '2' || digit == '6' || digit == '8'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 346 - if(digit == '0' || digit == '2' || digit == '6' || digit == '8'){ [INFO] [stdout] 346 + if digit == '0' || digit == '2' || digit == '6' || digit == '8' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:141:20 [INFO] [stdout] | [INFO] [stdout] 141 | if (self.node.pos.x > 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 141 - if (self.node.pos.x > 0.0) { [INFO] [stdout] 141 + if self.node.pos.x > 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:349:15 [INFO] [stdout] | [INFO] [stdout] 349 | if(digit != '1' && digit != '2' && digit != '3' && digit != '7'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 349 - if(digit != '1' && digit != '2' && digit != '3' && digit != '7'){ [INFO] [stdout] 349 + if digit != '1' && digit != '2' && digit != '3' && digit != '7' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:147:16 [INFO] [stdout] | [INFO] [stdout] 147 | if (orientation.y > 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 147 - if (orientation.y > 0.0) { [INFO] [stdout] 147 + if orientation.y > 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:352:15 [INFO] [stdout] | [INFO] [stdout] 352 | if(digit != '0' && digit != '1' && digit != '7'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 352 - if(digit != '0' && digit != '1' && digit != '7'){ [INFO] [stdout] 352 + if digit != '0' && digit != '1' && digit != '7' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:148:20 [INFO] [stdout] | [INFO] [stdout] 148 | if (self.node.pos.y < 58.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 148 - if (self.node.pos.y < 58.0) { [INFO] [stdout] 148 + if self.node.pos.y < 58.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::Thread` [INFO] [stdout] --> src/drawable.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::thread::Thread; [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/drawable.rs:153:20 [INFO] [stdout] | [INFO] [stdout] 153 | if (self.node.pos.y > 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - if (self.node.pos.y > 0.0) { [INFO] [stdout] 153 + if self.node.pos.y > 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:45:16 [INFO] [stdout] | [INFO] [stdout] 45 | if (self.node.pos.x > -3.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 - if (self.node.pos.x > -3.0) { [INFO] [stdout] 45 + if self.node.pos.x > -3.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | if (self.node.pos.x < 58.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 50 - if (self.node.pos.x < 58.0) { [INFO] [stdout] 50 + if self.node.pos.x < 58.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:184:12 [INFO] [stdout] | [INFO] [stdout] 184 | if (self.direction == Direction::RIGHT) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 184 - if (self.direction == Direction::RIGHT) { [INFO] [stdout] 184 + if self.direction == Direction::RIGHT { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 55 | if (self.node.pos.y < 58.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 55 - if (self.node.pos.y < 58.0) { [INFO] [stdout] 55 + if self.node.pos.y < 58.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:239:20 [INFO] [stdout] | [INFO] [stdout] 239 | if (prob_c <= *cheese_spawn_rate) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 239 - if (prob_c <= *cheese_spawn_rate) { [INFO] [stdout] 239 + if prob_c <= *cheese_spawn_rate { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:60:16 [INFO] [stdout] | [INFO] [stdout] 60 | if (self.node.pos.y > -3.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - if (self.node.pos.y > -3.0) { [INFO] [stdout] 60 + if self.node.pos.y > -3.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:241:27 [INFO] [stdout] | [INFO] [stdout] 241 | } else if (prob_e <= *enemy_spaw_rate) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 241 - } else if (prob_e <= *enemy_spaw_rate) { [INFO] [stdout] 241 + } else if prob_e <= *enemy_spaw_rate { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:127:12 [INFO] [stdout] | [INFO] [stdout] 127 | if (!self.node.available) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - if (!self.node.available) { [INFO] [stdout] 127 + if !self.node.available { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:251:12 [INFO] [stdout] | [INFO] [stdout] 251 | if (cheeses.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 251 - if (cheeses.len() == 0) { [INFO] [stdout] 251 + if cheeses.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | if (orientation.x.abs() >= orientation.y.abs()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 134 - if (orientation.x.abs() >= orientation.y.abs()) { [INFO] [stdout] 134 + if orientation.x.abs() >= orientation.y.abs() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:274:24 [INFO] [stdout] | [INFO] [stdout] 274 | if (elm.0.x != spider.node.pos.x [INFO] [stdout] | ^ [INFO] [stdout] 275 | && elm.0.y != spider.node.pos.y [INFO] [stdout] 276 | && spider.node.collision(elm.0.x, elm.0.y, elm.1.x, elm.1.y)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 274 ~ if elm.0.x != spider.node.pos.x [INFO] [stdout] 275 | && elm.0.y != spider.node.pos.y [INFO] [stdout] 276 ~ && spider.node.collision(elm.0.x, elm.0.y, elm.1.x, elm.1.y) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:135:16 [INFO] [stdout] | [INFO] [stdout] 135 | if (orientation.x > 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 135 - if (orientation.x > 0.0) { [INFO] [stdout] 135 + if orientation.x > 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:278:28 [INFO] [stdout] | [INFO] [stdout] 278 | if (spider.direction == Direction::UP) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 278 - if (spider.direction == Direction::UP) { [INFO] [stdout] 278 + if spider.direction == Direction::UP { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:280:35 [INFO] [stdout] | [INFO] [stdout] 280 | } else if (spider.direction == Direction::DOWN) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 280 - } else if (spider.direction == Direction::DOWN) { [INFO] [stdout] 280 + } else if spider.direction == Direction::DOWN { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:136:20 [INFO] [stdout] | [INFO] [stdout] 136 | if (self.node.pos.x < 58.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 136 - if (self.node.pos.x < 58.0) { [INFO] [stdout] 136 + if self.node.pos.x < 58.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:282:35 [INFO] [stdout] | [INFO] [stdout] 282 | } else if (spider.direction == Direction::LEFT) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 282 - } else if (spider.direction == Direction::LEFT) { [INFO] [stdout] 282 + } else if spider.direction == Direction::LEFT { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:141:20 [INFO] [stdout] | [INFO] [stdout] 141 | if (self.node.pos.x > 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 141 - if (self.node.pos.x > 0.0) { [INFO] [stdout] 141 + if self.node.pos.x > 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:147:16 [INFO] [stdout] | [INFO] [stdout] 147 | if (orientation.y > 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 147 - if (orientation.y > 0.0) { [INFO] [stdout] 147 + if orientation.y > 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:289:20 [INFO] [stdout] | [INFO] [stdout] 289 | if (spider [INFO] [stdout] | ^ [INFO] [stdout] 290 | .node [INFO] [stdout] 291 | .collision(mouse.node.pos.x + 3.0, mouse.node.pos.y + 3.0, 3.0, 3.0)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 289 ~ if spider [INFO] [stdout] 290 | .node [INFO] [stdout] 291 ~ .collision(mouse.node.pos.x + 3.0, mouse.node.pos.y + 3.0, 3.0, 3.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:148:20 [INFO] [stdout] | [INFO] [stdout] 148 | if (self.node.pos.y < 58.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 148 - if (self.node.pos.y < 58.0) { [INFO] [stdout] 148 + if self.node.pos.y < 58.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:297:12 [INFO] [stdout] | [INFO] [stdout] 297 | if (!self.exit.is_available() && self.points == self.max_points) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 297 - if (!self.exit.is_available() && self.points == self.max_points) { [INFO] [stdout] 297 + if !self.exit.is_available() && self.points == self.max_points { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:153:20 [INFO] [stdout] | [INFO] [stdout] 153 | if (self.node.pos.y > 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 153 - if (self.node.pos.y > 0.0) { [INFO] [stdout] 153 + if self.node.pos.y > 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:299:19 [INFO] [stdout] | [INFO] [stdout] 299 | } else if (*self.exit.is_available() [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 303 | .collision(mouse.node.pos.x + 3.0, mouse.node.pos.y + 3.0, 3.0, 3.0)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 299 ~ } else if *self.exit.is_available() [INFO] [stdout] 300 | && self [INFO] [stdout] 301 | .exit [INFO] [stdout] 302 | .node [INFO] [stdout] 303 ~ .collision(mouse.node.pos.x + 3.0, mouse.node.pos.y + 3.0, 3.0, 3.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:184:12 [INFO] [stdout] | [INFO] [stdout] 184 | if (self.direction == Direction::RIGHT) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 184 - if (self.direction == Direction::RIGHT) { [INFO] [stdout] 184 + if self.direction == Direction::RIGHT { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:308:20 [INFO] [stdout] | [INFO] [stdout] 308 | if (*cheese.is_available() [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 314 | )) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 308 ~ if *cheese.is_available() [INFO] [stdout] 309 | && cheese.node.collision( [INFO] [stdout] ... [INFO] [stdout] 313 | mouse.node.size.y - 6.0, [INFO] [stdout] 314 ~ ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:239:20 [INFO] [stdout] | [INFO] [stdout] 239 | if (prob_c <= *cheese_spawn_rate) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 239 - if (prob_c <= *cheese_spawn_rate) { [INFO] [stdout] 239 + if prob_c <= *cheese_spawn_rate { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:387:11 [INFO] [stdout] | [INFO] [stdout] 387 | if(!device.is_sound_playing(&self.texture_manager.theme)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 387 - if(!device.is_sound_playing(&self.texture_manager.theme)){ [INFO] [stdout] 387 + if !device.is_sound_playing(&self.texture_manager.theme) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:241:27 [INFO] [stdout] | [INFO] [stdout] 241 | } else if (prob_e <= *enemy_spaw_rate) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 241 - } else if (prob_e <= *enemy_spaw_rate) { [INFO] [stdout] 241 + } else if prob_e <= *enemy_spaw_rate { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:251:12 [INFO] [stdout] | [INFO] [stdout] 251 | if (cheeses.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 251 - if (cheeses.len() == 0) { [INFO] [stdout] 251 + if cheeses.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:398:20 [INFO] [stdout] | [INFO] [stdout] 398 | if (self.level_count % 8 == 0 && self.cheese_spawn_rate < 0.5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 398 - if (self.level_count % 8 == 0 && self.cheese_spawn_rate < 0.5) { [INFO] [stdout] 398 + if self.level_count % 8 == 0 && self.cheese_spawn_rate < 0.5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:401:20 [INFO] [stdout] | [INFO] [stdout] 401 | if (self.level_count % 5 == 0 && self.enemy_spawn_rate < 0.5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 401 - if (self.level_count % 5 == 0 && self.enemy_spawn_rate < 0.5) { [INFO] [stdout] 401 + if self.level_count % 5 == 0 && self.enemy_spawn_rate < 0.5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:274:24 [INFO] [stdout] | [INFO] [stdout] 274 | if (elm.0.x != spider.node.pos.x [INFO] [stdout] | ^ [INFO] [stdout] 275 | && elm.0.y != spider.node.pos.y [INFO] [stdout] 276 | && spider.node.collision(elm.0.x, elm.0.y, elm.1.x, elm.1.y)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 274 ~ if elm.0.x != spider.node.pos.x [INFO] [stdout] 275 | && elm.0.y != spider.node.pos.y [INFO] [stdout] 276 ~ && spider.node.collision(elm.0.x, elm.0.y, elm.1.x, elm.1.y) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:411:20 [INFO] [stdout] | [INFO] [stdout] 411 | if (self.curr_level.spiders.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 411 - if (self.curr_level.spiders.len() == 0) { [INFO] [stdout] 411 + if self.curr_level.spiders.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:278:28 [INFO] [stdout] | [INFO] [stdout] 278 | if (spider.direction == Direction::UP) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 278 - if (spider.direction == Direction::UP) { [INFO] [stdout] 278 + if spider.direction == Direction::UP { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:417:20 [INFO] [stdout] | [INFO] [stdout] 417 | if (self.start_button.is_ready()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 417 - if (self.start_button.is_ready()) { [INFO] [stdout] 417 + if self.start_button.is_ready() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:280:35 [INFO] [stdout] | [INFO] [stdout] 280 | } else if (spider.direction == Direction::DOWN) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 280 - } else if (spider.direction == Direction::DOWN) { [INFO] [stdout] 280 + } else if spider.direction == Direction::DOWN { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:419:27 [INFO] [stdout] | [INFO] [stdout] 419 | } else if (self.option_button.is_ready()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 419 - } else if (self.option_button.is_ready()) { [INFO] [stdout] 419 + } else if self.option_button.is_ready() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:282:35 [INFO] [stdout] | [INFO] [stdout] 282 | } else if (spider.direction == Direction::LEFT) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 282 - } else if (spider.direction == Direction::LEFT) { [INFO] [stdout] 282 + } else if spider.direction == Direction::LEFT { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:421:27 [INFO] [stdout] | [INFO] [stdout] 421 | } else if (r_handle.is_key_released(KEY_A)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 421 - } else if (r_handle.is_key_released(KEY_A)) { [INFO] [stdout] 421 + } else if r_handle.is_key_released(KEY_A) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:289:20 [INFO] [stdout] | [INFO] [stdout] 289 | if (spider [INFO] [stdout] | ^ [INFO] [stdout] 290 | .node [INFO] [stdout] 291 | .collision(mouse.node.pos.x + 3.0, mouse.node.pos.y + 3.0, 3.0, 3.0)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 289 ~ if spider [INFO] [stdout] 290 | .node [INFO] [stdout] 291 ~ .collision(mouse.node.pos.x + 3.0, mouse.node.pos.y + 3.0, 3.0, 3.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:425:27 [INFO] [stdout] | [INFO] [stdout] 425 | } else if (r_handle.is_key_released(KEY_S)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 425 - } else if (r_handle.is_key_released(KEY_S)) { [INFO] [stdout] 425 + } else if r_handle.is_key_released(KEY_S) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:434:20 [INFO] [stdout] | [INFO] [stdout] 434 | if (self.retry_button.is_ready()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 434 - if (self.retry_button.is_ready()) { [INFO] [stdout] 434 + if self.retry_button.is_ready() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:297:12 [INFO] [stdout] | [INFO] [stdout] 297 | if (!self.exit.is_available() && self.points == self.max_points) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 297 - if (!self.exit.is_available() && self.points == self.max_points) { [INFO] [stdout] 297 + if !self.exit.is_available() && self.points == self.max_points { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:438:24 [INFO] [stdout] | [INFO] [stdout] 438 | if (self.total_points.get_pos().x == 1.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 438 - if (self.total_points.get_pos().x == 1.0) { [INFO] [stdout] 438 + if self.total_points.get_pos().x == 1.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:299:19 [INFO] [stdout] | [INFO] [stdout] 299 | } else if (*self.exit.is_available() [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 303 | .collision(mouse.node.pos.x + 3.0, mouse.node.pos.y + 3.0, 3.0, 3.0)) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 299 ~ } else if *self.exit.is_available() [INFO] [stdout] 300 | && self [INFO] [stdout] 301 | .exit [INFO] [stdout] 302 | .node [INFO] [stdout] 303 ~ .collision(mouse.node.pos.x + 3.0, mouse.node.pos.y + 3.0, 3.0, 3.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:443:24 [INFO] [stdout] | [INFO] [stdout] 443 | if (r_handle.is_key_released(KEY_A) && self.total_points.has_escalated()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 443 - if (r_handle.is_key_released(KEY_A) && self.total_points.has_escalated()) { [INFO] [stdout] 443 + if r_handle.is_key_released(KEY_A) && self.total_points.has_escalated() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:450:40 [INFO] [stdout] | [INFO] [stdout] 450 | Gamestate::OptionMenu => if(self.back.is_ready()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 450 - Gamestate::OptionMenu => if(self.back.is_ready()){ [INFO] [stdout] 450 + Gamestate::OptionMenu => if self.back.is_ready() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:308:20 [INFO] [stdout] | [INFO] [stdout] 308 | if (*cheese.is_available() [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 314 | )) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 308 ~ if *cheese.is_available() [INFO] [stdout] 309 | && cheese.node.collision( [INFO] [stdout] ... [INFO] [stdout] 313 | mouse.node.size.y - 6.0, [INFO] [stdout] 314 ~ ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:453:19 [INFO] [stdout] | [INFO] [stdout] 453 | if(r_handle.is_key_released(KEY_A)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 453 - if(r_handle.is_key_released(KEY_A)){ [INFO] [stdout] 453 + if r_handle.is_key_released(KEY_A) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:387:11 [INFO] [stdout] | [INFO] [stdout] 387 | if(!device.is_sound_playing(&self.texture_manager.theme)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 387 - if(!device.is_sound_playing(&self.texture_manager.theme)){ [INFO] [stdout] 387 + if !device.is_sound_playing(&self.texture_manager.theme) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:398:20 [INFO] [stdout] | [INFO] [stdout] 398 | if (self.level_count % 8 == 0 && self.cheese_spawn_rate < 0.5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 398 - if (self.level_count % 8 == 0 && self.cheese_spawn_rate < 0.5) { [INFO] [stdout] 398 + if self.level_count % 8 == 0 && self.cheese_spawn_rate < 0.5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:401:20 [INFO] [stdout] | [INFO] [stdout] 401 | if (self.level_count % 5 == 0 && self.enemy_spawn_rate < 0.5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 401 - if (self.level_count % 5 == 0 && self.enemy_spawn_rate < 0.5) { [INFO] [stdout] 401 + if self.level_count % 5 == 0 && self.enemy_spawn_rate < 0.5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:411:20 [INFO] [stdout] | [INFO] [stdout] 411 | if (self.curr_level.spiders.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 411 - if (self.curr_level.spiders.len() == 0) { [INFO] [stdout] 411 + if self.curr_level.spiders.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:417:20 [INFO] [stdout] | [INFO] [stdout] 417 | if (self.start_button.is_ready()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 417 - if (self.start_button.is_ready()) { [INFO] [stdout] 417 + if self.start_button.is_ready() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:456:25 [INFO] [stdout] | [INFO] [stdout] 456 | }else if(r_handle.is_key_released(KEY_X)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 456 - }else if(r_handle.is_key_released(KEY_X)){ [INFO] [stdout] 456 + }else if r_handle.is_key_released(KEY_X) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:419:27 [INFO] [stdout] | [INFO] [stdout] 419 | } else if (self.option_button.is_ready()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 419 - } else if (self.option_button.is_ready()) { [INFO] [stdout] 419 + } else if self.option_button.is_ready() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:457:23 [INFO] [stdout] | [INFO] [stdout] 457 | if(self.volume.value < 100){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 457 - if(self.volume.value < 100){ [INFO] [stdout] 457 + if self.volume.value < 100 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:421:27 [INFO] [stdout] | [INFO] [stdout] 421 | } else if (r_handle.is_key_released(KEY_A)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 421 - } else if (r_handle.is_key_released(KEY_A)) { [INFO] [stdout] 421 + } else if r_handle.is_key_released(KEY_A) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:461:25 [INFO] [stdout] | [INFO] [stdout] 461 | }else if(r_handle.is_key_released(KEY_Z)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 461 - }else if(r_handle.is_key_released(KEY_Z)){ [INFO] [stdout] 461 + }else if r_handle.is_key_released(KEY_Z) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:425:27 [INFO] [stdout] | [INFO] [stdout] 425 | } else if (r_handle.is_key_released(KEY_S)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 425 - } else if (r_handle.is_key_released(KEY_S)) { [INFO] [stdout] 425 + } else if r_handle.is_key_released(KEY_S) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:462:23 [INFO] [stdout] | [INFO] [stdout] 462 | if(self.volume.value > 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 462 - if(self.volume.value > 0){ [INFO] [stdout] 462 + if self.volume.value > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:434:20 [INFO] [stdout] | [INFO] [stdout] 434 | if (self.retry_button.is_ready()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 434 - if (self.retry_button.is_ready()) { [INFO] [stdout] 434 + if self.retry_button.is_ready() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:494:20 [INFO] [stdout] | [INFO] [stdout] 494 | if (self.curr_level.spiders.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 494 - if (self.curr_level.spiders.len() == 0) { [INFO] [stdout] 494 + if self.curr_level.spiders.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:438:24 [INFO] [stdout] | [INFO] [stdout] 438 | if (self.total_points.get_pos().x == 1.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 438 - if (self.total_points.get_pos().x == 1.0) { [INFO] [stdout] 438 + if self.total_points.get_pos().x == 1.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | if (!self.available) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 134 - if (!self.available) { [INFO] [stdout] 134 + if !self.available { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:443:24 [INFO] [stdout] | [INFO] [stdout] 443 | if (r_handle.is_key_released(KEY_A) && self.total_points.has_escalated()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 443 - if (r_handle.is_key_released(KEY_A) && self.total_points.has_escalated()) { [INFO] [stdout] 443 + if r_handle.is_key_released(KEY_A) && self.total_points.has_escalated() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:210:12 [INFO] [stdout] | [INFO] [stdout] 210 | if (self.last_time_point.elapsed().as_millis() > self.animation_speed as u128) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 210 - if (self.last_time_point.elapsed().as_millis() > self.animation_speed as u128) { [INFO] [stdout] 210 + if self.last_time_point.elapsed().as_millis() > self.animation_speed as u128 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:251:11 [INFO] [stdout] | [INFO] [stdout] 251 | if(self.start.elapsed().as_millis() >= self.animation_duration as u128){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 251 - if(self.start.elapsed().as_millis() >= self.animation_duration as u128){ [INFO] [stdout] 251 + if self.start.elapsed().as_millis() >= self.animation_duration as u128 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:450:40 [INFO] [stdout] | [INFO] [stdout] 450 | Gamestate::OptionMenu => if(self.back.is_ready()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 450 - Gamestate::OptionMenu => if(self.back.is_ready()){ [INFO] [stdout] 450 + Gamestate::OptionMenu => if self.back.is_ready() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:255:11 [INFO] [stdout] | [INFO] [stdout] 255 | if(self.delta.elapsed().as_millis() >=self.animation_speed as u128){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 255 - if(self.delta.elapsed().as_millis() >=self.animation_speed as u128){ [INFO] [stdout] 255 + if self.delta.elapsed().as_millis() >=self.animation_speed as u128 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:453:19 [INFO] [stdout] | [INFO] [stdout] 453 | if(r_handle.is_key_released(KEY_A)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 453 - if(r_handle.is_key_released(KEY_A)){ [INFO] [stdout] 453 + if r_handle.is_key_released(KEY_A) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:261:11 [INFO] [stdout] | [INFO] [stdout] 261 | if(self.pressed && !self.ready){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 261 - if(self.pressed && !self.ready){ [INFO] [stdout] 261 + if self.pressed && !self.ready { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:456:25 [INFO] [stdout] | [INFO] [stdout] 456 | }else if(r_handle.is_key_released(KEY_X)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 456 - }else if(r_handle.is_key_released(KEY_X)){ [INFO] [stdout] 456 + }else if r_handle.is_key_released(KEY_X) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:457:23 [INFO] [stdout] | [INFO] [stdout] 457 | if(self.volume.value < 100){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 457 - if(self.volume.value < 100){ [INFO] [stdout] 457 + if self.volume.value < 100 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:280:15 [INFO] [stdout] | [INFO] [stdout] 280 | if(self.animation_status){Color{r:0,g:167,b:255,a:255}}else{Color{r:255,g:103,b:0,a:255}}, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 280 - if(self.animation_status){Color{r:0,g:167,b:255,a:255}}else{Color{r:255,g:103,b:0,a:255}}, [INFO] [stdout] 280 + if self.animation_status {Color{r:0,g:167,b:255,a:255}}else{Color{r:255,g:103,b:0,a:255}}, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:461:25 [INFO] [stdout] | [INFO] [stdout] 461 | }else if(r_handle.is_key_released(KEY_Z)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 461 - }else if(r_handle.is_key_released(KEY_Z)){ [INFO] [stdout] 461 + }else if r_handle.is_key_released(KEY_Z) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:293:11 [INFO] [stdout] | [INFO] [stdout] 293 | if(self.ready){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 293 - if(self.ready){ [INFO] [stdout] 293 + if self.ready { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:314:11 [INFO] [stdout] | [INFO] [stdout] 314 | if(self.backup != self.value && self.start.elapsed().as_millis() > 50){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 314 - if(self.backup != self.value && self.start.elapsed().as_millis() > 50){ [INFO] [stdout] 314 + if self.backup != self.value && self.start.elapsed().as_millis() > 50 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:330:11 [INFO] [stdout] | [INFO] [stdout] 330 | if(self.backup != 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 330 - if(self.backup != 0){ [INFO] [stdout] 330 + if self.backup != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:462:23 [INFO] [stdout] | [INFO] [stdout] 462 | if(self.volume.value > 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 462 - if(self.volume.value > 0){ [INFO] [stdout] 462 + if self.volume.value > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:334:15 [INFO] [stdout] | [INFO] [stdout] 334 | if(digit != '1' && digit != '4'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 334 - if(digit != '1' && digit != '4'){ [INFO] [stdout] 334 + if digit != '1' && digit != '4' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:337:15 [INFO] [stdout] | [INFO] [stdout] 337 | if(digit != '5' && digit != '6'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 337 - if(digit != '5' && digit != '6'){ [INFO] [stdout] 337 + if digit != '5' && digit != '6' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/drawable.rs:494:20 [INFO] [stdout] | [INFO] [stdout] 494 | if (self.curr_level.spiders.len() == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 494 - if (self.curr_level.spiders.len() == 0) { [INFO] [stdout] 494 + if self.curr_level.spiders.len() == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:340:15 [INFO] [stdout] | [INFO] [stdout] 340 | if(digit != '2'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 340 - if(digit != '2'){ [INFO] [stdout] 340 + if digit != '2' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:343:15 [INFO] [stdout] | [INFO] [stdout] 343 | if(digit != '1' && digit != '4' && digit != '7'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 343 - if(digit != '1' && digit != '4' && digit != '7'){ [INFO] [stdout] 343 + if digit != '1' && digit != '4' && digit != '7' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:346:15 [INFO] [stdout] | [INFO] [stdout] 346 | if(digit == '0' || digit == '2' || digit == '6' || digit == '8'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 346 - if(digit == '0' || digit == '2' || digit == '6' || digit == '8'){ [INFO] [stdout] 346 + if digit == '0' || digit == '2' || digit == '6' || digit == '8' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:349:15 [INFO] [stdout] | [INFO] [stdout] 349 | if(digit != '1' && digit != '2' && digit != '3' && digit != '7'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 349 - if(digit != '1' && digit != '2' && digit != '3' && digit != '7'){ [INFO] [stdout] 349 + if digit != '1' && digit != '2' && digit != '3' && digit != '7' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/node.rs:352:15 [INFO] [stdout] | [INFO] [stdout] 352 | if(digit != '0' && digit != '1' && digit != '7'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 352 - if(digit != '0' && digit != '1' && digit != '7'){ [INFO] [stdout] 352 + if digit != '0' && digit != '1' && digit != '7' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/drawable.rs:350:13 [INFO] [stdout] | [INFO] [stdout] 350 | let mut texture_manager = ResourceManager::new(handle, thread); [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: unreachable pattern [INFO] [stdout] --> src/drawable.rs:469:13 [INFO] [stdout] | [INFO] [stdout] 469 | _ => Gamestate::Play, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/drawable.rs:469:13 [INFO] [stdout] | [INFO] [stdout] 391 | Gamestate::Play => { [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 395 | Gamestate::NextLevel => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 416 | Gamestate::MainMenu => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 433 | Gamestate::GameOver => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 469 | _ => Gamestate::Play, [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/drawable.rs:350:13 [INFO] [stdout] | [INFO] [stdout] 350 | let mut texture_manager = ResourceManager::new(handle, thread); [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: unreachable pattern [INFO] [stdout] --> src/drawable.rs:469:13 [INFO] [stdout] | [INFO] [stdout] 469 | _ => Gamestate::Play, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/drawable.rs:469:13 [INFO] [stdout] | [INFO] [stdout] 391 | Gamestate::Play => { [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 395 | Gamestate::NextLevel => { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 416 | Gamestate::MainMenu => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 433 | Gamestate::GameOver => { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 469 | _ => Gamestate::Play, [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `UP`, `LEFT`, `DOWN`, and `RIGHT` are never constructed [INFO] [stdout] --> src/node.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub enum Direction { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 24 | UP = 0, [INFO] [stdout] | ^^ [INFO] [stdout] 25 | LEFT = 1, [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | DOWN = 2, [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | RIGHT = 3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/drawable.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Mouse { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 36 | pub fn new(x: f32, y: f32, direction: Direction) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `load_font` and `load_music` are never used [INFO] [stdout] --> src/node.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 56 | impl ResourceManager { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 99 | fn load_font(handle: &mut RaylibHandle, thread: &RaylibThread, name: &str) -> Font { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | fn load_music(thread: &RaylibThread, name: &str) -> Music { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Gamestate` is never used [INFO] [stdout] --> src/node.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | pub enum Gamestate { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResourceManager` is never constructed [INFO] [stdout] --> src/node.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct ResourceManager { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `load_texture`, `load_font`, `load_audio`, and `load_music` are never used [INFO] [stdout] --> src/node.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl ResourceManager { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] 57 | pub fn new(handle: &mut RaylibHandle, thread: &RaylibThread) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | fn load_texture(handle: &mut RaylibHandle, thread: &RaylibThread, name: &str) -> Texture2D { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | fn load_font(handle: &mut RaylibHandle, thread: &RaylibThread, name: &str) -> Font { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | fn load_audio(name: &str) -> Sound { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | fn load_music(thread: &RaylibThread, name: &str) -> Music { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pos`, `size`, and `available` are never read [INFO] [stdout] --> src/node.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 113 | pub struct VisibleNode { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 114 | pub pos: Vector2, [INFO] [stdout] | ^^^ [INFO] [stdout] 115 | pub size: Vector2, [INFO] [stdout] | ^^^^ [INFO] [stdout] 116 | pub available: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create_vn`, `draw`, `collision`, and `box_collisions` are never used [INFO] [stdout] --> src/node.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 119 | impl VisibleNode { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 120 | pub fn create_vn(x: f32, y: f32, w: f32, h: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub fn draw( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn collision(&self, el_x: f32, el_y: f32, el_w: f32, el_h: f32) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | fn box_collisions( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `animation_steps_count`, `animation_step`, `animation_speed`, and `last_time_point` are never read [INFO] [stdout] --> src/node.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 182 | pub struct AnimatedNode { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 183 | pub node: VisibleNode, [INFO] [stdout] 184 | pub animation_steps_count: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 185 | pub animation_step: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 186 | pub animation_speed: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 187 | pub last_time_point: Instant, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create_an` and `cycle_animation` are never used [INFO] [stdout] --> src/node.rs:191:12 [INFO] [stdout] | [INFO] [stdout] 190 | impl AnimatedNode { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 191 | pub fn create_an( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn cycle_animation(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AnimatedButton` is never constructed [INFO] [stdout] --> src/node.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 224 | pub struct AnimatedButton { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `cycle_animation`, `draw`, `click`, `reset`, and `is_ready` are never used [INFO] [stdout] --> src/node.rs:237:12 [INFO] [stdout] | [INFO] [stdout] 236 | impl AnimatedButton { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 237 | pub fn new(x: f32, y: f32, w: f32, h: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 250 | fn cycle_animation(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | pub fn draw(&mut self, drawer: &mut RaylibTextureMode, texture : &Texture2D){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn click(&mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | pub fn reset(&mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | pub fn is_ready(&mut self) -> bool{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NumberDisplay` is never constructed [INFO] [stdout] --> src/node.rs:302:12 [INFO] [stdout] | [INFO] [stdout] 302 | pub struct NumberDisplay{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/node.rs:310:12 [INFO] [stdout] | [INFO] [stdout] 309 | impl NumberDisplay{ [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 310 | pub fn new(x : f32, y : f32) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | fn cycle_animation(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 319 | pub fn escalate(&mut self){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 324 | pub fn has_escalated(&self) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 327 | pub fn draw(&mut self, drawer: &mut RaylibTextureMode){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 358 | pub fn translate(&mut self, x : f32, y : f32){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 362 | pub fn reset(&mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 366 | pub fn get_pos(&self) -> &Vector2{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SCALE` is never used [INFO] [stdout] --> src/drawable.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | pub const SCALE: i32 = 10; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mouse` is never constructed [INFO] [stdout] --> src/drawable.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Mouse { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `cycle`, `draw`, and `get_pos` are never used [INFO] [stdout] --> src/drawable.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Mouse { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 36 | pub fn new(x: f32, y: f32, direction: Direction) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn cycle(&mut self, handle: &mut RaylibHandle) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn draw(&mut self, drawer: &mut RaylibTextureMode, texture: &Texture2D) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn get_pos(&self) -> &Vector2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cheese` is never constructed [INFO] [stdout] --> src/drawable.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct Cheese { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `draw`, and `is_available` are never used [INFO] [stdout] --> src/drawable.rs:85:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl Cheese { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 85 | pub fn new(x: f32, y: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn draw(&mut self, drawer: &mut RaylibTextureMode, texture: &Texture2D) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn is_available(&self) -> &bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Spider` is never constructed [INFO] [stdout] --> src/drawable.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub struct Spider { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `draw`, `cycle`, `get_pos`, and `get_size` are never used [INFO] [stdout] --> src/drawable.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 110 | impl Spider { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 111 | pub fn new(x: f32, y: f32, direction: Direction) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn draw(&mut self, drawer: &mut RaylibTextureMode, texture: &Texture2D) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn cycle(&mut self, target: &Vector2) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | pub fn get_pos(&self) -> &Vector2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn get_size(&self) -> &Vector2 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Exit` is never constructed [INFO] [stdout] --> src/drawable.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | pub struct Exit { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `draw`, `is_available`, and `activate` are never used [INFO] [stdout] --> src/drawable.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 173 | impl Exit { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 174 | pub fn new(x: f32, y: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 182 | pub fn draw(&mut self, drawer: &mut RaylibTextureMode, texture: &Texture2D) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn is_available(&self) -> &bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn activate(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Level` is never constructed [INFO] [stdout] --> src/drawable.rs:208:12 [INFO] [stdout] | [INFO] [stdout] 208 | pub struct Level { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `generate` and `cycle` are never used [INFO] [stdout] --> src/drawable.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 216 | impl Level { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 217 | pub fn generate( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn cycle(&mut self, mouse: &Mouse, device : &mut RaylibAudio, pickup_sound : &Sound) -> Gamestate { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Game` is never constructed [INFO] [stdout] --> src/drawable.rs:326:12 [INFO] [stdout] | [INFO] [stdout] 326 | pub struct Game { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, `show`, and `reset_game` are never used [INFO] [stdout] --> src/drawable.rs:345:12 [INFO] [stdout] | [INFO] [stdout] 344 | impl Game { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 345 | pub fn new(handle: &mut RaylibHandle, thread: &RaylibThread) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 386 | pub fn update(&mut self, r_handle: &mut RaylibHandle, device : &mut RaylibAudio) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 472 | pub fn show(&mut self, drawer: &mut RaylibDrawHandle, thread: &RaylibThread) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 590 | pub fn reset_game(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.29s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: fs_extra v1.2.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "53af41db27f53c8a3db2d777563e6bd656b8ec95896f224a7eb4dd7ec984dadc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53af41db27f53c8a3db2d777563e6bd656b8ec95896f224a7eb4dd7ec984dadc", kill_on_drop: false }` [INFO] [stdout] 53af41db27f53c8a3db2d777563e6bd656b8ec95896f224a7eb4dd7ec984dadc