[INFO] fetching crate spectral 0.6.0... [INFO] linting spectral-0.6.0 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate spectral 0.6.0 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate spectral 0.6.0 [INFO] finished tweaking crates.io crate spectral 0.6.0 [INFO] tweaked toml for crates.io crate spectral 0.6.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate spectral 0.6.0 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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 18 packages to latest compatible versions [INFO] [stderr] Adding num v0.1.43 (available: v0.4.3) [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] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d76ce201c455c4fa514a23d3545cf7c0d4260d3ca12acb7c61bff06c0685e20e [INFO] running `Command { std: "docker" "start" "-a" "d76ce201c455c4fa514a23d3545cf7c0d4260d3ca12acb7c61bff06c0685e20e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d76ce201c455c4fa514a23d3545cf7c0d4260d3ca12acb7c61bff06c0685e20e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d76ce201c455c4fa514a23d3545cf7c0d4260d3ca12acb7c61bff06c0685e20e", kill_on_drop: false }` [INFO] [stdout] d76ce201c455c4fa514a23d3545cf7c0d4260d3ca12acb7c61bff06c0685e20e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1c397a677907c83eccb437c995c729234a313c13a90fa2dc4dc4cbd70db611a2 [INFO] running `Command { std: "docker" "start" "-a" "1c397a677907c83eccb437c995c729234a313c13a90fa2dc4dc4cbd70db611a2", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] [stderr] Compiling num-bigint v0.1.45 [INFO] [stderr] Compiling num-rational v0.1.43 [INFO] [stderr] Compiling num-complex v0.1.44 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking num v0.1.43 [INFO] [stderr] Checking spectral v0.6.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:13:36 [INFO] [stdout] | [INFO] [stdout] 13 | fn contains_all_of(&mut self, expected_values_iter: &'s E) [INFO] [stdout] | ^ [INFO] [stdout] 14 | where E: IntoIterator + Clone; [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 22 | generate_iter_spec_trait!(ContainingIntoIterAssertions); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] = note: `#[warn(clippy::multiple_bound_locations)]` on by default [INFO] [stdout] = note: this warning originates in the macro `generate_iter_spec_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:16:36 [INFO] [stdout] | [INFO] [stdout] 16 | fn equals_iterator(&mut self, expected_iter: &'s E) [INFO] [stdout] | ^ [INFO] [stdout] 17 | where E: Iterator + Clone; [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 22 | generate_iter_spec_trait!(ContainingIntoIterAssertions); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] = note: this warning originates in the macro `generate_iter_spec_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:13:36 [INFO] [stdout] | [INFO] [stdout] 13 | fn contains_all_of(&mut self, expected_values_iter: &'s E) [INFO] [stdout] | ^ [INFO] [stdout] 14 | where E: IntoIterator + Clone; [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 23 | generate_iter_spec_trait!(ContainingIteratorAssertions); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] = note: this warning originates in the macro `generate_iter_spec_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:16:36 [INFO] [stdout] | [INFO] [stdout] 16 | fn equals_iterator(&mut self, expected_iter: &'s E) [INFO] [stdout] | ^ [INFO] [stdout] 17 | where E: Iterator + Clone; [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 23 | generate_iter_spec_trait!(ContainingIteratorAssertions); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] = note: this warning originates in the macro `generate_iter_spec_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:29:27 [INFO] [stdout] | [INFO] [stdout] 29 | fn mapped_contains(&mut self, mapping_function: F, expected_value: &M) [INFO] [stdout] | ^ [INFO] [stdout] 30 | where M: Debug + PartialEq, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:57:24 [INFO] [stdout] | [INFO] [stdout] 57 | fn contains_all_of(&mut self, expected_values_iter: &'s E) [INFO] [stdout] | ^ [INFO] [stdout] 58 | where E: IntoIterator + Clone [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:86:24 [INFO] [stdout] | [INFO] [stdout] 86 | fn equals_iterator(&mut self, expected_iter: &'s E) [INFO] [stdout] | ^ [INFO] [stdout] 87 | where E: Iterator + Clone [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:116:24 [INFO] [stdout] | [INFO] [stdout] 116 | fn contains_all_of(&mut self, expected_values_iter: &'s E) [INFO] [stdout] | ^ [INFO] [stdout] 117 | where E: IntoIterator + Clone [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:145:24 [INFO] [stdout] | [INFO] [stdout] 145 | fn equals_iterator(&mut self, expected_iter: &'s E) [INFO] [stdout] | ^ [INFO] [stdout] 146 | where E: Iterator + Clone [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:173:27 [INFO] [stdout] | [INFO] [stdout] 173 | fn mapped_contains(&mut self, mapping_function: F, expected_value: &M) [INFO] [stdout] | ^ [INFO] [stdout] 174 | where M: Debug + PartialEq, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:220:35 [INFO] [stdout] | [INFO] [stdout] 220 | fn check_iterator_contains<'s, T, V: 's, I, E: Borrow>(spec: &mut Spec, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 224 | where V: PartialEq + Debug, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/lib.rs:163:26 [INFO] [stdout] | [INFO] [stdout] 163 | pub const TERM_RED: &'static str = "\x1B[31m"; [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] = note: `#[warn(clippy::redundant_static_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/lib.rs:164:27 [INFO] [stdout] | [INFO] [stdout] 164 | pub const TERM_BOLD: &'static str = "\x1B[1m"; [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/lib.rs:165:28 [INFO] [stdout] | [INFO] [stdout] 165 | pub const TERM_RESET: &'static str = "\x1B[0m"; [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib.rs:258:9 [INFO] [stdout] | [INFO] [stdout] 258 | subject: subject, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `subject` [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.rs:284:13 [INFO] [stdout] | [INFO] [stdout] 284 | subject: subject, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `subject` [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.rs:310:13 [INFO] [stdout] | [INFO] [stdout] 310 | spec: spec, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `spec` [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: statics have by default a `'static` lifetime [INFO] [stdout] --> src/path.rs:186:28 [INFO] [stdout] | [INFO] [stdout] 186 | static MANIFEST_PATH: &'static str = env!("CARGO_MANIFEST_DIR"); [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] = note: `#[warn(clippy::redundant_static_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:13:36 [INFO] [stdout] | [INFO] [stdout] 13 | fn contains_all_of(&mut self, expected_values_iter: &'s E) [INFO] [stdout] | ^ [INFO] [stdout] 14 | where E: IntoIterator + Clone; [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 22 | generate_iter_spec_trait!(ContainingIntoIterAssertions); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] = note: `#[warn(clippy::multiple_bound_locations)]` on by default [INFO] [stdout] = note: this warning originates in the macro `generate_iter_spec_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:16:36 [INFO] [stdout] | [INFO] [stdout] 16 | fn equals_iterator(&mut self, expected_iter: &'s E) [INFO] [stdout] | ^ [INFO] [stdout] 17 | where E: Iterator + Clone; [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 22 | generate_iter_spec_trait!(ContainingIntoIterAssertions); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] = note: this warning originates in the macro `generate_iter_spec_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:13:36 [INFO] [stdout] | [INFO] [stdout] 13 | fn contains_all_of(&mut self, expected_values_iter: &'s E) [INFO] [stdout] | ^ [INFO] [stdout] 14 | where E: IntoIterator + Clone; [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 23 | generate_iter_spec_trait!(ContainingIteratorAssertions); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] = note: this warning originates in the macro `generate_iter_spec_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:16:36 [INFO] [stdout] | [INFO] [stdout] 16 | fn equals_iterator(&mut self, expected_iter: &'s E) [INFO] [stdout] | ^ [INFO] [stdout] 17 | where E: Iterator + Clone; [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 23 | generate_iter_spec_trait!(ContainingIteratorAssertions); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] = note: this warning originates in the macro `generate_iter_spec_trait` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:29:27 [INFO] [stdout] | [INFO] [stdout] 29 | fn mapped_contains(&mut self, mapping_function: F, expected_value: &M) [INFO] [stdout] | ^ [INFO] [stdout] 30 | where M: Debug + PartialEq, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:57:24 [INFO] [stdout] | [INFO] [stdout] 57 | fn contains_all_of(&mut self, expected_values_iter: &'s E) [INFO] [stdout] | ^ [INFO] [stdout] 58 | where E: IntoIterator + Clone [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:86:24 [INFO] [stdout] | [INFO] [stdout] 86 | fn equals_iterator(&mut self, expected_iter: &'s E) [INFO] [stdout] | ^ [INFO] [stdout] 87 | where E: Iterator + Clone [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:116:24 [INFO] [stdout] | [INFO] [stdout] 116 | fn contains_all_of(&mut self, expected_values_iter: &'s E) [INFO] [stdout] | ^ [INFO] [stdout] 117 | where E: IntoIterator + Clone [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:145:24 [INFO] [stdout] | [INFO] [stdout] 145 | fn equals_iterator(&mut self, expected_iter: &'s E) [INFO] [stdout] | ^ [INFO] [stdout] 146 | where E: Iterator + Clone [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:173:27 [INFO] [stdout] | [INFO] [stdout] 173 | fn mapped_contains(&mut self, mapping_function: F, expected_value: &M) [INFO] [stdout] | ^ [INFO] [stdout] 174 | where M: Debug + PartialEq, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/iter.rs:220:35 [INFO] [stdout] | [INFO] [stdout] 220 | fn check_iterator_contains<'s, T, V: 's, I, E: Borrow>(spec: &mut Spec, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 224 | where V: PartialEq + Debug, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:318:13 [INFO] [stdout] | [INFO] [stdout] 318 | let mut assertion = self; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:326:13 [INFO] [stdout] | [INFO] [stdout] 326 | let mut assertion = self; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/lib.rs:170:26 [INFO] [stdout] | [INFO] [stdout] 170 | pub const TERM_RED: &'static str = ""; [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/lib.rs:171:27 [INFO] [stdout] | [INFO] [stdout] 171 | pub const TERM_BOLD: &'static str = ""; [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constants have by default a `'static` lifetime [INFO] [stdout] --> src/lib.rs:172:28 [INFO] [stdout] | [INFO] [stdout] 172 | pub const TERM_RESET: &'static str = ""; [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/lib.rs:258:9 [INFO] [stdout] | [INFO] [stdout] 258 | subject: subject, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `subject` [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.rs:284:13 [INFO] [stdout] | [INFO] [stdout] 284 | subject: subject, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace it with: `subject` [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.rs:310:13 [INFO] [stdout] | [INFO] [stdout] 310 | spec: spec, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `spec` [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: unit tests in doctest are not executed [INFO] [stdout] --> src/lib.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | //! #[test] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#test_attr_in_doctest [INFO] [stdout] = note: `#[warn(clippy::test_attr_in_doctest)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unit tests in doctest are not executed [INFO] [stdout] --> src/lib.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | //! #[test] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#test_attr_in_doctest [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unit tests in doctest are not executed [INFO] [stdout] --> src/lib.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | //! #[test] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#test_attr_in_doctest [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unit tests in doctest are not executed [INFO] [stdout] --> src/lib.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | //! #[test] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#test_attr_in_doctest [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/boolean.rs:17:32 [INFO] [stdout] | [INFO] [stdout] 17 | .with_expected(format!("bool to be ")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"bool to be ".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] = note: `#[warn(clippy::useless_format)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/boolean.rs:18:30 [INFO] [stdout] | [INFO] [stdout] 18 | .with_actual(format!("")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/boolean.rs:31:32 [INFO] [stdout] | [INFO] [stdout] 31 | .with_expected(format!("bool to be ")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"bool to be ".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/boolean.rs:32:30 [INFO] [stdout] | [INFO] [stdout] 32 | .with_actual(format!("")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/hashmap.rs:55:32 [INFO] [stdout] | [INFO] [stdout] 55 | .with_expected(format!("an empty hashmap")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"an empty hashmap".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/hashmap.rs:111:30 [INFO] [stdout] | [INFO] [stdout] 111 | .with_actual(format!("present in hashmap")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"present in hashmap".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/hashmap.rs:183:30 [INFO] [stdout] | [INFO] [stdout] 183 | .with_actual(format!("present in hashmap")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"present in hashmap".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/option.rs:45:34 [INFO] [stdout] | [INFO] [stdout] 45 | .with_actual(format!("option[none]")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"option[none]".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/option.rs:74:36 [INFO] [stdout] | [INFO] [stdout] 74 | .with_expected(format!("option[some]")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"option[some]".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/option.rs:75:34 [INFO] [stdout] | [INFO] [stdout] 75 | .with_actual(format!("option[none]")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"option[none]".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/option.rs:93:36 [INFO] [stdout] | [INFO] [stdout] 93 | .with_expected(format!("option[none]")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"option[none]".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/path.rs:113:26 [INFO] [stdout] | [INFO] [stdout] 113 | .with_actual(format!("a non-existent Path")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"a non-existent Path".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/path.rs:122:26 [INFO] [stdout] | [INFO] [stdout] 122 | .with_actual(format!("a resolvable Path")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"a resolvable Path".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/path.rs:131:26 [INFO] [stdout] | [INFO] [stdout] 131 | .with_actual(format!("not a resolvable file")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"not a resolvable file".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/path.rs:140:26 [INFO] [stdout] | [INFO] [stdout] 140 | .with_actual(format!("not a resolvable directory")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"not a resolvable directory".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/path.rs:152:67 [INFO] [stdout] | [INFO] [stdout] 152 | fail_from_file_name(spec, expected_file_name, format!("an invalid UTF-8 file name")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"an invalid UTF-8 file name".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/result.rs:112:36 [INFO] [stdout] | [INFO] [stdout] 112 | .with_expected(format!("result[ok]")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"result[ok]".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/result.rs:140:36 [INFO] [stdout] | [INFO] [stdout] 140 | .with_expected(format!("result[error]")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"result[error]".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/vec.rs:36:32 [INFO] [stdout] | [INFO] [stdout] 36 | .with_expected(format!("an empty vec")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"an empty vec".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/iter.rs:233:39 [INFO] [stdout] | [INFO] [stdout] 233 | if borrowed_expected_value.eq(&x) { [INFO] [stdout] | ^^ help: change this to: `x` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:335:12 [INFO] [stdout] | [INFO] [stdout] 335 | if !self.expected.is_some() || !self.actual.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.expected.is_none()` [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/lib.rs:335:40 [INFO] [stdout] | [INFO] [stdout] 335 | if !self.expected.is_some() || !self.actual.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.actual.is_none()` [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: useless use of `format!` [INFO] [stdout] --> src/lib.rs:448:30 [INFO] [stdout] | [INFO] [stdout] 448 | .with_actual(format!("equal")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"equal".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:266:31 [INFO] [stdout] | [INFO] [stdout] 266 | pub fn asserting(description: &str) -> SpecDescription { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 266 | pub fn asserting(description: &str) -> SpecDescription<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/lib.rs:343:16 [INFO] [stdout] | [INFO] [stdout] 343 | panic!(format!("{}{}\n\t{}expected: {}\n\t but was: {}{}\n{}", [INFO] [stdout] | ________________^ [INFO] [stdout] 344 | | description, [INFO] [stdout] 345 | | subject_name, [INFO] [stdout] 346 | | TERM_RED, [INFO] [stdout] ... | [INFO] [stdout] 349 | | TERM_RESET, [INFO] [stdout] 350 | | location)) [INFO] [stdout] | |________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 343 ~ panic!("{}{}\n\t{}expected: {}\n\t but was: {}{}\n{}", [INFO] [stdout] 344 | description, [INFO] [stdout] ... [INFO] [stdout] 349 | TERM_RESET, [INFO] [stdout] 350 ~ location) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/lib.rs:360:16 [INFO] [stdout] | [INFO] [stdout] 360 | panic!(format!("{}{}\n\t{}{}{}\n{}", [INFO] [stdout] | ________________^ [INFO] [stdout] 361 | | description, [INFO] [stdout] 362 | | subject_name, [INFO] [stdout] 363 | | TERM_RED, [INFO] [stdout] 364 | | message, [INFO] [stdout] 365 | | TERM_RESET, [INFO] [stdout] 366 | | location)) [INFO] [stdout] | |________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 360 ~ panic!("{}{}\n\t{}{}{}\n{}", [INFO] [stdout] 361 | description, [INFO] [stdout] ... [INFO] [stdout] 365 | TERM_RESET, [INFO] [stdout] 366 ~ location) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:318:13 [INFO] [stdout] | [INFO] [stdout] 318 | let mut assertion = self; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:326:13 [INFO] [stdout] | [INFO] [stdout] 326 | let mut assertion = self; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unit tests in doctest are not executed [INFO] [stdout] --> src/lib.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | //! #[test] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#test_attr_in_doctest [INFO] [stdout] = note: `#[warn(clippy::test_attr_in_doctest)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unit tests in doctest are not executed [INFO] [stdout] --> src/lib.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | //! #[test] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#test_attr_in_doctest [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unit tests in doctest are not executed [INFO] [stdout] --> src/lib.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | //! #[test] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#test_attr_in_doctest [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unit tests in doctest are not executed [INFO] [stdout] --> src/lib.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | //! #[test] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#test_attr_in_doctest [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/boolean.rs:17:32 [INFO] [stdout] | [INFO] [stdout] 17 | .with_expected(format!("bool to be ")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"bool to be ".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] = note: `#[warn(clippy::useless_format)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/boolean.rs:18:30 [INFO] [stdout] | [INFO] [stdout] 18 | .with_actual(format!("")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/boolean.rs:31:32 [INFO] [stdout] | [INFO] [stdout] 31 | .with_expected(format!("bool to be ")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"bool to be ".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/boolean.rs:32:30 [INFO] [stdout] | [INFO] [stdout] 32 | .with_actual(format!("")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/hashmap.rs:55:32 [INFO] [stdout] | [INFO] [stdout] 55 | .with_expected(format!("an empty hashmap")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"an empty hashmap".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/hashmap.rs:111:30 [INFO] [stdout] | [INFO] [stdout] 111 | .with_actual(format!("present in hashmap")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"present in hashmap".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/hashmap.rs:183:30 [INFO] [stdout] | [INFO] [stdout] 183 | .with_actual(format!("present in hashmap")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"present in hashmap".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:237:45 [INFO] [stdout] | [INFO] [stdout] 237 | assert_that(&test_map).contains_key(&mut "hello"); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `"hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:238:45 [INFO] [stdout] | [INFO] [stdout] 238 | assert_that(&test_map).contains_key(&"hello"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:246:45 [INFO] [stdout] | [INFO] [stdout] 246 | assert_that(&test_map).contains_key(&"hello"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:258:45 [INFO] [stdout] | [INFO] [stdout] 258 | assert_that(&test_map).contains_key(&"hello"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:266:45 [INFO] [stdout] | [INFO] [stdout] 266 | assert_that(&test_map).contains_key(&"hello").is_equal_to(&"hi"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:266:67 [INFO] [stdout] | [INFO] [stdout] 266 | assert_that(&test_map).contains_key(&"hello").is_equal_to(&"hi"); [INFO] [stdout] | ^^^^^ help: change this to: `"hi"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:275:53 [INFO] [stdout] | [INFO] [stdout] 275 | assert_that(&test_map).does_not_contain_key(&mut "hey"); [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `"hey"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:276:53 [INFO] [stdout] | [INFO] [stdout] 276 | assert_that(&test_map).does_not_contain_key(&"hey"); [INFO] [stdout] | ^^^^^^ help: change this to: `"hey"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:284:53 [INFO] [stdout] | [INFO] [stdout] 284 | assert_that(&test_map).does_not_contain_key(&"hey"); [INFO] [stdout] | ^^^^^^ help: change this to: `"hey"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:294:53 [INFO] [stdout] | [INFO] [stdout] 294 | assert_that(&test_map).does_not_contain_key(&"hello"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:303:47 [INFO] [stdout] | [INFO] [stdout] 303 | assert_that(&test_map).contains_entry(&mut "hello", &mut "hi"); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `"hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:303:61 [INFO] [stdout] | [INFO] [stdout] 303 | assert_that(&test_map).contains_entry(&mut "hello", &mut "hi"); [INFO] [stdout] | ^^^^^^^^^ help: change this to: `"hi"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:304:56 [INFO] [stdout] | [INFO] [stdout] 304 | assert_that(&test_map).contains_entry("hello", &mut "hi"); [INFO] [stdout] | ^^^^^^^^^ help: change this to: `"hi"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:305:47 [INFO] [stdout] | [INFO] [stdout] 305 | assert_that(&test_map).contains_entry(&"hello", &"hi"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:305:57 [INFO] [stdout] | [INFO] [stdout] 305 | assert_that(&test_map).contains_entry(&"hello", &"hi"); [INFO] [stdout] | ^^^^^ help: change this to: `"hi"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:313:47 [INFO] [stdout] | [INFO] [stdout] 313 | assert_that(&test_map).contains_entry(&"hello", &"hi"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:313:57 [INFO] [stdout] | [INFO] [stdout] 313 | assert_that(&test_map).contains_entry(&"hello", &"hi"); [INFO] [stdout] | ^^^^^ help: change this to: `"hi"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:323:47 [INFO] [stdout] | [INFO] [stdout] 323 | assert_that(&test_map).contains_entry(&"hey", &"hi"); [INFO] [stdout] | ^^^^^^ help: change this to: `"hey"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:323:55 [INFO] [stdout] | [INFO] [stdout] 323 | assert_that(&test_map).contains_entry(&"hey", &"hi"); [INFO] [stdout] | ^^^^^ help: change this to: `"hi"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:333:47 [INFO] [stdout] | [INFO] [stdout] 333 | assert_that(&test_map).contains_entry(&"hi", &"hey"); [INFO] [stdout] | ^^^^^ help: change this to: `"hi"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:333:54 [INFO] [stdout] | [INFO] [stdout] 333 | assert_that(&test_map).contains_entry(&"hi", &"hey"); [INFO] [stdout] | ^^^^^^ help: change this to: `"hey"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:341:55 [INFO] [stdout] | [INFO] [stdout] 341 | assert_that(&test_map).does_not_contain_entry(&"hey", &"hi"); [INFO] [stdout] | ^^^^^^ help: change this to: `"hey"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:341:63 [INFO] [stdout] | [INFO] [stdout] 341 | assert_that(&test_map).does_not_contain_entry(&"hey", &"hi"); [INFO] [stdout] | ^^^^^ help: change this to: `"hi"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:349:55 [INFO] [stdout] | [INFO] [stdout] 349 | assert_that(&test_map).does_not_contain_entry(&"hi", &"hey"); [INFO] [stdout] | ^^^^^ help: change this to: `"hi"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:349:62 [INFO] [stdout] | [INFO] [stdout] 349 | assert_that(&test_map).does_not_contain_entry(&"hi", &"hey"); [INFO] [stdout] | ^^^^^^ help: change this to: `"hey"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:360:55 [INFO] [stdout] | [INFO] [stdout] 360 | assert_that(&test_map).does_not_contain_entry(&"hello", &"hi"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/hashmap.rs:360:65 [INFO] [stdout] | [INFO] [stdout] 360 | assert_that(&test_map).does_not_contain_entry(&"hello", &"hi"); [INFO] [stdout] | ^^^^^ help: change this to: `"hi"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/numeric.rs:136:38 [INFO] [stdout] | [INFO] [stdout] 136 | assert_that(&1).is_less_than(&mut 2); [INFO] [stdout] | ^^^^^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/numeric.rs:137:38 [INFO] [stdout] | [INFO] [stdout] 137 | assert_that(&1).is_less_than(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/numeric.rs:142:38 [INFO] [stdout] | [INFO] [stdout] 142 | assert_that(&1).is_less_than(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/numeric.rs:148:38 [INFO] [stdout] | [INFO] [stdout] 148 | assert_that(&3).is_less_than(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/numeric.rs:154:50 [INFO] [stdout] | [INFO] [stdout] 154 | assert_that(&2).is_less_than_or_equal_to(&mut 2); [INFO] [stdout] | ^^^^^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/numeric.rs:155:50 [INFO] [stdout] | [INFO] [stdout] 155 | assert_that(&2).is_less_than_or_equal_to(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/numeric.rs:160:50 [INFO] [stdout] | [INFO] [stdout] 160 | assert_that(&2).is_less_than_or_equal_to(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/numeric.rs:161:50 [INFO] [stdout] | [INFO] [stdout] 161 | assert_that(&2).is_less_than_or_equal_to(&3); [INFO] [stdout] | ^^ help: change this to: `3` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/numeric.rs:167:50 [INFO] [stdout] | [INFO] [stdout] 167 | assert_that(&3).is_less_than_or_equal_to(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/numeric.rs:173:41 [INFO] [stdout] | [INFO] [stdout] 173 | assert_that(&3).is_greater_than(&mut 2); [INFO] [stdout] | ^^^^^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/numeric.rs:174:41 [INFO] [stdout] | [INFO] [stdout] 174 | assert_that(&3).is_greater_than(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/numeric.rs:179:41 [INFO] [stdout] | [INFO] [stdout] 179 | assert_that(&3).is_greater_than(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/numeric.rs:185:41 [INFO] [stdout] | [INFO] [stdout] 185 | assert_that(&2).is_greater_than(&3); [INFO] [stdout] | ^^ help: change this to: `3` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/numeric.rs:191:53 [INFO] [stdout] | [INFO] [stdout] 191 | assert_that(&3).is_greater_than_or_equal_to(&mut 3); [INFO] [stdout] | ^^^^^^ help: change this to: `3` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/numeric.rs:192:53 [INFO] [stdout] | [INFO] [stdout] 192 | assert_that(&3).is_greater_than_or_equal_to(&3); [INFO] [stdout] | ^^ help: change this to: `3` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/numeric.rs:197:53 [INFO] [stdout] | [INFO] [stdout] 197 | assert_that(&3).is_greater_than_or_equal_to(&3); [INFO] [stdout] | ^^ help: change this to: `3` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/numeric.rs:198:53 [INFO] [stdout] | [INFO] [stdout] 198 | assert_that(&3).is_greater_than_or_equal_to(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/numeric.rs:204:53 [INFO] [stdout] | [INFO] [stdout] 204 | assert_that(&2).is_greater_than_or_equal_to(&3); [INFO] [stdout] | ^^ help: change this to: `3` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/numeric.rs:210:42 [INFO] [stdout] | [INFO] [stdout] 210 | assert_that(&2.0f64).is_close_to(&mut 2.0f64, 0.01f64); [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `2.0f64` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/numeric.rs:211:42 [INFO] [stdout] | [INFO] [stdout] 211 | assert_that(&2.0f64).is_close_to(&2.0f64, 0.01f64); [INFO] [stdout] | ^^^^^^^ help: change this to: `2.0f64` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/option.rs:45:34 [INFO] [stdout] | [INFO] [stdout] 45 | .with_actual(format!("option[none]")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"option[none]".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/option.rs:74:36 [INFO] [stdout] | [INFO] [stdout] 74 | .with_expected(format!("option[some]")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"option[some]".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/option.rs:75:34 [INFO] [stdout] | [INFO] [stdout] 75 | .with_actual(format!("option[none]")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"option[none]".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/option.rs:93:36 [INFO] [stdout] | [INFO] [stdout] 93 | .with_expected(format!("option[none]")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"option[none]".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/option.rs:122:52 [INFO] [stdout] | [INFO] [stdout] 122 | assert_that(&option).is_some().is_equal_to(&"Hello"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"Hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/option.rs:129:45 [INFO] [stdout] | [INFO] [stdout] 129 | assert_that(&option).contains_value(&mut "Hello"); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `"Hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/option.rs:130:45 [INFO] [stdout] | [INFO] [stdout] 130 | assert_that(&option).contains_value(&"Hello"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"Hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/option.rs:136:45 [INFO] [stdout] | [INFO] [stdout] 136 | assert_that(&option).contains_value(&"Hello"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"Hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/option.rs:143:45 [INFO] [stdout] | [INFO] [stdout] 143 | assert_that(&option).contains_value(&"Hi"); [INFO] [stdout] | ^^^^^ help: change this to: `"Hi"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/option.rs:150:45 [INFO] [stdout] | [INFO] [stdout] 150 | assert_that(&option).contains_value(&"Hello"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"Hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/path.rs:113:26 [INFO] [stdout] | [INFO] [stdout] 113 | .with_actual(format!("a non-existent Path")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"a non-existent Path".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/path.rs:122:26 [INFO] [stdout] | [INFO] [stdout] 122 | .with_actual(format!("a resolvable Path")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"a resolvable Path".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/path.rs:131:26 [INFO] [stdout] | [INFO] [stdout] 131 | .with_actual(format!("not a resolvable file")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"not a resolvable file".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/path.rs:140:26 [INFO] [stdout] | [INFO] [stdout] 140 | .with_actual(format!("not a resolvable directory")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"not a resolvable directory".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/path.rs:152:67 [INFO] [stdout] | [INFO] [stdout] 152 | fail_from_file_name(spec, expected_file_name, format!("an invalid UTF-8 file name")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"an invalid UTF-8 file name".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/path.rs:244:54 [INFO] [stdout] | [INFO] [stdout] 244 | assert_that(&Path::new(&path)).has_file_name(&mut "Cargo.toml"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: change this to: `"Cargo.toml"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/path.rs:245:54 [INFO] [stdout] | [INFO] [stdout] 245 | assert_that(&Path::new(&path)).has_file_name(&"Cargo.toml"); [INFO] [stdout] | ^^^^^^^^^^^^^ help: change this to: `"Cargo.toml"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/path.rs:251:54 [INFO] [stdout] | [INFO] [stdout] 251 | assert_that(&Path::new(&path)).has_file_name(&"Cargo.toml"); [INFO] [stdout] | ^^^^^^^^^^^^^ help: change this to: `"Cargo.toml"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/path.rs:259:54 [INFO] [stdout] | [INFO] [stdout] 259 | assert_that(&Path::new(&path)).has_file_name(&"pom.xml"); [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `"pom.xml"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/path.rs:267:54 [INFO] [stdout] | [INFO] [stdout] 267 | assert_that(&Path::new(&path)).has_file_name(&"pom.xml"); [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `"pom.xml"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/path.rs:326:58 [INFO] [stdout] | [INFO] [stdout] 326 | assert_that(&PathBuf::from(&path)).has_file_name(&mut "Cargo.toml"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: change this to: `"Cargo.toml"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/path.rs:327:58 [INFO] [stdout] | [INFO] [stdout] 327 | assert_that(&PathBuf::from(&path)).has_file_name(&"Cargo.toml"); [INFO] [stdout] | ^^^^^^^^^^^^^ help: change this to: `"Cargo.toml"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/path.rs:333:58 [INFO] [stdout] | [INFO] [stdout] 333 | assert_that(&PathBuf::from(&path)).has_file_name(&"Cargo.toml"); [INFO] [stdout] | ^^^^^^^^^^^^^ help: change this to: `"Cargo.toml"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/path.rs:341:58 [INFO] [stdout] | [INFO] [stdout] 341 | assert_that(&PathBuf::from(&path)).has_file_name(&"pom.xml"); [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `"pom.xml"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/path.rs:349:58 [INFO] [stdout] | [INFO] [stdout] 349 | assert_that(&PathBuf::from(&path)).has_file_name(&"pom.xml"); [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `"pom.xml"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/result.rs:112:36 [INFO] [stdout] | [INFO] [stdout] 112 | .with_expected(format!("result[ok]")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"result[ok]".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/result.rs:140:36 [INFO] [stdout] | [INFO] [stdout] 140 | .with_expected(format!("result[error]")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"result[error]".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/result.rs:171:50 [INFO] [stdout] | [INFO] [stdout] 171 | assert_that(&result).is_ok().is_equal_to(&"Hello"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"Hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/result.rs:190:51 [INFO] [stdout] | [INFO] [stdout] 190 | assert_that(&result).is_err().is_equal_to(&"Hello"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"Hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/result.rs:197:47 [INFO] [stdout] | [INFO] [stdout] 197 | assert_that(&result).is_ok_containing(&mut "Hello"); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `"Hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/result.rs:198:47 [INFO] [stdout] | [INFO] [stdout] 198 | assert_that(&result).is_ok_containing(&"Hello"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"Hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/result.rs:204:47 [INFO] [stdout] | [INFO] [stdout] 204 | assert_that(&result).is_ok_containing(&"Hello"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"Hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/result.rs:212:47 [INFO] [stdout] | [INFO] [stdout] 212 | assert_that(&result).is_ok_containing(&"Hello"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"Hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/result.rs:220:47 [INFO] [stdout] | [INFO] [stdout] 220 | assert_that(&result).is_ok_containing(&"Hi"); [INFO] [stdout] | ^^^^^ help: change this to: `"Hi"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/result.rs:228:47 [INFO] [stdout] | [INFO] [stdout] 228 | assert_that(&result).is_ok_containing(&"Hi"); [INFO] [stdout] | ^^^^^ help: change this to: `"Hi"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/result.rs:235:48 [INFO] [stdout] | [INFO] [stdout] 235 | assert_that(&result).is_err_containing(&mut "Oh no"); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `"Oh no"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/result.rs:236:48 [INFO] [stdout] | [INFO] [stdout] 236 | assert_that(&result).is_err_containing(&"Oh no"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"Oh no"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/result.rs:242:48 [INFO] [stdout] | [INFO] [stdout] 242 | assert_that(&result).is_err_containing(&"Oh no"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"Oh no"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/result.rs:250:48 [INFO] [stdout] | [INFO] [stdout] 250 | assert_that(&result).is_err_containing(&"Oh no"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"Oh no"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/result.rs:258:48 [INFO] [stdout] | [INFO] [stdout] 258 | assert_that(&result).is_err_containing(&"Oh no"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"Oh no"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/result.rs:266:48 [INFO] [stdout] | [INFO] [stdout] 266 | assert_that(&result).is_err_containing(&"Oh no"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"Oh no"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:117:41 [INFO] [stdout] | [INFO] [stdout] 117 | assert_that(&value).starts_with(&mut "H"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"H"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:118:41 [INFO] [stdout] | [INFO] [stdout] 118 | assert_that(&value).starts_with(&"H"); [INFO] [stdout] | ^^^^ help: change this to: `"H"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:121:39 [INFO] [stdout] | [INFO] [stdout] 121 | assert_that(&value).ends_with(&mut "o"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"o"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:122:39 [INFO] [stdout] | [INFO] [stdout] 122 | assert_that(&value).ends_with(&"o"); [INFO] [stdout] | ^^^^ help: change this to: `"o"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:125:38 [INFO] [stdout] | [INFO] [stdout] 125 | assert_that(&value).contains(&mut "l"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"l"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:126:38 [INFO] [stdout] | [INFO] [stdout] 126 | assert_that(&value).contains(&"l"); [INFO] [stdout] | ^^^^ help: change this to: `"l"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:132:41 [INFO] [stdout] | [INFO] [stdout] 132 | assert_that(&value).starts_with(&"H"); [INFO] [stdout] | ^^^^ help: change this to: `"H"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:140:41 [INFO] [stdout] | [INFO] [stdout] 140 | assert_that(&value).starts_with(&"A"); [INFO] [stdout] | ^^^^ help: change this to: `"A"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:146:39 [INFO] [stdout] | [INFO] [stdout] 146 | assert_that(&value).ends_with(&"o"); [INFO] [stdout] | ^^^^ help: change this to: `"o"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:153:39 [INFO] [stdout] | [INFO] [stdout] 153 | assert_that(&value).ends_with(&"A"); [INFO] [stdout] | ^^^^ help: change this to: `"A"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:159:38 [INFO] [stdout] | [INFO] [stdout] 159 | assert_that(&value).contains(&"l"); [INFO] [stdout] | ^^^^ help: change this to: `"l"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:166:38 [INFO] [stdout] | [INFO] [stdout] 166 | assert_that(&value).contains(&"A"); [INFO] [stdout] | ^^^^ help: change this to: `"A"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:173:41 [INFO] [stdout] | [INFO] [stdout] 173 | assert_that(&value).starts_with(&mut "H"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"H"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:174:41 [INFO] [stdout] | [INFO] [stdout] 174 | assert_that(&value).starts_with(&"H"); [INFO] [stdout] | ^^^^ help: change this to: `"H"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:177:39 [INFO] [stdout] | [INFO] [stdout] 177 | assert_that(&value).ends_with(&mut "o"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"o"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:178:39 [INFO] [stdout] | [INFO] [stdout] 178 | assert_that(&value).ends_with(&"o"); [INFO] [stdout] | ^^^^ help: change this to: `"o"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:181:38 [INFO] [stdout] | [INFO] [stdout] 181 | assert_that(&value).contains(&mut "l"); [INFO] [stdout] | ^^^^^^^^ help: change this to: `"l"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:182:38 [INFO] [stdout] | [INFO] [stdout] 182 | assert_that(&value).contains(&"l"); [INFO] [stdout] | ^^^^ help: change this to: `"l"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:188:41 [INFO] [stdout] | [INFO] [stdout] 188 | assert_that(&value).starts_with(&"H"); [INFO] [stdout] | ^^^^ help: change this to: `"H"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:196:41 [INFO] [stdout] | [INFO] [stdout] 196 | assert_that(&value).starts_with(&"A"); [INFO] [stdout] | ^^^^ help: change this to: `"A"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:202:39 [INFO] [stdout] | [INFO] [stdout] 202 | assert_that(&value).ends_with(&"o"); [INFO] [stdout] | ^^^^ help: change this to: `"o"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:209:39 [INFO] [stdout] | [INFO] [stdout] 209 | assert_that(&value).ends_with(&"A"); [INFO] [stdout] | ^^^^ help: change this to: `"A"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:215:38 [INFO] [stdout] | [INFO] [stdout] 215 | assert_that(&value).contains(&"l"); [INFO] [stdout] | ^^^^ help: change this to: `"l"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/string.rs:222:38 [INFO] [stdout] | [INFO] [stdout] 222 | assert_that(&value).contains(&"A"); [INFO] [stdout] | ^^^^ help: change this to: `"A"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/vec.rs:36:32 [INFO] [stdout] | [INFO] [stdout] 36 | .with_expected(format!("an empty vec")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"an empty vec".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/iter.rs:233:39 [INFO] [stdout] | [INFO] [stdout] 233 | if borrowed_expected_value.eq(&x) { [INFO] [stdout] | ^^ help: change this to: `x` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/iter.rs:370:41 [INFO] [stdout] | [INFO] [stdout] 370 | assert_that(&test_vec).contains(&mut 2); [INFO] [stdout] | ^^^^^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/iter.rs:371:41 [INFO] [stdout] | [INFO] [stdout] 371 | assert_that(&test_vec).contains(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/iter.rs:377:41 [INFO] [stdout] | [INFO] [stdout] 377 | assert_that(&test_vec).contains(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/iter.rs:384:41 [INFO] [stdout] | [INFO] [stdout] 384 | assert_that(&test_vec).contains(&5); [INFO] [stdout] | ^^ help: change this to: `5` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/iter.rs:390:49 [INFO] [stdout] | [INFO] [stdout] 390 | assert_that(&test_vec).does_not_contain(&4); [INFO] [stdout] | ^^ help: change this to: `4` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/iter.rs:397:49 [INFO] [stdout] | [INFO] [stdout] 397 | assert_that(&test_vec).does_not_contain(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/iter.rs:407:47 [INFO] [stdout] | [INFO] [stdout] 407 | assert_that(&test_into_iter).contains(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/iter.rs:418:47 [INFO] [stdout] | [INFO] [stdout] 418 | assert_that(&test_into_iter).contains(&5); [INFO] [stdout] | ^^ help: change this to: `5` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/iter.rs:487:48 [INFO] [stdout] | [INFO] [stdout] 487 | assert_that(&test_vec.iter()).contains(&mut 2); [INFO] [stdout] | ^^^^^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/iter.rs:488:48 [INFO] [stdout] | [INFO] [stdout] 488 | assert_that(&test_vec.iter()).contains(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/iter.rs:494:48 [INFO] [stdout] | [INFO] [stdout] 494 | assert_that(&test_vec.iter()).contains(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/iter.rs:501:48 [INFO] [stdout] | [INFO] [stdout] 501 | assert_that(&test_vec.iter()).contains(&5); [INFO] [stdout] | ^^ help: change this to: `5` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/iter.rs:507:56 [INFO] [stdout] | [INFO] [stdout] 507 | assert_that(&test_vec.iter()).does_not_contain(&4); [INFO] [stdout] | ^^ help: change this to: `4` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/iter.rs:514:56 [INFO] [stdout] | [INFO] [stdout] 514 | assert_that(&test_vec.iter()).does_not_contain(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match expression looks like `matches!` macro [INFO] [stdout] --> src/iter.rs:543:13 [INFO] [stdout] | [INFO] [stdout] 543 | / match val { [INFO] [stdout] 544 | | &TestEnum::Good => true, [INFO] [stdout] 545 | | _ => false, [INFO] [stdout] 546 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro [INFO] [stdout] = note: `#[warn(clippy::match_like_matches_macro)]` on by default [INFO] [stdout] help: use `matches!` directly [INFO] [stdout] | [INFO] [stdout] 543 - match val { [INFO] [stdout] 544 - &TestEnum::Good => true, [INFO] [stdout] 545 - _ => false, [INFO] [stdout] 546 - } [INFO] [stdout] 543 + matches!(val, &TestEnum::Good) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match expression looks like `matches!` macro [INFO] [stdout] --> src/iter.rs:559:13 [INFO] [stdout] | [INFO] [stdout] 559 | / match val { [INFO] [stdout] 560 | | &TestEnum::Good => true, [INFO] [stdout] 561 | | _ => false, [INFO] [stdout] 562 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro [INFO] [stdout] help: use `matches!` directly [INFO] [stdout] | [INFO] [stdout] 559 - match val { [INFO] [stdout] 560 - &TestEnum::Good => true, [INFO] [stdout] 561 - _ => false, [INFO] [stdout] 562 - } [INFO] [stdout] 559 + matches!(val, &TestEnum::Good) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:335:12 [INFO] [stdout] | [INFO] [stdout] 335 | if !self.expected.is_some() || !self.actual.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.expected.is_none()` [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/lib.rs:335:40 [INFO] [stdout] | [INFO] [stdout] 335 | if !self.expected.is_some() || !self.actual.is_some() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.actual.is_none()` [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: useless use of `format!` [INFO] [stdout] --> src/lib.rs:448:30 [INFO] [stdout] | [INFO] [stdout] 448 | .with_actual(format!("equal")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"equal".to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/lib.rs:524:17 [INFO] [stdout] | [INFO] [stdout] 524 | return (self.x1 - self.x0).abs(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 524 - return (self.x1 - self.x0).abs(); [INFO] [stdout] 524 + (self.x1 - self.x0).abs() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/lib.rs:536:19 [INFO] [stdout] | [INFO] [stdout] 536 | asserting(&"test condition").that(&1).is_equal_to(&2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: change this to: `"test condition"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/lib.rs:536:59 [INFO] [stdout] | [INFO] [stdout] 536 | asserting(&"test condition").that(&1).is_equal_to(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/lib.rs:543:19 [INFO] [stdout] | [INFO] [stdout] 543 | asserting(&"closure").that(&value).matches(|val| val.eq(&"Hi")); [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `"closure"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/lib.rs:550:38 [INFO] [stdout] | [INFO] [stdout] 550 | assert_that!(&1).is_equal_to(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/lib.rs:565:60 [INFO] [stdout] | [INFO] [stdout] 565 | asserting!(&"test condition").that(&1).is_equal_to(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/lib.rs:580:32 [INFO] [stdout] | [INFO] [stdout] 580 | assert_that!(&1).named(&"number one").is_equal_to(&2); [INFO] [stdout] | ^^^^^^^^^^^^^ help: change this to: `"number one"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/lib.rs:580:59 [INFO] [stdout] | [INFO] [stdout] 580 | assert_that!(&1).named(&"number one").is_equal_to(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/lib.rs:588:36 [INFO] [stdout] | [INFO] [stdout] 588 | assert_that!(&value).named(&"a word").matches(|val| val.eq(&"Hi")); [INFO] [stdout] | ^^^^^^^^^ help: change this to: `"a word"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/lib.rs:594:37 [INFO] [stdout] | [INFO] [stdout] 594 | assert_that(&1).is_equal_to(&mut 1); [INFO] [stdout] | ^^^^^^ help: change this to: `1` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/lib.rs:595:37 [INFO] [stdout] | [INFO] [stdout] 595 | assert_that(&1).is_equal_to(&1); [INFO] [stdout] | ^^ help: change this to: `1` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/lib.rs:600:37 [INFO] [stdout] | [INFO] [stdout] 600 | assert_that(&1).is_equal_to(&1); [INFO] [stdout] | ^^ help: change this to: `1` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/lib.rs:606:37 [INFO] [stdout] | [INFO] [stdout] 606 | assert_that(&1).is_equal_to(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/lib.rs:612:41 [INFO] [stdout] | [INFO] [stdout] 612 | assert_that(&1).is_not_equal_to(&mut 2); [INFO] [stdout] | ^^^^^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/lib.rs:613:41 [INFO] [stdout] | [INFO] [stdout] 613 | assert_that(&1).is_not_equal_to(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/lib.rs:618:41 [INFO] [stdout] | [INFO] [stdout] 618 | assert_that(&1).is_not_equal_to(&2); [INFO] [stdout] | ^^ help: change this to: `2` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/lib.rs:624:41 [INFO] [stdout] | [INFO] [stdout] 624 | assert_that(&1).is_not_equal_to(&1); [INFO] [stdout] | ^^ help: change this to: `1` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/lib.rs:643:69 [INFO] [stdout] | [INFO] [stdout] 643 | assert_that(&test_struct).map(|val| &val.value).is_equal_to(&5); [INFO] [stdout] | ^^ help: change this to: `5` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/iter.rs:445:24 [INFO] [stdout] | [INFO] [stdout] 445 | let test_vec = vec![1, 2, 3]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[1, 2, 3]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/iter.rs:453:24 [INFO] [stdout] | [INFO] [stdout] 453 | let test_vec = vec![1, 2, 3]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[1, 2, 3]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/iter.rs:461:24 [INFO] [stdout] | [INFO] [stdout] 461 | let test_vec = vec![1, 2, 3]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[1, 2, 3]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/iter.rs:467:28 [INFO] [stdout] | [INFO] [stdout] 467 | let expected_vec = vec![1, 2, 3]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[1, 2, 3]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/iter.rs:477:28 [INFO] [stdout] | [INFO] [stdout] 477 | let expected_vec = vec![1, 2, 4]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[1, 2, 4]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/iter.rs:485:24 [INFO] [stdout] | [INFO] [stdout] 485 | let test_vec = vec![1, 2, 3]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[1, 2, 3]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/iter.rs:493:24 [INFO] [stdout] | [INFO] [stdout] 493 | let test_vec = vec![1, 2, 3]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[1, 2, 3]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/iter.rs:500:24 [INFO] [stdout] | [INFO] [stdout] 500 | let test_vec = vec![1, 2, 3]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[1, 2, 3]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/iter.rs:506:24 [INFO] [stdout] | [INFO] [stdout] 506 | let test_vec = vec![1, 2, 3]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[1, 2, 3]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/iter.rs:513:24 [INFO] [stdout] | [INFO] [stdout] 513 | let test_vec = vec![1, 2, 3]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[1, 2, 3]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/iter.rs:519:28 [INFO] [stdout] | [INFO] [stdout] 519 | let expected_vec = vec![1, 2, 3]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[1, 2, 3]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/iter.rs:520:24 [INFO] [stdout] | [INFO] [stdout] 520 | let test_vec = vec![1, 2, 3]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[1, 2, 3]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/iter.rs:529:28 [INFO] [stdout] | [INFO] [stdout] 529 | let expected_vec = vec![1, 2, 4]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[1, 2, 4]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/iter.rs:530:24 [INFO] [stdout] | [INFO] [stdout] 530 | let test_vec = vec![1, 2, 3]; [INFO] [stdout] | ^^^^^^^^^^^^^ help: you can use an array directly: `[1, 2, 3]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib.rs:266:31 [INFO] [stdout] | [INFO] [stdout] 266 | pub fn asserting(description: &str) -> SpecDescription { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 266 | pub fn asserting(description: &str) -> SpecDescription<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/lib.rs:343:16 [INFO] [stdout] | [INFO] [stdout] 343 | panic!(format!("{}{}\n\t{}expected: {}\n\t but was: {}{}\n{}", [INFO] [stdout] | ________________^ [INFO] [stdout] 344 | | description, [INFO] [stdout] 345 | | subject_name, [INFO] [stdout] 346 | | TERM_RED, [INFO] [stdout] ... | [INFO] [stdout] 349 | | TERM_RESET, [INFO] [stdout] 350 | | location)) [INFO] [stdout] | |________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 343 ~ panic!("{}{}\n\t{}expected: {}\n\t but was: {}{}\n{}", [INFO] [stdout] 344 | description, [INFO] [stdout] ... [INFO] [stdout] 349 | TERM_RESET, [INFO] [stdout] 350 ~ location) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/lib.rs:360:16 [INFO] [stdout] | [INFO] [stdout] 360 | panic!(format!("{}{}\n\t{}{}{}\n{}", [INFO] [stdout] | ________________^ [INFO] [stdout] 361 | | description, [INFO] [stdout] 362 | | subject_name, [INFO] [stdout] 363 | | TERM_RED, [INFO] [stdout] 364 | | message, [INFO] [stdout] 365 | | TERM_RESET, [INFO] [stdout] 366 | | location)) [INFO] [stdout] | |________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 360 ~ panic!("{}{}\n\t{}{}{}\n{}", [INFO] [stdout] 361 | description, [INFO] [stdout] ... [INFO] [stdout] 365 | TERM_RESET, [INFO] [stdout] 366 ~ location) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.29s [INFO] running `Command { std: "docker" "inspect" "1c397a677907c83eccb437c995c729234a313c13a90fa2dc4dc4cbd70db611a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c397a677907c83eccb437c995c729234a313c13a90fa2dc4dc4cbd70db611a2", kill_on_drop: false }` [INFO] [stdout] 1c397a677907c83eccb437c995c729234a313c13a90fa2dc4dc4cbd70db611a2