[INFO] cloning repository https://github.com/Lucas-thullier/character_creator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Lucas-thullier/character_creator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucas-thullier%2Fcharacter_creator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucas-thullier%2Fcharacter_creator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] de8821e9f8f1802b6c5f9ce3bffc8cf1c42948c3 [INFO] linting Lucas-thullier/character_creator against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLucas-thullier%2Fcharacter_creator" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Lucas-thullier/character_creator [INFO] finished tweaking git repo https://github.com/Lucas-thullier/character_creator [INFO] tweaked toml for git repo https://github.com/Lucas-thullier/character_creator written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Lucas-thullier/character_creator on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Lucas-thullier/character_creator already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded itoa v0.4.8 [INFO] [stderr] Downloaded quote v1.0.10 [INFO] [stderr] Downloaded unicode-xid v0.2.2 [INFO] [stderr] Downloaded dotenv v0.14.1 [INFO] [stderr] Downloaded proc-macro2 v1.0.32 [INFO] [stderr] Downloaded serde v1.0.130 [INFO] [stderr] Downloaded addr2line v0.17.0 [INFO] [stderr] Downloaded cc v1.0.72 [INFO] [stderr] Downloaded backtrace v0.3.63 [INFO] [stderr] Downloaded serde_json v1.0.69 [INFO] [stderr] Downloaded aho-corasick v0.7.18 [INFO] [stderr] Downloaded memchr v2.4.1 [INFO] [stderr] Downloaded serde_derive v1.0.130 [INFO] [stderr] Downloaded syn v1.0.81 [INFO] [stderr] Downloaded object v0.27.1 [INFO] [stderr] Downloaded regex v1.5.4 [INFO] [stderr] Downloaded regex-syntax v0.6.25 [INFO] [stderr] Downloaded libc v0.2.107 [INFO] [stderr] Downloaded gimli v0.26.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 37286fe7f006c78553eda66ea90f967046d88194a1661f0eb1fcef282c5501a9 [INFO] running `Command { std: "docker" "start" "-a" "37286fe7f006c78553eda66ea90f967046d88194a1661f0eb1fcef282c5501a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "37286fe7f006c78553eda66ea90f967046d88194a1661f0eb1fcef282c5501a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "37286fe7f006c78553eda66ea90f967046d88194a1661f0eb1fcef282c5501a9", kill_on_drop: false }` [INFO] [stdout] 37286fe7f006c78553eda66ea90f967046d88194a1661f0eb1fcef282c5501a9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ae85102b04af319dc172010e597d75e2ed0247f6fa53bbcd2e5db5ff9b065e4a [INFO] running `Command { std: "docker" "start" "-a" "ae85102b04af319dc172010e597d75e2ed0247f6fa53bbcd2e5db5ff9b065e4a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling libc v0.2.107 [INFO] [stderr] Checking gimli v0.26.1 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Checking rustc-demangle v0.1.21 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Compiling serde_json v1.0.69 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking object v0.27.1 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling backtrace v0.3.63 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking addr2line v0.17.0 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking dotenv v0.14.1 [INFO] [stderr] Checking character_creator v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | use dotenv; [INFO] [stdout] | ^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] = note: `#[warn(clippy::single_component_path_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib/knowledge.rs:249:7 [INFO] [stdout] | [INFO] [stdout] 249 | abilities: abilities, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `abilities` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib/knowledge.rs:250:7 [INFO] [stdout] | [INFO] [stdout] 250 | proficiencies: proficiencies, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `proficiencies` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib/knowledge.rs:251:7 [INFO] [stdout] | [INFO] [stdout] 251 | skills: skills, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `skills` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib/knowledge.rs:252:7 [INFO] [stdout] | [INFO] [stdout] 252 | features: features, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `features` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib/knowledge.rs:253:7 [INFO] [stdout] | [INFO] [stdout] 253 | spells: spells, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `spells` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | use dotenv; [INFO] [stdout] | ^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] = note: `#[warn(clippy::single_component_path_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib/knowledge.rs:249:7 [INFO] [stdout] | [INFO] [stdout] 249 | abilities: abilities, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `abilities` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib/knowledge.rs:250:7 [INFO] [stdout] | [INFO] [stdout] 250 | proficiencies: proficiencies, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `proficiencies` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib/knowledge.rs:251:7 [INFO] [stdout] | [INFO] [stdout] 251 | skills: skills, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `skills` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib/knowledge.rs:252:7 [INFO] [stdout] | [INFO] [stdout] 252 | features: features, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `features` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib/knowledge.rs:253:7 [INFO] [stdout] | [INFO] [stdout] 253 | spells: spells, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `spells` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `character` [INFO] [stdout] --> src/lib/knowledge.rs:164:29 [INFO] [stdout] | [INFO] [stdout] 164 | fn apply_modifiers(&self, character: &mut Character) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_character` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `equipments`, `spells`, and `features` are never read [INFO] [stdout] --> src/lib/knowledge.rs:128:3 [INFO] [stdout] | [INFO] [stdout] 124 | struct ClassModifiers { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 128 | equipments: HashMap>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 129 | spells: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 130 | features: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClassModifiers` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `character` [INFO] [stdout] --> src/lib/knowledge.rs:164:29 [INFO] [stdout] | [INFO] [stdout] 164 | fn apply_modifiers(&self, character: &mut Character) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_character` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `proficiencies`, `equipments`, and `features` are never read [INFO] [stdout] --> src/lib/knowledge.rs:158:3 [INFO] [stdout] | [INFO] [stdout] 157 | struct BackgroundModifiers { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 158 | proficiencies: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 159 | equipments: HashMap>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 160 | features: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BackgroundModifiers` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/lib/knowledge.rs:180:7 [INFO] [stdout] | [INFO] [stdout] 179 | pub struct Character { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 180 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 181 | pub age: u64, [INFO] [stdout] | ^^^ [INFO] [stdout] 182 | pub background: String, [INFO] [stdout] 183 | pub alignment: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 186 | pub level: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 187 | pub experience: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | pub skills: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | pub armor_class: ArmorClass, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | pub proficiency_bonus: i16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Character` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `natural_value` and `temporary_modifier` are never read [INFO] [stdout] --> src/lib/knowledge.rs:265:3 [INFO] [stdout] | [INFO] [stdout] 264 | pub struct Ability { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 265 | natural_value: i16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 266 | race_modifier: i16, [INFO] [stdout] 267 | temporary_modifier: i16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/lib/knowledge.rs:271:10 [INFO] [stdout] | [INFO] [stdout] 270 | impl Ability { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 271 | pub fn value(&self) -> i16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HitPoint` is never constructed [INFO] [stdout] --> src/lib/knowledge.rs:287:12 [INFO] [stdout] | [INFO] [stdout] 287 | pub struct HitPoint {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/lib/knowledge.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | let boxed_modifiers = bonuses as Box; [INFO] [stdout] | ------------------------------------------------------------- unnecessary `let` binding [INFO] [stdout] 32 | boxed_modifiers [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] = note: `#[warn(clippy::let_and_return)]` on by default [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 31 ~ [INFO] [stdout] 32 ~ (bonuses as Box) as _ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/lib/knowledge.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 55 | let boxed_modifiers = bonuses as Box; [INFO] [stdout] | ------------------------------------------------------------- unnecessary `let` binding [INFO] [stdout] 56 | boxed_modifiers [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 55 ~ [INFO] [stdout] 56 ~ (bonuses as Box) as _ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `equipments`, `spells`, and `features` are never read [INFO] [stdout] --> src/lib/knowledge.rs:128:3 [INFO] [stdout] | [INFO] [stdout] 124 | struct ClassModifiers { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 128 | equipments: HashMap>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 129 | spells: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 130 | features: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClassModifiers` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `proficiencies`, `equipments`, and `features` are never read [INFO] [stdout] --> src/lib/knowledge.rs:158:3 [INFO] [stdout] | [INFO] [stdout] 157 | struct BackgroundModifiers { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 158 | proficiencies: HashMap>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 159 | equipments: HashMap>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 160 | features: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BackgroundModifiers` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/lib/knowledge.rs:180:7 [INFO] [stdout] | [INFO] [stdout] 179 | pub struct Character { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 180 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 181 | pub age: u64, [INFO] [stdout] | ^^^ [INFO] [stdout] 182 | pub background: String, [INFO] [stdout] 183 | pub alignment: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 186 | pub level: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 187 | pub experience: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | pub skills: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | pub armor_class: ArmorClass, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | pub proficiency_bonus: i16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Character` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `natural_value` and `temporary_modifier` are never read [INFO] [stdout] --> src/lib/knowledge.rs:265:3 [INFO] [stdout] | [INFO] [stdout] 264 | pub struct Ability { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 265 | natural_value: i16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 266 | race_modifier: i16, [INFO] [stdout] 267 | temporary_modifier: i16, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ability` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/lib/knowledge.rs:271:10 [INFO] [stdout] | [INFO] [stdout] 270 | impl Ability { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 271 | pub fn value(&self) -> i16 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HitPoint` is never constructed [INFO] [stdout] --> src/lib/knowledge.rs:287:12 [INFO] [stdout] | [INFO] [stdout] 287 | pub struct HitPoint {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/lib/knowledge.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 79 | let boxed_modifiers = bonuses as Box; [INFO] [stdout] | ------------------------------------------------------------- unnecessary `let` binding [INFO] [stdout] 80 | boxed_modifiers [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 79 ~ [INFO] [stdout] 80 ~ (bonuses as Box) as _ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/lib/knowledge.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | let boxed_modifiers = bonuses as Box; [INFO] [stdout] | ------------------------------------------------------------- unnecessary `let` binding [INFO] [stdout] 32 | boxed_modifiers [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] = note: `#[warn(clippy::let_and_return)]` on by default [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 31 ~ [INFO] [stdout] 32 ~ (bonuses as Box) as _ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/lib/knowledge.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 55 | let boxed_modifiers = bonuses as Box; [INFO] [stdout] | ------------------------------------------------------------- unnecessary `let` binding [INFO] [stdout] 56 | boxed_modifiers [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 55 ~ [INFO] [stdout] 56 ~ (bonuses as Box) as _ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/lib/knowledge.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 79 | let boxed_modifiers = bonuses as Box; [INFO] [stdout] | ------------------------------------------------------------- unnecessary `let` binding [INFO] [stdout] 80 | boxed_modifiers [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 79 ~ [INFO] [stdout] 80 ~ (bonuses as Box) as _ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/lib/knowledge.rs:214:5 [INFO] [stdout] | [INFO] [stdout] 214 | / if !self.race.is_empty() && !self.class.is_empty() && !self.background.is_empty() { [INFO] [stdout] 215 | | true [INFO] [stdout] 216 | | } else { [INFO] [stdout] 217 | | false [INFO] [stdout] 218 | | } [INFO] [stdout] | |_____^ help: you can reduce it to: `!self.race.is_empty() && !self.class.is_empty() && !self.background.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] = note: `#[warn(clippy::needless_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib/game_master.rs:28:24 [INFO] [stdout] | [INFO] [stdout] 28 | let is_int: bool = !user_input.trim().parse::().is_err(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `user_input.trim().parse::().is_ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this creates an owned instance just for comparison [INFO] [stdout] --> src/lib/game_master.rs:64:37 [INFO] [stdout] | [INFO] [stdout] 64 | if self.actual_creation_step == "races".to_owned() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `"races"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned [INFO] [stdout] = note: `#[warn(clippy::cmp_owned)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this creates an owned instance just for comparison [INFO] [stdout] --> src/lib/game_master.rs:66:44 [INFO] [stdout] | [INFO] [stdout] 66 | } else if self.actual_creation_step == "classes".to_owned() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: try: `"classes"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this creates an owned instance just for comparison [INFO] [stdout] --> src/lib/game_master.rs:68:44 [INFO] [stdout] | [INFO] [stdout] 68 | } else if self.actual_creation_step == "backgrounds".to_owned() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `"backgrounds"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/lib/knowledge.rs:214:5 [INFO] [stdout] | [INFO] [stdout] 214 | / if !self.race.is_empty() && !self.class.is_empty() && !self.background.is_empty() { [INFO] [stdout] 215 | | true [INFO] [stdout] 216 | | } else { [INFO] [stdout] 217 | | false [INFO] [stdout] 218 | | } [INFO] [stdout] | |_____^ help: you can reduce it to: `!self.race.is_empty() && !self.class.is_empty() && !self.background.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] = note: `#[warn(clippy::needless_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib/game_master.rs:28:24 [INFO] [stdout] | [INFO] [stdout] 28 | let is_int: bool = !user_input.trim().parse::().is_err(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `user_input.trim().parse::().is_ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this creates an owned instance just for comparison [INFO] [stdout] --> src/lib/game_master.rs:64:37 [INFO] [stdout] | [INFO] [stdout] 64 | if self.actual_creation_step == "races".to_owned() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `"races"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned [INFO] [stdout] = note: `#[warn(clippy::cmp_owned)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this creates an owned instance just for comparison [INFO] [stdout] --> src/lib/game_master.rs:66:44 [INFO] [stdout] | [INFO] [stdout] 66 | } else if self.actual_creation_step == "classes".to_owned() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: try: `"classes"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this creates an owned instance just for comparison [INFO] [stdout] --> src/lib/game_master.rs:68:44 [INFO] [stdout] | [INFO] [stdout] 68 | } else if self.actual_creation_step == "backgrounds".to_owned() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `"backgrounds"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.04s [INFO] running `Command { std: "docker" "inspect" "ae85102b04af319dc172010e597d75e2ed0247f6fa53bbcd2e5db5ff9b065e4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae85102b04af319dc172010e597d75e2ed0247f6fa53bbcd2e5db5ff9b065e4a", kill_on_drop: false }` [INFO] [stdout] ae85102b04af319dc172010e597d75e2ed0247f6fa53bbcd2e5db5ff9b065e4a