[INFO] cloning repository https://github.com/simeleo20/tetrisRaylib [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/simeleo20/tetrisRaylib" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsimeleo20%2FtetrisRaylib", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsimeleo20%2FtetrisRaylib'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6f64e3b93b6575b3b52c86a4d814f0d58ee78aec [INFO] linting simeleo20/tetrisRaylib against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsimeleo20%2FtetrisRaylib" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/simeleo20/tetrisRaylib [INFO] finished tweaking git repo https://github.com/simeleo20/tetrisRaylib [INFO] tweaked toml for git repo https://github.com/simeleo20/tetrisRaylib written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/simeleo20/tetrisRaylib on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/simeleo20/tetrisRaylib 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded getrandom v0.3.2 [INFO] [stderr] Downloaded zerocopy-derive v0.8.24 [INFO] [stderr] Downloaded prettyplease v0.2.31 [INFO] [stderr] Downloaded cc v1.2.17 [INFO] [stderr] Downloaded zerocopy v0.8.24 [INFO] [stderr] Downloaded raylib v5.5.0 [INFO] [stderr] Downloaded bindgen v0.70.1 [INFO] [stderr] Downloaded raylib-sys v5.5.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 13a2616fe987a34e1d5acbfd1e55cf6d36aa42fabeee6afcdb22a91f567b66a5 [INFO] running `Command { std: "docker" "start" "-a" "13a2616fe987a34e1d5acbfd1e55cf6d36aa42fabeee6afcdb22a91f567b66a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "13a2616fe987a34e1d5acbfd1e55cf6d36aa42fabeee6afcdb22a91f567b66a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "13a2616fe987a34e1d5acbfd1e55cf6d36aa42fabeee6afcdb22a91f567b66a5", kill_on_drop: false }` [INFO] [stdout] 13a2616fe987a34e1d5acbfd1e55cf6d36aa42fabeee6afcdb22a91f567b66a5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d8877dd548effc07c5613d679f0e5ee19b696702cb1c8fdeecf39e15a745969d [INFO] running `Command { std: "docker" "start" "-a" "d8877dd548effc07c5613d679f0e5ee19b696702cb1c8fdeecf39e15a745969d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Compiling prettyplease v0.2.31 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling libloading v0.8.6 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling bindgen v0.70.1 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling cc v1.2.17 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling seq-macro v0.3.6 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Compiling raylib-sys v5.5.0 [INFO] [stderr] Checking raylib v5.5.0 [INFO] [stderr] Checking tetrisRaylib v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::clone` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::clone; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BeginDrawing`, `GetRandomValue`, and `false_` [INFO] [stdout] --> src/main.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use raylib::{ffi::{false_, BeginDrawing, GetRandomValue}, prelude::*}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::clone` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::clone; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BeginDrawing`, `GetRandomValue`, and `false_` [INFO] [stdout] --> src/main.rs:4:20 [INFO] [stdout] | [INFO] [stdout] 4 | use raylib::{ffi::{false_, BeginDrawing, GetRandomValue}, prelude::*}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude` [INFO] [stdout] --> src/main.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::{prelude::*, random_range}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rl` [INFO] [stdout] --> src/main.rs:696:37 [INFO] [stdout] | [INFO] [stdout] 696 | fn handle_move_input(&mut self, rl:&mut RaylibHandle) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rl` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rl` [INFO] [stdout] --> src/main.rs:721:33 [INFO] [stdout] | [INFO] [stdout] 721 | fn handle_rotate(&mut self, rl:&mut RaylibHandle) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/main.rs:772:9 [INFO] [stdout] | [INFO] [stdout] 772 | let map: [[Option; 10]; 40] = [[None;10]; 40]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_map` is never used [INFO] [stdout] --> src/main.rs:229:8 [INFO] [stdout] | [INFO] [stdout] 87 | impl Piece { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 229 | fn print_map(&self) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Up` is never constructed [INFO] [stdout] --> src/main.rs:254:5 [INFO] [stdout] | [INFO] [stdout] 252 | enum Dir [INFO] [stdout] | --- variant in this enum [INFO] [stdout] 253 | { [INFO] [stdout] 254 | Up, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_key_down` is never used [INFO] [stdout] --> src/main.rs:296:8 [INFO] [stdout] | [INFO] [stdout] 283 | impl KeysStates { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 296 | fn is_key_down(&self, key:KeyboardKey) -> bool [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hold` and `hold_used` are never read [INFO] [stdout] --> src/main.rs:352:5 [INFO] [stdout] | [INFO] [stdout] 347 | struct Game [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 352 | hold: Piece, [INFO] [stdout] | ^^^^ [INFO] [stdout] 353 | hold_used: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `x` is used to index `new_map` [INFO] [stdout] --> src/main.rs:194:30 [INFO] [stdout] | [INFO] [stdout] 194 | for x in 0..self.map_size [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 194 - for x in 0..self.map_size [INFO] [stdout] 194 + for (x, ) in new_map.iter_mut().enumerate().take(self.map_size) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `y` is used to index `new_map` [INFO] [stdout] --> src/main.rs:202:26 [INFO] [stdout] | [INFO] [stdout] 202 | for y in 0..self.map_size { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 202 - for y in 0..self.map_size { [INFO] [stdout] 202 + for (y, ) in new_map.iter_mut().enumerate().take(self.map_size) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against true are unnecessary [INFO] [stdout] --> src/main.rs:220:20 [INFO] [stdout] | [INFO] [stdout] 220 | if self.map[y][x] == true [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.map[y][x]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_comparison)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:309:57 [INFO] [stdout] | [INFO] [stdout] 309 | KeyboardKey::KEY_UP => self.state.key_up && self.old_state.key_up == false, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!self.old_state.key_up` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:310:61 [INFO] [stdout] | [INFO] [stdout] 310 | KeyboardKey::KEY_DOWN => self.state.key_down && self.old_state.key_down == false, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!self.old_state.key_down` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:311:61 [INFO] [stdout] | [INFO] [stdout] 311 | KeyboardKey::KEY_LEFT => self.state.key_left && self.old_state.key_left == false, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!self.old_state.key_left` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:312:63 [INFO] [stdout] | [INFO] [stdout] 312 | KeyboardKey::KEY_RIGHT => self.state.key_right && self.old_state.key_right == false, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!self.old_state.key_right` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/main.rs:404:31 [INFO] [stdout] | [INFO] [stdout] 404 | x as i32 *block_size as i32 + self.pos.x as i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try: `block_size` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude` [INFO] [stdout] --> src/main.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::{prelude::*, random_range}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/main.rs:405:31 [INFO] [stdout] | [INFO] [stdout] 405 | y as i32 *block_size as i32 + self.pos.y as i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try: `block_size` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against true are unnecessary [INFO] [stdout] --> src/main.rs:421:20 [INFO] [stdout] | [INFO] [stdout] 421 | if self.current_piece.map[y as usize][x as usize] == true [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.current_piece.map[y as usize][x as usize]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:570:24 [INFO] [stdout] | [INFO] [stdout] 570 | if !self.map [INFO] [stdout] | ________________________^ [INFO] [stdout] 571 | | [(y as f32+self.current_piece.pos.y ) as usize] [INFO] [stdout] 572 | | [(x as f32+self.current_piece.pos.x ) as usize] [INFO] [stdout] 573 | | .is_none() [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 570 ~ if self.map [INFO] [stdout] 571 + [(y as f32+self.current_piece.pos.y ) as usize] [INFO] [stdout] 572 + [(x as f32+self.current_piece.pos.x ) as usize].is_some() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:568:17 [INFO] [stdout] | [INFO] [stdout] 568 | / if self.current_piece.map[y][x] [INFO] [stdout] 569 | | { [INFO] [stdout] 570 | | if !self.map [INFO] [stdout] 571 | | [(y as f32+self.current_piece.pos.y ) as usize] [INFO] [stdout] ... | [INFO] [stdout] 577 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 568 ~ if self.current_piece.map[y][x] [INFO] [stdout] 569 ~ && !self.map [INFO] [stdout] 570 | [(y as f32+self.current_piece.pos.y ) as usize] [INFO] [stdout] ... [INFO] [stdout] 574 | return true; [INFO] [stdout] 575 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:590:21 [INFO] [stdout] | [INFO] [stdout] 590 | / if self.current_piece.map[y][x] [INFO] [stdout] 591 | | { [INFO] [stdout] 592 | | if (self.current_piece.pos.x + x as f32) < 0. [INFO] [stdout] ... | [INFO] [stdout] 596 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 590 ~ if self.current_piece.map[y][x] [INFO] [stdout] 591 ~ && (self.current_piece.pos.x + x as f32) < 0. [INFO] [stdout] 592 | { [INFO] [stdout] 593 | return true; [INFO] [stdout] 594 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:605:21 [INFO] [stdout] | [INFO] [stdout] 605 | / if self.current_piece.map[y][x] [INFO] [stdout] 606 | | { [INFO] [stdout] 607 | | if (self.current_piece.pos.x + x as f32) >= self.map_size.x [INFO] [stdout] ... | [INFO] [stdout] 611 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 605 ~ if self.current_piece.map[y][x] [INFO] [stdout] 606 ~ && (self.current_piece.pos.x + x as f32) >= self.map_size.x [INFO] [stdout] 607 | { [INFO] [stdout] 608 | return true; [INFO] [stdout] 609 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:625:21 [INFO] [stdout] | [INFO] [stdout] 625 | / if self.current_piece.map[y][x] [INFO] [stdout] 626 | | { [INFO] [stdout] 627 | | if (self.current_piece.pos.y + y as f32) < 0. [INFO] [stdout] ... | [INFO] [stdout] 631 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 625 ~ if self.current_piece.map[y][x] [INFO] [stdout] 626 ~ && (self.current_piece.pos.y + y as f32) < 0. [INFO] [stdout] 627 | { [INFO] [stdout] 628 | return true; [INFO] [stdout] 629 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:640:21 [INFO] [stdout] | [INFO] [stdout] 640 | / if self.current_piece.map[y][x] [INFO] [stdout] 641 | | { [INFO] [stdout] 642 | | if (self.current_piece.pos.y + y as f32) >= self.map_size.y [INFO] [stdout] ... | [INFO] [stdout] 646 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 640 ~ if self.current_piece.map[y][x] [INFO] [stdout] 641 ~ && (self.current_piece.pos.y + y as f32) >= self.map_size.y [INFO] [stdout] 642 | { [INFO] [stdout] 643 | return true; [INFO] [stdout] 644 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:713:9 [INFO] [stdout] | [INFO] [stdout] 713 | / if self.keys.is_key_just_pressed(KeyboardKey::KEY_DOWN) [INFO] [stdout] 714 | | { [INFO] [stdout] 715 | | if !self.try_move_piece(Dir::Down) [INFO] [stdout] ... | [INFO] [stdout] 719 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 713 ~ if self.keys.is_key_just_pressed(KeyboardKey::KEY_DOWN) [INFO] [stdout] 714 ~ && !self.try_move_piece(Dir::Down) [INFO] [stdout] 715 | { [INFO] [stdout] 716 | self.move_timer.time = 0.; [INFO] [stdout] 717 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:753:13 [INFO] [stdout] | [INFO] [stdout] 753 | / if self.move_timer.just_ticked [INFO] [stdout] 754 | | { [INFO] [stdout] 755 | | if self.try_move_piece(Dir::Down) [INFO] [stdout] ... | [INFO] [stdout] 759 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 753 ~ if self.move_timer.just_ticked [INFO] [stdout] 754 ~ && self.try_move_piece(Dir::Down) [INFO] [stdout] 755 | { [INFO] [stdout] 756 | self.place_piece(); [INFO] [stdout] 757 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map_size` should have an upper case name [INFO] [stdout] --> src/main.rs:366:15 [INFO] [stdout] | [INFO] [stdout] 366 | const map_size:Vector2 = Vector2::new(10.,40.); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 366 - const map_size:Vector2 = Vector2::new(10.,40.); [INFO] [stdout] 366 + const MAP_SIZE:Vector2 = Vector2::new(10.,40.); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rl` [INFO] [stdout] --> src/main.rs:696:37 [INFO] [stdout] | [INFO] [stdout] 696 | fn handle_move_input(&mut self, rl:&mut RaylibHandle) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rl` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rl` [INFO] [stdout] --> src/main.rs:721:33 [INFO] [stdout] | [INFO] [stdout] 721 | fn handle_rotate(&mut self, rl:&mut RaylibHandle) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `map` [INFO] [stdout] --> src/main.rs:772:9 [INFO] [stdout] | [INFO] [stdout] 772 | let map: [[Option; 10]; 40] = [[None;10]; 40]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_map` is never used [INFO] [stdout] --> src/main.rs:229:8 [INFO] [stdout] | [INFO] [stdout] 87 | impl Piece { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 229 | fn print_map(&self) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Up` is never constructed [INFO] [stdout] --> src/main.rs:254:5 [INFO] [stdout] | [INFO] [stdout] 252 | enum Dir [INFO] [stdout] | --- variant in this enum [INFO] [stdout] 253 | { [INFO] [stdout] 254 | Up, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_key_down` is never used [INFO] [stdout] --> src/main.rs:296:8 [INFO] [stdout] | [INFO] [stdout] 283 | impl KeysStates { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 296 | fn is_key_down(&self, key:KeyboardKey) -> bool [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hold` and `hold_used` are never read [INFO] [stdout] --> src/main.rs:352:5 [INFO] [stdout] | [INFO] [stdout] 347 | struct Game [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 352 | hold: Piece, [INFO] [stdout] | ^^^^ [INFO] [stdout] 353 | hold_used: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `x` is used to index `new_map` [INFO] [stdout] --> src/main.rs:194:30 [INFO] [stdout] | [INFO] [stdout] 194 | for x in 0..self.map_size [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 194 - for x in 0..self.map_size [INFO] [stdout] 194 + for (x, ) in new_map.iter_mut().enumerate().take(self.map_size) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `y` is used to index `new_map` [INFO] [stdout] --> src/main.rs:202:26 [INFO] [stdout] | [INFO] [stdout] 202 | for y in 0..self.map_size { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 202 - for y in 0..self.map_size { [INFO] [stdout] 202 + for (y, ) in new_map.iter_mut().enumerate().take(self.map_size) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against true are unnecessary [INFO] [stdout] --> src/main.rs:220:20 [INFO] [stdout] | [INFO] [stdout] 220 | if self.map[y][x] == true [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.map[y][x]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_comparison)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:309:57 [INFO] [stdout] | [INFO] [stdout] 309 | KeyboardKey::KEY_UP => self.state.key_up && self.old_state.key_up == false, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!self.old_state.key_up` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:310:61 [INFO] [stdout] | [INFO] [stdout] 310 | KeyboardKey::KEY_DOWN => self.state.key_down && self.old_state.key_down == false, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!self.old_state.key_down` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:311:61 [INFO] [stdout] | [INFO] [stdout] 311 | KeyboardKey::KEY_LEFT => self.state.key_left && self.old_state.key_left == false, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!self.old_state.key_left` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against false can be replaced by a negation [INFO] [stdout] --> src/main.rs:312:63 [INFO] [stdout] | [INFO] [stdout] 312 | KeyboardKey::KEY_RIGHT => self.state.key_right && self.old_state.key_right == false, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `!self.old_state.key_right` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/main.rs:404:31 [INFO] [stdout] | [INFO] [stdout] 404 | x as i32 *block_size as i32 + self.pos.x as i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try: `block_size` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/main.rs:405:31 [INFO] [stdout] | [INFO] [stdout] 405 | y as i32 *block_size as i32 + self.pos.y as i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try: `block_size` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: equality checks against true are unnecessary [INFO] [stdout] --> src/main.rs:421:20 [INFO] [stdout] | [INFO] [stdout] 421 | if self.current_piece.map[y as usize][x as usize] == true [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.current_piece.map[y as usize][x as usize]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/main.rs:570:24 [INFO] [stdout] | [INFO] [stdout] 570 | if !self.map [INFO] [stdout] | ________________________^ [INFO] [stdout] 571 | | [(y as f32+self.current_piece.pos.y ) as usize] [INFO] [stdout] 572 | | [(x as f32+self.current_piece.pos.x ) as usize] [INFO] [stdout] 573 | | .is_none() [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 570 ~ if self.map [INFO] [stdout] 571 + [(y as f32+self.current_piece.pos.y ) as usize] [INFO] [stdout] 572 + [(x as f32+self.current_piece.pos.x ) as usize].is_some() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:568:17 [INFO] [stdout] | [INFO] [stdout] 568 | / if self.current_piece.map[y][x] [INFO] [stdout] 569 | | { [INFO] [stdout] 570 | | if !self.map [INFO] [stdout] 571 | | [(y as f32+self.current_piece.pos.y ) as usize] [INFO] [stdout] ... | [INFO] [stdout] 577 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 568 ~ if self.current_piece.map[y][x] [INFO] [stdout] 569 ~ && !self.map [INFO] [stdout] 570 | [(y as f32+self.current_piece.pos.y ) as usize] [INFO] [stdout] ... [INFO] [stdout] 574 | return true; [INFO] [stdout] 575 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:590:21 [INFO] [stdout] | [INFO] [stdout] 590 | / if self.current_piece.map[y][x] [INFO] [stdout] 591 | | { [INFO] [stdout] 592 | | if (self.current_piece.pos.x + x as f32) < 0. [INFO] [stdout] ... | [INFO] [stdout] 596 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 590 ~ if self.current_piece.map[y][x] [INFO] [stdout] 591 ~ && (self.current_piece.pos.x + x as f32) < 0. [INFO] [stdout] 592 | { [INFO] [stdout] 593 | return true; [INFO] [stdout] 594 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:605:21 [INFO] [stdout] | [INFO] [stdout] 605 | / if self.current_piece.map[y][x] [INFO] [stdout] 606 | | { [INFO] [stdout] 607 | | if (self.current_piece.pos.x + x as f32) >= self.map_size.x [INFO] [stdout] ... | [INFO] [stdout] 611 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 605 ~ if self.current_piece.map[y][x] [INFO] [stdout] 606 ~ && (self.current_piece.pos.x + x as f32) >= self.map_size.x [INFO] [stdout] 607 | { [INFO] [stdout] 608 | return true; [INFO] [stdout] 609 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:625:21 [INFO] [stdout] | [INFO] [stdout] 625 | / if self.current_piece.map[y][x] [INFO] [stdout] 626 | | { [INFO] [stdout] 627 | | if (self.current_piece.pos.y + y as f32) < 0. [INFO] [stdout] ... | [INFO] [stdout] 631 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 625 ~ if self.current_piece.map[y][x] [INFO] [stdout] 626 ~ && (self.current_piece.pos.y + y as f32) < 0. [INFO] [stdout] 627 | { [INFO] [stdout] 628 | return true; [INFO] [stdout] 629 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:640:21 [INFO] [stdout] | [INFO] [stdout] 640 | / if self.current_piece.map[y][x] [INFO] [stdout] 641 | | { [INFO] [stdout] 642 | | if (self.current_piece.pos.y + y as f32) >= self.map_size.y [INFO] [stdout] ... | [INFO] [stdout] 646 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 640 ~ if self.current_piece.map[y][x] [INFO] [stdout] 641 ~ && (self.current_piece.pos.y + y as f32) >= self.map_size.y [INFO] [stdout] 642 | { [INFO] [stdout] 643 | return true; [INFO] [stdout] 644 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:713:9 [INFO] [stdout] | [INFO] [stdout] 713 | / if self.keys.is_key_just_pressed(KeyboardKey::KEY_DOWN) [INFO] [stdout] 714 | | { [INFO] [stdout] 715 | | if !self.try_move_piece(Dir::Down) [INFO] [stdout] ... | [INFO] [stdout] 719 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 713 ~ if self.keys.is_key_just_pressed(KeyboardKey::KEY_DOWN) [INFO] [stdout] 714 ~ && !self.try_move_piece(Dir::Down) [INFO] [stdout] 715 | { [INFO] [stdout] 716 | self.move_timer.time = 0.; [INFO] [stdout] 717 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:753:13 [INFO] [stdout] | [INFO] [stdout] 753 | / if self.move_timer.just_ticked [INFO] [stdout] 754 | | { [INFO] [stdout] 755 | | if self.try_move_piece(Dir::Down) [INFO] [stdout] ... | [INFO] [stdout] 759 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 753 ~ if self.move_timer.just_ticked [INFO] [stdout] 754 ~ && self.try_move_piece(Dir::Down) [INFO] [stdout] 755 | { [INFO] [stdout] 756 | self.place_piece(); [INFO] [stdout] 757 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `map_size` should have an upper case name [INFO] [stdout] --> src/main.rs:366:15 [INFO] [stdout] | [INFO] [stdout] 366 | const map_size:Vector2 = Vector2::new(10.,40.); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 366 - const map_size:Vector2 = Vector2::new(10.,40.); [INFO] [stdout] 366 + const MAP_SIZE:Vector2 = Vector2::new(10.,40.); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 04s [INFO] running `Command { std: "docker" "inspect" "d8877dd548effc07c5613d679f0e5ee19b696702cb1c8fdeecf39e15a745969d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8877dd548effc07c5613d679f0e5ee19b696702cb1c8fdeecf39e15a745969d", kill_on_drop: false }` [INFO] [stdout] d8877dd548effc07c5613d679f0e5ee19b696702cb1c8fdeecf39e15a745969d