[INFO] cloning repository https://github.com/Oluwanifemiiii/CSC_305 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Oluwanifemiiii/CSC_305" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOluwanifemiiii%2FCSC_305", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOluwanifemiiii%2FCSC_305'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c947d71774f4d537dab381ef13a7a162a992a210 [INFO] linting Oluwanifemiiii/CSC_305 against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOluwanifemiiii%2FCSC_305" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Oluwanifemiiii/CSC_305 [INFO] finished tweaking git repo https://github.com/Oluwanifemiiii/CSC_305 [INFO] tweaked toml for git repo https://github.com/Oluwanifemiiii/CSC_305 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Oluwanifemiiii/CSC_305 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/Oluwanifemiiii/CSC_305 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] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] a4b8dac2ac992af3ded6822d6349949654852548618060ecd02883b8bd31adc4 [INFO] running `Command { std: "docker" "start" "-a" "a4b8dac2ac992af3ded6822d6349949654852548618060ecd02883b8bd31adc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a4b8dac2ac992af3ded6822d6349949654852548618060ecd02883b8bd31adc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4b8dac2ac992af3ded6822d6349949654852548618060ecd02883b8bd31adc4", kill_on_drop: false }` [INFO] [stdout] a4b8dac2ac992af3ded6822d6349949654852548618060ecd02883b8bd31adc4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 0419d98e677965e8a3fb1548e17a31b2316840ca8b5a5fc35be9193459c8c526 [INFO] running `Command { std: "docker" "start" "-a" "0419d98e677965e8a3fb1548e17a31b2316840ca8b5a5fc35be9193459c8c526", kill_on_drop: false }` [INFO] [stderr] Checking hello_world2_lib v0.1.0 (/opt/rustwide/workdir/hello_world2_lib) [INFO] [stderr] Checking hello_world2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/main.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | / ///Alternatively, load them in one line [INFO] [stdout] 11 | | [INFO] [stdout] | |_^ [INFO] [stdout] 12 | extern crate hello_world2_lib; [INFO] [stdout] | ----------------------------- the comment documents this extern crate [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `english`, `french`, and `spanish` [INFO] [stdout] --> src/main.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use greetings::{english, spanish, french}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/main.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | / ///Alternatively, load them in one line [INFO] [stdout] 11 | | [INFO] [stdout] | |_^ [INFO] [stdout] 12 | extern crate hello_world2_lib; [INFO] [stdout] | ----------------------------- the comment documents this extern crate [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `english`, `french`, and `spanish` [INFO] [stdout] --> src/main.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | use greetings::{english, spanish, french}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logical` [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let logical: bool = true; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_logical` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_float` [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let a_float: f64 = 1.0; // Regular annotation [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `an_integer` [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let an_integer = 5i32; // Suffix annotation [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_an_integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default_float` [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let default_float = 3.0; // `f64` [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default_integer` [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let default_integer = 7; // `i32` [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default_integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inferred_type` is assigned to, but never used [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut inferred_type = 12; // Type i64 is inferred from another line. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_inferred_type` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mutable` is assigned to, but never used [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mut mutable = 12; // Mutable `i32` [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_mutable` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mutable` [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mutable = true; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mutable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inferred_type` is never read [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | inferred_type = 4294967296i64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mutable` is never read [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | mutable = 21; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_greeting` is never used [INFO] [stdout] --> src/greetings/spanish.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn default_greeting() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_greeting` is never used [INFO] [stdout] --> src/greetings/french.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn default_greeting() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_greeting` is never used [INFO] [stdout] --> src/greetings/english.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn default_greeting() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse` is never used [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/compound.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn reverse(pair: (i32, bool)) -> (bool, i32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Matrix` is never constructed [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/compound.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Matrix(f32, f32, f32, f32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/compound.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `analyze_slice` is never used [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/compound.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn analyze_slice(slice: &[i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multiplier` is never used [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/compound.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn multiplier(arr: &[f64]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main_iii` is never used [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/compound.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn main_iii() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ergo` is never used [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn ergo() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/greetings/spanish.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | let message = String::from("Hola"); [INFO] [stdout] | ----------------------------------- unnecessary `let` binding [INFO] [stdout] 3 | message [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] 2 ~ [INFO] [stdout] 3 ~ String::from("Hola") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/greetings/french.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | let message = String::from("Alo"); [INFO] [stdout] | ---------------------------------- unnecessary `let` binding [INFO] [stdout] 3 | message [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] 2 ~ [INFO] [stdout] 3 ~ String::from("Alo") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/greetings/english.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | let message = String::from("Hi!"); [INFO] [stdout] | ---------------------------------- unnecessary `let` binding [INFO] [stdout] 3 | message [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] 2 ~ [INFO] [stdout] 3 ~ String::from("Hi!") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logical` [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let logical: bool = true; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_logical` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a_float` [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let a_float: f64 = 1.0; // Regular annotation [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `an_integer` [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let an_integer = 5i32; // Suffix annotation [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_an_integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default_float` [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let default_float = 3.0; // `f64` [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default_float` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default_integer` [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let default_integer = 7; // `i32` [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_default_integer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inferred_type` is assigned to, but never used [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut inferred_type = 12; // Type i64 is inferred from another line. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_inferred_type` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mutable` is assigned to, but never used [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let mut mutable = 12; // Mutable `i32` [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_mutable` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mutable` [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mutable = true; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mutable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inferred_type` is never read [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | inferred_type = 4294967296i64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `mutable` is never read [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | mutable = 21; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:36:42 [INFO] [stdout] | [INFO] [stdout] 36 | println!("true AND false is {}", true && false); [INFO] [stdout] | ^^^^^^^^^^^^^ help: try: `false` [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 boolean expression can be simplified [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:37:41 [INFO] [stdout] | [INFO] [stdout] 37 | println!("true OR false is {}", true || false); [INFO] [stdout] | ^^^^^^^^^^^^^ help: try: `true` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:38:36 [INFO] [stdout] | [INFO] [stdout] 38 | println!("NOT true is {}", !true); [INFO] [stdout] | ^^^^^ help: try: `false` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stdout] --> src/how_you_hold_data_for_operations/derived/user_defined.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 181 | fn ne(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stdout] = note: `#[warn(clippy::partialeq_ne_impl)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_greeting` is never used [INFO] [stdout] --> src/greetings/spanish.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn default_greeting() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_greeting` is never used [INFO] [stdout] --> src/greetings/french.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn default_greeting() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_greeting` is never used [INFO] [stdout] --> src/greetings/english.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn default_greeting() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse` is never used [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/compound.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn reverse(pair: (i32, bool)) -> (bool, i32) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Matrix` is never constructed [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/compound.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Matrix(f32, f32, f32, f32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/compound.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `analyze_slice` is never used [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/compound.rs:58:4 [INFO] [stdout] | [INFO] [stdout] 58 | fn analyze_slice(slice: &[i32]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `multiplier` is never used [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/compound.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn multiplier(arr: &[f64]) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main_iii` is never used [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/compound.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn main_iii() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ergo` is never used [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | fn ergo() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/how_you_hold_data_for_operations/derived/user_defined.rs:204:20 [INFO] [stdout] | [INFO] [stdout] 204 | let name = match parts.next() { [INFO] [stdout] | ____________________^ [INFO] [stdout] 205 | | Some(val) => val, [INFO] [stdout] 206 | | None => "", [INFO] [stdout] 207 | | }; [INFO] [stdout] | |_________^ help: replace it with: `parts.next().unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::manual_unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/how_you_hold_data_for_operations/derived/user_defined.rs:251:9 [INFO] [stdout] | [INFO] [stdout] 251 | self.radius as i32 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `self.radius` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stdout] --> src/how_you_hold_data_for_operations/derived/user_defined.rs:277:5 [INFO] [stdout] | [INFO] [stdout] 277 | fn ne(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/greetings/spanish.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | let message = String::from("Hola"); [INFO] [stdout] | ----------------------------------- unnecessary `let` binding [INFO] [stdout] 3 | message [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] 2 ~ [INFO] [stdout] 3 ~ String::from("Hola") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/how_you_hold_data_for_operations/derived/user_defined.rs:296:20 [INFO] [stdout] | [INFO] [stdout] 296 | let name = match parts.next() { [INFO] [stdout] | ____________________^ [INFO] [stdout] 297 | | Some(val) => val, [INFO] [stdout] 298 | | None => "", [INFO] [stdout] 299 | | }; [INFO] [stdout] | |_________^ help: replace it with: `parts.next().unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/greetings/french.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | let message = String::from("Alo"); [INFO] [stdout] | ---------------------------------- unnecessary `let` binding [INFO] [stdout] 3 | message [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] 2 ~ [INFO] [stdout] 3 ~ String::from("Alo") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/greetings/english.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | let message = String::from("Hi!"); [INFO] [stdout] | ---------------------------------- unnecessary `let` binding [INFO] [stdout] 3 | message [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] 2 ~ [INFO] [stdout] 3 ~ String::from("Hi!") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stdout] --> src/how_you_hold_data_for_operations/derived/user_defined.rs:376:5 [INFO] [stdout] | [INFO] [stdout] 376 | fn ne(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/how_you_hold_data_for_operations/derived/user_defined.rs:399:20 [INFO] [stdout] | [INFO] [stdout] 399 | let name = match parts.next() { [INFO] [stdout] | ____________________^ [INFO] [stdout] 400 | | Some(val) => val, [INFO] [stdout] 401 | | None => "", [INFO] [stdout] 402 | | }; [INFO] [stdout] | |_________^ help: replace it with: `parts.next().unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:36:42 [INFO] [stdout] | [INFO] [stdout] 36 | println!("true AND false is {}", true && false); [INFO] [stdout] | ^^^^^^^^^^^^^ help: try: `false` [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 boolean expression can be simplified [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:37:41 [INFO] [stdout] | [INFO] [stdout] 37 | println!("true OR false is {}", true || false); [INFO] [stdout] | ^^^^^^^^^^^^^ help: try: `true` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/how_you_hold_data_for_operations/primitives/scalar.rs:38:36 [INFO] [stdout] | [INFO] [stdout] 38 | println!("NOT true is {}", !true); [INFO] [stdout] | ^^^^^ help: try: `false` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stdout] --> src/how_you_hold_data_for_operations/derived/user_defined.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 181 | fn ne(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stdout] = note: `#[warn(clippy::partialeq_ne_impl)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/how_you_hold_data_for_operations/derived/user_defined.rs:204:20 [INFO] [stdout] | [INFO] [stdout] 204 | let name = match parts.next() { [INFO] [stdout] | ____________________^ [INFO] [stdout] 205 | | Some(val) => val, [INFO] [stdout] 206 | | None => "", [INFO] [stdout] 207 | | }; [INFO] [stdout] | |_________^ help: replace it with: `parts.next().unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::manual_unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> src/how_you_hold_data_for_operations/derived/user_defined.rs:251:9 [INFO] [stdout] | [INFO] [stdout] 251 | self.radius as i32 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: try: `self.radius` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stdout] --> src/how_you_hold_data_for_operations/derived/user_defined.rs:277:5 [INFO] [stdout] | [INFO] [stdout] 277 | fn ne(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/how_you_hold_data_for_operations/derived/user_defined.rs:296:20 [INFO] [stdout] | [INFO] [stdout] 296 | let name = match parts.next() { [INFO] [stdout] | ____________________^ [INFO] [stdout] 297 | | Some(val) => val, [INFO] [stdout] 298 | | None => "", [INFO] [stdout] 299 | | }; [INFO] [stdout] | |_________^ help: replace it with: `parts.next().unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stdout] --> src/how_you_hold_data_for_operations/derived/user_defined.rs:376:5 [INFO] [stdout] | [INFO] [stdout] 376 | fn ne(&self, other: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/how_you_hold_data_for_operations/derived/user_defined.rs:399:20 [INFO] [stdout] | [INFO] [stdout] 399 | let name = match parts.next() { [INFO] [stdout] | ____________________^ [INFO] [stdout] 400 | | Some(val) => val, [INFO] [stdout] 401 | | None => "", [INFO] [stdout] 402 | | }; [INFO] [stdout] | |_________^ help: replace it with: `parts.next().unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.42s [INFO] running `Command { std: "docker" "inspect" "0419d98e677965e8a3fb1548e17a31b2316840ca8b5a5fc35be9193459c8c526", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0419d98e677965e8a3fb1548e17a31b2316840ca8b5a5fc35be9193459c8c526", kill_on_drop: false }` [INFO] [stdout] 0419d98e677965e8a3fb1548e17a31b2316840ca8b5a5fc35be9193459c8c526