[INFO] cloning repository https://github.com/loohhoo/rust-language-rpg [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/loohhoo/rust-language-rpg" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Floohhoo%2Frust-language-rpg", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Floohhoo%2Frust-language-rpg'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4c06b231037deb8b0f915deb0c1eaea840aecd66 [INFO] checking loohhoo/rust-language-rpg against try#723ab942d877517caf445dafde0416803ef56501 for pr-143857 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Floohhoo%2Frust-language-rpg" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/loohhoo/rust-language-rpg [INFO] finished tweaking git repo https://github.com/loohhoo/rust-language-rpg [INFO] tweaked toml for git repo https://github.com/loohhoo/rust-language-rpg written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/loohhoo/rust-language-rpg on toolchain 723ab942d877517caf445dafde0416803ef56501 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+723ab942d877517caf445dafde0416803ef56501" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/loohhoo/rust-language-rpg 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" "+723ab942d877517caf445dafde0416803ef56501" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded log v0.4.7 [INFO] [stderr] Downloaded quick-xml v0.15.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+723ab942d877517caf445dafde0416803ef56501" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2eb346cd04600fddd6f5e33dfc88a75d6f39d38947d838d0b0e9e3635c399e70 [INFO] running `Command { std: "docker" "start" "-a" "2eb346cd04600fddd6f5e33dfc88a75d6f39d38947d838d0b0e9e3635c399e70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2eb346cd04600fddd6f5e33dfc88a75d6f39d38947d838d0b0e9e3635c399e70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2eb346cd04600fddd6f5e33dfc88a75d6f39d38947d838d0b0e9e3635c399e70", kill_on_drop: false }` [INFO] [stdout] 2eb346cd04600fddd6f5e33dfc88a75d6f39d38947d838d0b0e9e3635c399e70 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+723ab942d877517caf445dafde0416803ef56501" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9fcf67c94730461665977b0ba9936bb8b6babb73eeef7726fa3553f6a9087048 [INFO] running `Command { std: "docker" "start" "-a" "9fcf67c94730461665977b0ba9936bb8b6babb73eeef7726fa3553f6a9087048", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.60 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling syn v0.15.42 [INFO] [stderr] Compiling cc v1.0.38 [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Checking rustc-demangle v0.1.15 [INFO] [stderr] Compiling encoding_rs v0.8.17 [INFO] [stderr] Compiling log v0.4.7 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Checking numtoa v0.1.0 [INFO] [stderr] Compiling backtrace-sys v0.1.31 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking term_size v0.3.1 [INFO] [stderr] Checking termion v1.5.3 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking backtrace v0.3.33 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Compiling derive_more v0.14.1 [INFO] [stderr] Checking failure v0.1.5 [INFO] [stderr] Checking quick-xml v0.15.0 [INFO] [stderr] Checking languagerpg v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `fill` and `termwidth` [INFO] [stdout] --> src/langrpg.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use textwrap::{Wrapper, termwidth, fill}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `termion::raw::IntoRawMode` [INFO] [stdout] --> src/langrpg.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use termion::raw::IntoRawMode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/langrpg.rs:501:20 [INFO] [stdout] | [INFO] [stdout] 501 | if (player.x_pos == 5 && player.y_pos == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 501 - if (player.x_pos == 5 && player.y_pos == 0) { [INFO] [stdout] 501 + if player.x_pos == 5 && player.y_pos == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/langrpg.rs:509:25 [INFO] [stdout] | [INFO] [stdout] 509 | else if (player.x_pos == 8 && player.y_pos == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 509 - else if (player.x_pos == 8 && player.y_pos == 0) { [INFO] [stdout] 509 + else if player.x_pos == 8 && player.y_pos == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/langrpg.rs:530:20 [INFO] [stdout] | [INFO] [stdout] 530 | if (player.x_pos == 9 && player.y_pos == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 530 - if (player.x_pos == 9 && player.y_pos == 0) { [INFO] [stdout] 530 + if player.x_pos == 9 && player.y_pos == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/langrpg.rs:539:20 [INFO] [stdout] | [INFO] [stdout] 539 | if (player.x_pos == 0 && player.y_pos == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 539 - if (player.x_pos == 0 && player.y_pos == 1) { [INFO] [stdout] 539 + if player.x_pos == 0 && player.y_pos == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::langrpg::Useable` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::langrpg::Useable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `termion::raw::IntoRawMode` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use termion::raw::IntoRawMode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | if(input[0] == "exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 41 - if(input[0] == "exit".to_string()) { [INFO] [stdout] 41 + if input[0] == "exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | else if (input[0] == "open".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 46 - else if (input[0] == "open".to_string()) { [INFO] [stdout] 46 + else if input[0] == "open".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fill` and `termwidth` [INFO] [stdout] --> src/langrpg.rs:8:25 [INFO] [stdout] | [INFO] [stdout] 8 | use textwrap::{Wrapper, termwidth, fill}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `termion::raw::IntoRawMode` [INFO] [stdout] --> src/langrpg.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use termion::raw::IntoRawMode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/langrpg.rs:501:20 [INFO] [stdout] | [INFO] [stdout] 501 | if (player.x_pos == 5 && player.y_pos == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 501 - if (player.x_pos == 5 && player.y_pos == 0) { [INFO] [stdout] 501 + if player.x_pos == 5 && player.y_pos == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/langrpg.rs:509:25 [INFO] [stdout] | [INFO] [stdout] 509 | else if (player.x_pos == 8 && player.y_pos == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 509 - else if (player.x_pos == 8 && player.y_pos == 0) { [INFO] [stdout] 509 + else if player.x_pos == 8 && player.y_pos == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/langrpg.rs:530:20 [INFO] [stdout] | [INFO] [stdout] 530 | if (player.x_pos == 9 && player.y_pos == 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 530 - if (player.x_pos == 9 && player.y_pos == 0) { [INFO] [stdout] 530 + if player.x_pos == 9 && player.y_pos == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/langrpg.rs:539:20 [INFO] [stdout] | [INFO] [stdout] 539 | if (player.x_pos == 0 && player.y_pos == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 539 - if (player.x_pos == 0 && player.y_pos == 1) { [INFO] [stdout] 539 + if player.x_pos == 0 && player.y_pos == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::langrpg::Useable` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::langrpg::Useable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `termion::raw::IntoRawMode` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use termion::raw::IntoRawMode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | if(input[0] == "exit".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 41 - if(input[0] == "exit".to_string()) { [INFO] [stdout] 41 + if input[0] == "exit".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | else if (input[0] == "open".to_string()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 46 - else if (input[0] == "open".to_string()) { [INFO] [stdout] 46 + else if input[0] == "open".to_string() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/langrpg.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `termion::input::TermRead` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use termion::input::TermRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `termion::input::TermRead` [INFO] [stdout] --> src/langrpg.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use termion::input::TermRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/langrpg.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `termion::input::TermRead` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use termion::input::TermRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `termion::input::TermRead` [INFO] [stdout] --> src/langrpg.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use termion::input::TermRead; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/langrpg.rs:319:17 [INFO] [stdout] | [INFO] [stdout] 319 | let mut count = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/langrpg.rs:326:37 [INFO] [stdout] | [INFO] [stdout] 326 | Ok(Event::Start(ref e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/langrpg.rs:319:13 [INFO] [stdout] | [INFO] [stdout] 319 | let mut count = 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: value assigned to `reading` is never read [INFO] [stdout] --> src/langrpg.rs:368:17 [INFO] [stdout] | [INFO] [stdout] 368 | reading = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/langrpg.rs:319:17 [INFO] [stdout] | [INFO] [stdout] 319 | let mut count = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/langrpg.rs:326:37 [INFO] [stdout] | [INFO] [stdout] 326 | Ok(Event::Start(ref e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/langrpg.rs:319:13 [INFO] [stdout] | [INFO] [stdout] 319 | let mut count = 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: value assigned to `reading` is never read [INFO] [stdout] --> src/langrpg.rs:368:17 [INFO] [stdout] | [INFO] [stdout] 368 | reading = false; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `empty` [INFO] [stdout] --> src/langrpg.rs:475:13 [INFO] [stdout] | [INFO] [stdout] 475 | let empty: &str = ""; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_empty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `empty` [INFO] [stdout] --> src/langrpg.rs:475:13 [INFO] [stdout] | [INFO] [stdout] 475 | let empty: &str = ""; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_empty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/langrpg.rs:515:25 [INFO] [stdout] | [INFO] [stdout] 515 | let mut new_book = Book::new_from_name(&"Hiragana".to_string()); [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/langrpg.rs:515:25 [INFO] [stdout] | [INFO] [stdout] 515 | let mut new_book = Book::new_from_name(&"Hiragana".to_string()); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_dialogs` is never used [INFO] [stdout] --> src/main.rs:178:4 [INFO] [stdout] | [INFO] [stdout] 178 | fn get_dialogs(world: &langrpg::World, map_name: &String, NPC_name: &String) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `items`, `decks`, `defense`, and `attack` are never read [INFO] [stdout] --> src/langrpg.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 14 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | items: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | pub books: Vec, [INFO] [stdout] 21 | decks: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | defense: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 26 | attack: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `load_data`, `take_damage`, `heal`, `use_item`, and `open_deck` are never used [INFO] [stdout] --> src/langrpg.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Player { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn load_data() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn take_damage(&mut self, amount: u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn heal(&mut self, amount: u32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn use_item(&mut self, name: &String) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn open_deck(&mut self, name: &String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `quantity`, `capacity`, `effects`, `desc`, and `kind` are never read [INFO] [stdout] --> src/langrpg.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 169 | struct Item { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 170 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 171 | quantity: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 172 | capacity: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 173 | effects: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 174 | desc: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 175 | kind: String [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `create` are never used [INFO] [stdout] --> src/langrpg.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 178 | impl Item { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 179 | pub fn new() -> Item { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | pub fn create(&mut self, name: String, qty: u32, cap: u32, desc: String, kind: String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Useable` is never used [INFO] [stdout] --> src/langrpg.rs:199:11 [INFO] [stdout] | [INFO] [stdout] 199 | pub trait Useable { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Findable` is never used [INFO] [stdout] --> src/langrpg.rs:203:11 [INFO] [stdout] | [INFO] [stdout] 203 | pub trait Findable { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `desc`, and `duration` are never read [INFO] [stdout] --> src/langrpg.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 229 | struct Effect { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 230 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 231 | desc: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 232 | duration: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hp` and `max_hp` are never read [INFO] [stdout] --> src/langrpg.rs:237:5 [INFO] [stdout] | [INFO] [stdout] 235 | pub struct Enemy { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 236 | name: String, [INFO] [stdout] 237 | hp: u32, [INFO] [stdout] | ^^ [INFO] [stdout] 238 | max_hp: u32 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x_pos`, `y_pos`, and `flags` are never read [INFO] [stdout] --> src/langrpg.rs:260:5 [INFO] [stdout] | [INFO] [stdout] 258 | pub struct NPC { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 259 | pub name: String, [INFO] [stdout] 260 | x_pos: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 261 | y_pos: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 262 | pub dialogs: Vec, [INFO] [stdout] 263 | flags: HashMap [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlainItem` is never constructed [INFO] [stdout] --> src/langrpg.rs:301:8 [INFO] [stdout] | [INFO] [stdout] 301 | struct PlainItem { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `desc` and `page_count` are never read [INFO] [stdout] --> src/langrpg.rs:307:5 [INFO] [stdout] | [INFO] [stdout] 305 | pub struct Book { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 306 | name: String, [INFO] [stdout] 307 | desc: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 308 | pages: Vec, [INFO] [stdout] 309 | page_count: usize [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `desc`, and `cards` are never read [INFO] [stdout] --> src/langrpg.rs:396:5 [INFO] [stdout] | [INFO] [stdout] 395 | pub struct Deck { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 396 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 397 | desc: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 398 | cards: Vec [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `page_num` is never read [INFO] [stdout] --> src/langrpg.rs:403:5 [INFO] [stdout] | [INFO] [stdout] 401 | pub struct Page { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 402 | contents: String, [INFO] [stdout] 403 | page_num: usize [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term`, `definition`, and `part_of_speech` are never read [INFO] [stdout] --> src/langrpg.rs:416:5 [INFO] [stdout] | [INFO] [stdout] 415 | pub struct Card { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 416 | term: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 417 | definition: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 418 | part_of_speech: String [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width`, `height`, `name`, and `events` are never read [INFO] [stdout] --> src/langrpg.rs:462:5 [INFO] [stdout] | [INFO] [stdout] 461 | pub struct Map { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 462 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 463 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 464 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 465 | pub tiles: [[u32; 10]; 10], [INFO] [stdout] 466 | pub events: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `PLAYER` should have a snake case name [INFO] [stdout] --> src/main.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let mut PLAYER = langrpg::Player::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `player` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_dialogs` is never used [INFO] [stdout] --> src/main.rs:178:4 [INFO] [stdout] | [INFO] [stdout] 178 | fn get_dialogs(world: &langrpg::World, map_name: &String, NPC_name: &String) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `items`, `decks`, `defense`, and `attack` are never read [INFO] [stdout] --> src/langrpg.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 14 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | items: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 20 | pub books: Vec, [INFO] [stdout] 21 | decks: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | defense: u32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 26 | attack: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `WORLD` should have a snake case name [INFO] [stdout] --> src/main.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let mut WORLD = langrpg::World::new(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NPC_name` should have a snake case name [INFO] [stdout] --> src/main.rs:178:59 [INFO] [stdout] | [INFO] [stdout] 178 | fn get_dialogs(world: &langrpg::World, map_name: &String, NPC_name: &String) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `npc_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mapName` should have a snake case name [INFO] [stdout] --> src/langrpg.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | for (mapName, mapStruct) in &mut world.maps { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `map_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mapStruct` should have a snake case name [INFO] [stdout] --> src/langrpg.rs:55:23 [INFO] [stdout] | [INFO] [stdout] 55 | for (mapName, mapStruct) in &mut world.maps { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `map_struct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/langrpg.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | if (self.hp - amount) < 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `load_data`, `take_damage`, `heal`, `use_item`, and `open_deck` are never used [INFO] [stdout] --> src/langrpg.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Player { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn load_data() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn take_damage(&mut self, amount: u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn heal(&mut self, amount: u32) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn use_item(&mut self, name: &String) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn open_deck(&mut self, name: &String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newItem` should have a snake case name [INFO] [stdout] --> src/langrpg.rs:224:13 [INFO] [stdout] | [INFO] [stdout] 224 | let newItem = Item::new(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `new_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `NPCs` should have a snake case name [INFO] [stdout] --> src/langrpg.rs:467:9 [INFO] [stdout] | [INFO] [stdout] 467 | pub NPCs: Vec, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `npcs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `quantity`, `capacity`, `effects`, `desc`, and `kind` are never read [INFO] [stdout] --> src/langrpg.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 169 | struct Item { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 170 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 171 | quantity: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 172 | capacity: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 173 | effects: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 174 | desc: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 175 | kind: String [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `create` are never used [INFO] [stdout] --> src/langrpg.rs:179:12 [INFO] [stdout] | [INFO] [stdout] 178 | impl Item { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 179 | pub fn new() -> Item { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | pub fn create(&mut self, name: String, qty: u32, cap: u32, desc: String, kind: String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Useable` is never used [INFO] [stdout] --> src/langrpg.rs:199:11 [INFO] [stdout] | [INFO] [stdout] 199 | pub trait Useable { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Findable` is never used [INFO] [stdout] --> src/langrpg.rs:203:11 [INFO] [stdout] | [INFO] [stdout] 203 | pub trait Findable { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `desc`, and `duration` are never read [INFO] [stdout] --> src/langrpg.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 229 | struct Effect { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 230 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 231 | desc: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 232 | duration: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hp` and `max_hp` are never read [INFO] [stdout] --> src/langrpg.rs:237:5 [INFO] [stdout] | [INFO] [stdout] 235 | pub struct Enemy { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 236 | name: String, [INFO] [stdout] 237 | hp: u32, [INFO] [stdout] | ^^ [INFO] [stdout] 238 | max_hp: u32 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x_pos`, `y_pos`, and `flags` are never read [INFO] [stdout] --> src/langrpg.rs:260:5 [INFO] [stdout] | [INFO] [stdout] 258 | pub struct NPC { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 259 | pub name: String, [INFO] [stdout] 260 | x_pos: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 261 | y_pos: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 262 | pub dialogs: Vec, [INFO] [stdout] 263 | flags: HashMap [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlainItem` is never constructed [INFO] [stdout] --> src/langrpg.rs:301:8 [INFO] [stdout] | [INFO] [stdout] 301 | struct PlainItem { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `desc` and `page_count` are never read [INFO] [stdout] --> src/langrpg.rs:307:5 [INFO] [stdout] | [INFO] [stdout] 305 | pub struct Book { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 306 | name: String, [INFO] [stdout] 307 | desc: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 308 | pages: Vec, [INFO] [stdout] 309 | page_count: usize [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `desc`, and `cards` are never read [INFO] [stdout] --> src/langrpg.rs:396:5 [INFO] [stdout] | [INFO] [stdout] 395 | pub struct Deck { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 396 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 397 | desc: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 398 | cards: Vec [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `page_num` is never read [INFO] [stdout] --> src/langrpg.rs:403:5 [INFO] [stdout] | [INFO] [stdout] 401 | pub struct Page { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 402 | contents: String, [INFO] [stdout] 403 | page_num: usize [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `term`, `definition`, and `part_of_speech` are never read [INFO] [stdout] --> src/langrpg.rs:416:5 [INFO] [stdout] | [INFO] [stdout] 415 | pub struct Card { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 416 | term: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 417 | definition: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 418 | part_of_speech: String [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width`, `height`, `name`, and `events` are never read [INFO] [stdout] --> src/langrpg.rs:462:5 [INFO] [stdout] | [INFO] [stdout] 461 | pub struct Map { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 462 | width: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 463 | height: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 464 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 465 | pub tiles: [[u32; 10]; 10], [INFO] [stdout] 466 | pub events: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `PLAYER` should have a snake case name [INFO] [stdout] --> src/main.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | let mut PLAYER = langrpg::Player::new(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `player` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `WORLD` should have a snake case name [INFO] [stdout] --> src/main.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let mut WORLD = langrpg::World::new(); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `NPC_name` should have a snake case name [INFO] [stdout] --> src/main.rs:178:59 [INFO] [stdout] | [INFO] [stdout] 178 | fn get_dialogs(world: &langrpg::World, map_name: &String, NPC_name: &String) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `npc_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mapName` should have a snake case name [INFO] [stdout] --> src/langrpg.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | for (mapName, mapStruct) in &mut world.maps { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `map_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mapStruct` should have a snake case name [INFO] [stdout] --> src/langrpg.rs:55:23 [INFO] [stdout] | [INFO] [stdout] 55 | for (mapName, mapStruct) in &mut world.maps { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `map_struct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/langrpg.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | if (self.hp - amount) < 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `newItem` should have a snake case name [INFO] [stdout] --> src/langrpg.rs:224:13 [INFO] [stdout] | [INFO] [stdout] 224 | let newItem = Item::new(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `new_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `NPCs` should have a snake case name [INFO] [stdout] --> src/langrpg.rs:467:9 [INFO] [stdout] | [INFO] [stdout] 467 | pub NPCs: Vec, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `npcs` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.24s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: quick-xml v0.15.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "9fcf67c94730461665977b0ba9936bb8b6babb73eeef7726fa3553f6a9087048", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fcf67c94730461665977b0ba9936bb8b6babb73eeef7726fa3553f6a9087048", kill_on_drop: false }` [INFO] [stdout] 9fcf67c94730461665977b0ba9936bb8b6babb73eeef7726fa3553f6a9087048