[INFO] updating cached repository https://github.com/VondrakMar/Rustout [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dda7eb102becea8278fe22b60b5aabf77875f7b1 [INFO] checking VondrakMar/Rustout/dda7eb102becea8278fe22b60b5aabf77875f7b1 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FVondrakMar%2FRustout" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/VondrakMar/Rustout on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/VondrakMar/Rustout [INFO] finished tweaking git repo https://github.com/VondrakMar/Rustout [INFO] tweaked toml for git repo https://github.com/VondrakMar/Rustout written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/VondrakMar/Rustout 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c27d322c6286a9350d9ef1c514ce8b5aeda82b8390f7de8ef0db6844273584f1 [INFO] running `Command { std: "docker" "start" "-a" "c27d322c6286a9350d9ef1c514ce8b5aeda82b8390f7de8ef0db6844273584f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c27d322c6286a9350d9ef1c514ce8b5aeda82b8390f7de8ef0db6844273584f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c27d322c6286a9350d9ef1c514ce8b5aeda82b8390f7de8ef0db6844273584f1", kill_on_drop: false }` [INFO] [stdout] c27d322c6286a9350d9ef1c514ce8b5aeda82b8390f7de8ef0db6844273584f1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c7d3663efa8a7ccd17e2f7dd640701ea0e3174d7efb245201371fa297826152c [INFO] running `Command { std: "docker" "start" "-a" "c7d3663efa8a7ccd17e2f7dd640701ea0e3174d7efb245201371fa297826152c", kill_on_drop: false }` [INFO] [stderr] Compiling version-compare v0.0.10 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling sdl2 v0.34.5 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling sdl2-sys v0.34.5 [INFO] [stderr] Checking Rustout v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `sdl2::rect::Point` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sdl2::rect::Point; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/utils/utils.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/utils/utils.rs:117:52 [INFO] [stdout] | [INFO] [stdout] 117 | list_of_floors.push(Floor::new((x*LENGHT_DWELLER),x_units,(y*LENGHT_DWELLER))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - list_of_floors.push(Floor::new((x*LENGHT_DWELLER),x_units,(y*LENGHT_DWELLER))); [INFO] [stdout] 117 + list_of_floors.push(Floor::new(x*LENGHT_DWELLER,x_units,(y*LENGHT_DWELLER))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/utils/utils.rs:117:79 [INFO] [stdout] | [INFO] [stdout] 117 | list_of_floors.push(Floor::new((x*LENGHT_DWELLER),x_units,(y*LENGHT_DWELLER))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - list_of_floors.push(Floor::new((x*LENGHT_DWELLER),x_units,(y*LENGHT_DWELLER))); [INFO] [stdout] 117 + list_of_floors.push(Floor::new((x*LENGHT_DWELLER),x_units,y*LENGHT_DWELLER)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::my_consts::LENGHT_UNIT` [INFO] [stdout] --> src/building.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::my_consts::LENGHT_UNIT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::rect::Point` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sdl2::rect::Point; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/utils/utils.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/utils/utils.rs:117:52 [INFO] [stdout] | [INFO] [stdout] 117 | list_of_floors.push(Floor::new((x*LENGHT_DWELLER),x_units,(y*LENGHT_DWELLER))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - list_of_floors.push(Floor::new((x*LENGHT_DWELLER),x_units,(y*LENGHT_DWELLER))); [INFO] [stdout] 117 + list_of_floors.push(Floor::new(x*LENGHT_DWELLER,x_units,(y*LENGHT_DWELLER))); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/utils/utils.rs:117:79 [INFO] [stdout] | [INFO] [stdout] 117 | list_of_floors.push(Floor::new((x*LENGHT_DWELLER),x_units,(y*LENGHT_DWELLER))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 117 - list_of_floors.push(Floor::new((x*LENGHT_DWELLER),x_units,(y*LENGHT_DWELLER))); [INFO] [stdout] 117 + list_of_floors.push(Floor::new((x*LENGHT_DWELLER),x_units,y*LENGHT_DWELLER)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::my_consts::LENGHT_UNIT` [INFO] [stdout] --> src/building.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::my_consts::LENGHT_UNIT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/utils/utils.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | for row in 0..=n_rows{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/utils/utils.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | for col in 0..=n_cols{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_rows` [INFO] [stdout] --> src/utils/utils.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let n_rows = self.height/self.grid_spacing as u32; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_rows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_cols` [INFO] [stdout] --> src/utils/utils.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let n_cols = self.width/self.grid_spacing as u32; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_cols` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count_line` [INFO] [stdout] --> src/utils/utils.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | let mut count_line = 0; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_count_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_line` [INFO] [stdout] --> src/utils/utils.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let mut current_line = -1; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `canvas` [INFO] [stdout] --> src/utils/utils.rs:77:28 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn load_map(&self, canvas: &mut sdl2::render::Canvas,list_of_dweller: &mut Vec,list_of_rooms: &mut Vec, li... [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_canvas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils/utils.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let mut count_line = 0; [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: variable does not need to be mutable [INFO] [stdout] --> src/utils/utils.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let mut current_line = -1; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v_x` [INFO] [stdout] --> src/dweller.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn new(x:i32,y:i32,v_x:f64,v_y:f64,col: Color)->Self{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_v_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v_y` [INFO] [stdout] --> src/dweller.rs:27:36 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn new(x:i32,y:i32,v_x:f64,v_y:f64,col: Color)->Self{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_v_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/building.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut g = self.color.g.saturating_sub(50); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_on_floor` [INFO] [stdout] --> src/main.rs:53:43 [INFO] [stdout] | [INFO] [stdout] 53 | fn move_dweller_up(dweller: &mut Dweller, is_on_floor: bool, keycode: Option){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_on_floor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `row` [INFO] [stdout] --> src/utils/utils.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | for row in 0..=n_rows{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_row` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let mut my_grid = MapGrid::new(LENGHT_DWELLER as usize, map_width, map_height); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> src/utils/utils.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | for col in 0..=n_cols{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_dweller_in` is never used [INFO] [stdout] --> src/main.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn is_dweller_in(dweller: &Dweller,ghost_dweller: &Dweller,room: &mut Room,canvas: &mut Canvas){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save_map` is never used [INFO] [stdout] --> src/utils/utils.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl MapGrid{ [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn save_map(&self){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Button` is never constructed [INFO] [stdout] --> src/utils/utils.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 126 | pub struct Button { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `render`, and `handle_event` are never used [INFO] [stdout] --> src/utils/utils.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 135 | impl Button { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 136 | pub fn new(x: i32, y: i32, width: u32, height: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn render(&self, canvas: &mut sdl2::render::Canvas) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn handle_event(&mut self, event: &Event) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_hovered` is never read [INFO] [stdout] --> src/dweller.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Dweller{ [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | pub is_hovered: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x`, `x_lenght`, `y`, `y_lenght`, and `dweller_in` are never read [INFO] [stdout] --> src/building.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Room{ [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 12 | pub room: Rect, [INFO] [stdout] 13 | pub x:i32, [INFO] [stdout] | ^ [INFO] [stdout] 14 | pub x_lenght: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | pub y: i32, [INFO] [stdout] | ^ [INFO] [stdout] 16 | pub y_lenght: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | pub color: Color, [INFO] [stdout] 18 | pub dweller_in: bool [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `dweller_entered` and `dweller_left` are never used [INFO] [stdout] --> src/building.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Room{ [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn dweller_entered(&mut self, canvas: &mut Canvas){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn dweller_left(&mut self, canvas: &mut Canvas){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `h` is never read [INFO] [stdout] --> src/building.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct Floor{ [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 60 | pub h: i32 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_rows` [INFO] [stdout] --> src/utils/utils.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let n_rows = self.height/self.grid_spacing as u32; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_rows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_cols` [INFO] [stdout] --> src/utils/utils.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let n_cols = self.width/self.grid_spacing as u32; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_cols` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count_line` [INFO] [stdout] --> src/utils/utils.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | let mut count_line = 0; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_count_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_line` [INFO] [stdout] --> src/utils/utils.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let mut current_line = -1; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `canvas` [INFO] [stdout] --> src/utils/utils.rs:77:28 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn load_map(&self, canvas: &mut sdl2::render::Canvas,list_of_dweller: &mut Vec,list_of_rooms: &mut Vec, li... [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_canvas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/utils/utils.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let mut count_line = 0; [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: variable does not need to be mutable [INFO] [stdout] --> src/utils/utils.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let mut current_line = -1; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v_x` [INFO] [stdout] --> src/dweller.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn new(x:i32,y:i32,v_x:f64,v_y:f64,col: Color)->Self{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_v_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v_y` [INFO] [stdout] --> src/dweller.rs:27:36 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn new(x:i32,y:i32,v_x:f64,v_y:f64,col: Color)->Self{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_v_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/building.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut g = self.color.g.saturating_sub(50); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_on_floor` [INFO] [stdout] --> src/main.rs:53:43 [INFO] [stdout] | [INFO] [stdout] 53 | fn move_dweller_up(dweller: &mut Dweller, is_on_floor: bool, keycode: Option){ [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_on_floor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let mut my_grid = MapGrid::new(LENGHT_DWELLER as usize, map_width, map_height); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_dweller_in` is never used [INFO] [stdout] --> src/main.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn is_dweller_in(dweller: &Dweller,ghost_dweller: &Dweller,room: &mut Room,canvas: &mut Canvas){ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save_map` is never used [INFO] [stdout] --> src/utils/utils.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl MapGrid{ [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn save_map(&self){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Button` is never constructed [INFO] [stdout] --> src/utils/utils.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 126 | pub struct Button { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `render`, and `handle_event` are never used [INFO] [stdout] --> src/utils/utils.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 135 | impl Button { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 136 | pub fn new(x: i32, y: i32, width: u32, height: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn render(&self, canvas: &mut sdl2::render::Canvas) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn handle_event(&mut self, event: &Event) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_hovered` is never read [INFO] [stdout] --> src/dweller.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Dweller{ [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | pub is_hovered: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x`, `x_lenght`, `y`, `y_lenght`, and `dweller_in` are never read [INFO] [stdout] --> src/building.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Room{ [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 12 | pub room: Rect, [INFO] [stdout] 13 | pub x:i32, [INFO] [stdout] | ^ [INFO] [stdout] 14 | pub x_lenght: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | pub y: i32, [INFO] [stdout] | ^ [INFO] [stdout] 16 | pub y_lenght: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | pub color: Color, [INFO] [stdout] 18 | pub dweller_in: bool [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `dweller_entered` and `dweller_left` are never used [INFO] [stdout] --> src/building.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Room{ [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn dweller_entered(&mut self, canvas: &mut Canvas){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn dweller_left(&mut self, canvas: &mut Canvas){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `h` is never read [INFO] [stdout] --> src/building.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct Floor{ [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 60 | pub h: i32 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.40s [INFO] running `Command { std: "docker" "inspect" "c7d3663efa8a7ccd17e2f7dd640701ea0e3174d7efb245201371fa297826152c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c7d3663efa8a7ccd17e2f7dd640701ea0e3174d7efb245201371fa297826152c", kill_on_drop: false }` [INFO] [stdout] c7d3663efa8a7ccd17e2f7dd640701ea0e3174d7efb245201371fa297826152c