[INFO] cloning repository https://github.com/aaronleopold/Rust-Text-Adventure-Game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aaronleopold/Rust-Text-Adventure-Game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faaronleopold%2FRust-Text-Adventure-Game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faaronleopold%2FRust-Text-Adventure-Game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f644c5cc571d81da6dad34253fb17709e00a3859 [INFO] checking aaronleopold/Rust-Text-Adventure-Game against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faaronleopold%2FRust-Text-Adventure-Game" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/aaronleopold/Rust-Text-Adventure-Game on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/aaronleopold/Rust-Text-Adventure-Game [INFO] finished tweaking git repo https://github.com/aaronleopold/Rust-Text-Adventure-Game [INFO] tweaked toml for git repo https://github.com/aaronleopold/Rust-Text-Adventure-Game written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/aaronleopold/Rust-Text-Adventure-Game already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 50dbeb5d8102dcae8f8e2cd3ff0aa43b136b5726ebd8a6b346894796e9ded2af [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "50dbeb5d8102dcae8f8e2cd3ff0aa43b136b5726ebd8a6b346894796e9ded2af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "50dbeb5d8102dcae8f8e2cd3ff0aa43b136b5726ebd8a6b346894796e9ded2af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50dbeb5d8102dcae8f8e2cd3ff0aa43b136b5726ebd8a6b346894796e9ded2af", kill_on_drop: false }` [INFO] [stdout] 50dbeb5d8102dcae8f8e2cd3ff0aa43b136b5726ebd8a6b346894796e9ded2af [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d8e9a5ab832f8f251686052c57aa043a9a366b8dec5fab5e3bf249559ac2cbbf [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d8e9a5ab832f8f251686052c57aa043a9a366b8dec5fab5e3bf249559ac2cbbf", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.51 [INFO] [stderr] Compiling ncurses v5.99.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking console_rpg v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::game_window::*` [INFO] [stdout] --> src/game_window/header.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::game_window::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `textwrap::fill` [INFO] [stdout] --> src/game_window/header.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use textwrap::fill; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `textwrap::fill` [INFO] [stdout] --> src/game_window/main_window.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use textwrap::fill; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `textwrap::fill` [INFO] [stdout] --> src/game_window/game.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use textwrap::fill; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/game_window/game.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::boxed::Box` [INFO] [stdout] --> src/interactables/room.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `textwrap::fill` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use textwrap::fill; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader` [INFO] [stdout] --> src/main.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use std::io::{BufRead, BufReader}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `entities::*` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use entities::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `interactables::*` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use interactables::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game_window::*` [INFO] [stdout] --> src/game_window/header.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::game_window::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `textwrap::fill` [INFO] [stdout] --> src/game_window/header.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use textwrap::fill; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `textwrap::fill` [INFO] [stdout] --> src/game_window/main_window.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use textwrap::fill; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `textwrap::fill` [INFO] [stdout] --> src/game_window/game.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use textwrap::fill; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/game_window/game.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::boxed::Box` [INFO] [stdout] --> src/interactables/room.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::boxed::Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `textwrap::fill` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use textwrap::fill; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader` [INFO] [stdout] --> src/main.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use std::io::{BufRead, BufReader}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `entities::*` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use entities::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `interactables::*` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use interactables::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mhealth` [INFO] [stdout] --> src/entities/enemy.rs:12:37 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(name: String, level: u8, mhealth: i8, chealth: i8) -> Self [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mhealth` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chealth` [INFO] [stdout] --> src/entities/enemy.rs:12:50 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(name: String, level: u8, mhealth: i8, chealth: i8) -> Self [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chealth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `playing` [INFO] [stdout] --> src/game_window/game.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | let mut playing: bool = true; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_playing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/game_window/game.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | let mut x = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/game_window/game.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | let mut y = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/game_window/game.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | let mut input: String = String::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_window/game.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 101 | for i in 0..npc_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_window/game.rs:124:21 [INFO] [stdout] | [INFO] [stdout] 124 | for i in 0..item_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_window/game.rs:141:21 [INFO] [stdout] | [INFO] [stdout] 141 | for i in 0..weapon_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weapon_name` [INFO] [stdout] --> src/game_window/game.rs:142:25 [INFO] [stdout] | [INFO] [stdout] 142 | let weapon_name: String = String::from(room_info[it + 1]); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_weapon_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weapon_damage` [INFO] [stdout] --> src/game_window/game.rs:143:25 [INFO] [stdout] | [INFO] [stdout] 143 | let weapon_damage: u8 = room_info[it + 2].parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_weapon_damage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_window/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | for i in 0..enemy_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemy_name` [INFO] [stdout] --> src/game_window/game.rs:157:25 [INFO] [stdout] | [INFO] [stdout] 157 | let enemy_name: String = String::from(room_info[it + 1]); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enemy_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemy_level` [INFO] [stdout] --> src/game_window/game.rs:158:25 [INFO] [stdout] | [INFO] [stdout] 158 | let enemy_level: u8 = room_info[it + 2].parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enemy_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemy_mhealth` [INFO] [stdout] --> src/game_window/game.rs:159:25 [INFO] [stdout] | [INFO] [stdout] 159 | let enemy_mhealth: i8 = room_info[it + 3].parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enemy_mhealth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemy_chealth` [INFO] [stdout] --> src/game_window/game.rs:160:25 [INFO] [stdout] | [INFO] [stdout] 160 | let enemy_chealth: i8 = room_info[it + 4].parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enemy_chealth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `it` is never read [INFO] [stdout] --> src/game_window/game.rs:165:13 [INFO] [stdout] | [INFO] [stdout] 165 | it += 1; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `message` is never read [INFO] [stdout] --> src/game_window/game.rs:247:21 [INFO] [stdout] | [INFO] [stdout] 247 | let mut message = String::new(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mhealth` [INFO] [stdout] --> src/entities/enemy.rs:12:37 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(name: String, level: u8, mhealth: i8, chealth: i8) -> Self [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mhealth` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `message` is never read [INFO] [stdout] --> src/game_window/game.rs:274:21 [INFO] [stdout] | [INFO] [stdout] 274 | let mut message = String::new(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/interactables/room.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | for i in 0..(room.get_enemies().len()) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chealth` [INFO] [stdout] --> src/entities/enemy.rs:12:50 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(name: String, level: u8, mhealth: i8, chealth: i8) -> Self [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chealth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `playing` [INFO] [stdout] --> src/game_window/game.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | let mut playing: bool = true; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_playing` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/game_window/game.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | let mut x = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/game_window/game.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | let mut y = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/game_window/game.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | let mut input: String = String::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_window/game.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 101 | for i in 0..npc_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_window/game.rs:124:21 [INFO] [stdout] | [INFO] [stdout] 124 | for i in 0..item_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_window/game.rs:141:21 [INFO] [stdout] | [INFO] [stdout] 141 | for i in 0..weapon_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weapon_name` [INFO] [stdout] --> src/game_window/game.rs:142:25 [INFO] [stdout] | [INFO] [stdout] 142 | let weapon_name: String = String::from(room_info[it + 1]); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_weapon_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weapon_damage` [INFO] [stdout] --> src/game_window/game.rs:143:25 [INFO] [stdout] | [INFO] [stdout] 143 | let weapon_damage: u8 = room_info[it + 2].parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_weapon_damage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/game_window/game.rs:156:21 [INFO] [stdout] | [INFO] [stdout] 156 | for i in 0..enemy_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemy_name` [INFO] [stdout] --> src/game_window/game.rs:157:25 [INFO] [stdout] | [INFO] [stdout] 157 | let enemy_name: String = String::from(room_info[it + 1]); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enemy_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemy_level` [INFO] [stdout] --> src/game_window/game.rs:158:25 [INFO] [stdout] | [INFO] [stdout] 158 | let enemy_level: u8 = room_info[it + 2].parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enemy_level` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemy_mhealth` [INFO] [stdout] --> src/game_window/game.rs:159:25 [INFO] [stdout] | [INFO] [stdout] 159 | let enemy_mhealth: i8 = room_info[it + 3].parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enemy_mhealth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enemy_chealth` [INFO] [stdout] --> src/game_window/game.rs:160:25 [INFO] [stdout] | [INFO] [stdout] 160 | let enemy_chealth: i8 = room_info[it + 4].parse().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enemy_chealth` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `it` is never read [INFO] [stdout] --> src/game_window/game.rs:165:13 [INFO] [stdout] | [INFO] [stdout] 165 | it += 1; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `message` is never read [INFO] [stdout] --> src/game_window/game.rs:247:21 [INFO] [stdout] | [INFO] [stdout] 247 | let mut message = String::new(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `message` is never read [INFO] [stdout] --> src/game_window/game.rs:274:21 [INFO] [stdout] | [INFO] [stdout] 274 | let mut message = String::new(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/interactables/room.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | for i in 0..(room.get_enemies().len()) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_window/main_window.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let mut main_window = MainWindow { [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/game_window/main_window.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let mut main_window = MainWindow { [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/game_window/game.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut playing: bool = true; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_window/game.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let mut x = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_window/game.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let mut y = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_window/game.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let mut input: String = String::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_window/game.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut playing: bool = true; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_window/game.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let mut x = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_window/game.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | let mut y = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_window/game.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | let mut input: String = String::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_window/game.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | let mut split = line.split(":"); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_window/game.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | let mut room_weapons: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_window/game.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | let mut room_enemies: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_window/game.rs:168:17 [INFO] [stdout] | [INFO] [stdout] 168 | let mut new_room = Room::new( [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_window/game.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | let mut split = line.split(":"); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_window/game.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | let mut room_weapons: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_window/game.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | let mut room_enemies: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game_window/game.rs:168:17 [INFO] [stdout] | [INFO] [stdout] 168 | let mut new_room = Room::new( [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interactables/room.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | let mut ret = Item::clone(&self.items[index]); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interactables/room.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | let mut ret = Weapon::clone(&self.weapons[index]); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interactables/room.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | let mut graph = RoomGraph { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interactables/inventory.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut note: Item = Item::new(String::from("strange note"), [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `alive` [INFO] [stdout] --> src/entities/player.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | alive: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interactables/room.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | let mut ret = Item::clone(&self.items[index]); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `is_fighting` [INFO] [stdout] --> src/entities/player.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | is_fighting: bool [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `take_damage` [INFO] [stdout] --> src/entities/player.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn take_damage(&mut self, amount: i16) -> bool [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_alive` [INFO] [stdout] --> src/entities/player.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn is_alive(&self) -> bool { self.alive } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_fighting` [INFO] [stdout] --> src/entities/player.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn is_fighting(&self) -> bool { self.is_fighting } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_fighting` [INFO] [stdout] --> src/entities/player.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn set_fighting(&mut self, fighting: bool) { self.is_fighting = fighting } [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `heal` [INFO] [stdout] --> src/entities/player.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn heal(&mut self, amount: i16) { self.curr_health += amount; } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interactables/room.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | let mut ret = Weapon::clone(&self.weapons[index]); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/entities/enemy.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `level` [INFO] [stdout] --> src/entities/enemy.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | level: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interactables/room.rs:220:13 [INFO] [stdout] | [INFO] [stdout] 220 | let mut graph = RoomGraph { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `max_health` [INFO] [stdout] --> src/entities/enemy.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | max_health: i8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `curr_health` [INFO] [stdout] --> src/entities/enemy.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | curr_health: i8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `alive` [INFO] [stdout] --> src/entities/enemy.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | alive: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/entities/enemy.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(name: String, level: u8, mhealth: i8, chealth: i8) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `take_damage` [INFO] [stdout] --> src/entities/enemy.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn take_damage(&mut self, amount: i8) -> bool [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `heal` [INFO] [stdout] --> src/entities/enemy.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | fn heal(&mut self, amount: i8) { self.curr_health += amount; } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bar_max_y` [INFO] [stdout] --> src/game_window/header.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | bar_max_y: i32 [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `max_y` [INFO] [stdout] --> src/game_window/main_window.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | max_y: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_max_y` [INFO] [stdout] --> src/game_window/main_window.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn get_max_y(&self) -> i32 { self.max_y } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `interpret_input_fight` [INFO] [stdout] --> src/game_window/game.rs:490:12 [INFO] [stdout] | [INFO] [stdout] 490 | pub fn interpret_input_fight(&mut self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `combat_state` [INFO] [stdout] --> src/game_window/game.rs:495:12 [INFO] [stdout] | [INFO] [stdout] 495 | pub fn combat_state(&mut self) -> bool [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `size` [INFO] [stdout] --> src/interactables/room.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | size: u32 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `npc_is_nice` [INFO] [stdout] --> src/interactables/room.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn npc_is_nice(&self, name: String) -> bool [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_graph` [INFO] [stdout] --> src/interactables/room.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn get_graph(&self) -> &HashMap { &self.graph } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_status` [INFO] [stdout] --> src/interactables/item.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn set_status(&mut self, new_status: bool) { self.used = new_status} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_weapons` [INFO] [stdout] --> src/interactables/inventory.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn get_weapons(&self) -> &Vec { &self.weapons } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/interactables/weapon.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(name: String, damage: u8) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `init_curses` [INFO] [stdout] --> src/main.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn init_curses() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/interactables/inventory.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut note: Item = Item::new(String::from("strange note"), [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `alive` [INFO] [stdout] --> src/entities/player.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | alive: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `is_fighting` [INFO] [stdout] --> src/entities/player.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | is_fighting: bool [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `take_damage` [INFO] [stdout] --> src/entities/player.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn take_damage(&mut self, amount: i16) -> bool [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_alive` [INFO] [stdout] --> src/entities/player.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn is_alive(&self) -> bool { self.alive } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_fighting` [INFO] [stdout] --> src/entities/player.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn is_fighting(&self) -> bool { self.is_fighting } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_fighting` [INFO] [stdout] --> src/entities/player.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn set_fighting(&mut self, fighting: bool) { self.is_fighting = fighting } [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `heal` [INFO] [stdout] --> src/entities/player.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn heal(&mut self, amount: i16) { self.curr_health += amount; } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/entities/enemy.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `level` [INFO] [stdout] --> src/entities/enemy.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | level: u8, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `max_health` [INFO] [stdout] --> src/entities/enemy.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | max_health: i8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 71 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `curr_health` [INFO] [stdout] --> src/entities/enemy.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | curr_health: i8, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `alive` [INFO] [stdout] --> src/entities/enemy.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | alive: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/entities/enemy.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | fn new(name: String, level: u8, mhealth: i8, chealth: i8) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `take_damage` [INFO] [stdout] --> src/entities/enemy.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | fn take_damage(&mut self, amount: i8) -> bool [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `heal` [INFO] [stdout] --> src/entities/enemy.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | fn heal(&mut self, amount: i8) { self.curr_health += amount; } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bar_max_y` [INFO] [stdout] --> src/game_window/header.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | bar_max_y: i32 [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `max_y` [INFO] [stdout] --> src/game_window/main_window.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | max_y: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_max_y` [INFO] [stdout] --> src/game_window/main_window.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn get_max_y(&self) -> i32 { self.max_y } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `interpret_input_fight` [INFO] [stdout] --> src/game_window/game.rs:490:12 [INFO] [stdout] | [INFO] [stdout] 490 | pub fn interpret_input_fight(&mut self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `combat_state` [INFO] [stdout] --> src/game_window/game.rs:495:12 [INFO] [stdout] | [INFO] [stdout] 495 | pub fn combat_state(&mut self) -> bool [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `size` [INFO] [stdout] --> src/interactables/room.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | size: u32 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `npc_is_nice` [INFO] [stdout] --> src/interactables/room.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn npc_is_nice(&self, name: String) -> bool [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_graph` [INFO] [stdout] --> src/interactables/room.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn get_graph(&self) -> &HashMap { &self.graph } [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_status` [INFO] [stdout] --> src/interactables/item.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn set_status(&mut self, new_status: bool) { self.used = new_status} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_weapons` [INFO] [stdout] --> src/interactables/inventory.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn get_weapons(&self) -> &Vec { &self.weapons } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/interactables/weapon.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn new(name: String, damage: u8) -> Self [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `init_curses` [INFO] [stdout] --> src/main.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn init_curses() [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 71 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.01s [INFO] running `Command { std: "docker" "inspect" "d8e9a5ab832f8f251686052c57aa043a9a366b8dec5fab5e3bf249559ac2cbbf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8e9a5ab832f8f251686052c57aa043a9a366b8dec5fab5e3bf249559ac2cbbf", kill_on_drop: false }` [INFO] [stdout] d8e9a5ab832f8f251686052c57aa043a9a366b8dec5fab5e3bf249559ac2cbbf