[INFO] fetching crate rustils 0.1.23... [INFO] linting rustils-0.1.23 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate rustils 0.1.23 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate rustils 0.1.23 [INFO] finished tweaking crates.io crate rustils 0.1.23 [INFO] tweaked toml for crates.io crate rustils 0.1.23 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rustils 0.1.23 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rustils 0.1.23 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded aho-corasick v0.7.8 [INFO] [stderr] Downloaded regex-syntax v0.6.14 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f6d4070f85b92d08133f744364ee6c4b11c56dbe290ae9a4f6f7cd47d17258e2 [INFO] running `Command { std: "docker" "start" "-a" "f6d4070f85b92d08133f744364ee6c4b11c56dbe290ae9a4f6f7cd47d17258e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f6d4070f85b92d08133f744364ee6c4b11c56dbe290ae9a4f6f7cd47d17258e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6d4070f85b92d08133f744364ee6c4b11c56dbe290ae9a4f6f7cd47d17258e2", kill_on_drop: false }` [INFO] [stdout] f6d4070f85b92d08133f744364ee6c4b11c56dbe290ae9a4f6f7cd47d17258e2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aad86b073a917084930dd201020aff80b278667216ec59b04455107243b820ea [INFO] running `Command { std: "docker" "start" "-a" "aad86b073a917084930dd201020aff80b278667216ec59b04455107243b820ea", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] [stderr] Compiling libc v0.2.67 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Checking regex-syntax v0.6.14 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking aho-corasick v0.7.8 [INFO] [stderr] Checking c2-chacha v0.2.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking regex v1.3.4 [INFO] [stderr] Checking rustils v0.1.23 (/opt/rustwide/workdir) [INFO] [stdout] warning: transmute used without annotations [INFO] [stdout] --> src/impls/parse/string_impl.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | let ret = transmute(&self as &str); [INFO] [stdout] | ^^^^^^^^^ help: consider adding missing annotations: `transmute::<&str, &str>` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_transmute_annotations [INFO] [stdout] = note: `#[warn(clippy::missing_transmute_annotations)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you don't need to add `&` to all patterns [INFO] [stdout] --> src/impls/error_impl.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | / match self{ [INFO] [stdout] 9 | | &ParseError::InvalidNumber(_) => "Invalid Number", [INFO] [stdout] 10 | | &ParseError::InvalidString(_) => "Invalid String" [INFO] [stdout] 11 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_ref_pats [INFO] [stdout] = note: `#[warn(clippy::match_ref_pats)]` on by default [INFO] [stdout] help: instead of prefixing all patterns with `&`, you can dereference the expression [INFO] [stdout] | [INFO] [stdout] 8 ~ match *self{ [INFO] [stdout] 9 ~ ParseError::InvalidNumber(_) => "Invalid Number", [INFO] [stdout] 10 ~ ParseError::InvalidString(_) => "Invalid String" [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you don't need to add `&` to all patterns [INFO] [stdout] --> src/impls/error_impl.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | / match self{ [INFO] [stdout] 20 | | &ParseError::InvalidNumber(ref i) => write!(f, "Invalid Number: {}", i), [INFO] [stdout] 21 | | &ParseError::InvalidString(ref i) => write!(f, "Invalid String: {}", i) [INFO] [stdout] 22 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_ref_pats [INFO] [stdout] help: instead of prefixing all patterns with `&`, you can dereference the expression [INFO] [stdout] | [INFO] [stdout] 19 ~ match *self{ [INFO] [stdout] 20 ~ ParseError::InvalidNumber(ref i) => write!(f, "Invalid Number: {}", i), [INFO] [stdout] 21 ~ ParseError::InvalidString(ref i) => write!(f, "Invalid String: {}", i) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a tuple pattern where every element takes a reference [INFO] [stdout] --> src/impls/error_impl.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | &ParseError::InvalidNumber(ref i) => write!(f, "Invalid Number: {}", i), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference [INFO] [stdout] = note: `#[warn(clippy::needless_borrowed_reference)]` on by default [INFO] [stdout] help: try removing the `&` and `ref` parts [INFO] [stdout] | [INFO] [stdout] 20 - &ParseError::InvalidNumber(ref i) => write!(f, "Invalid Number: {}", i), [INFO] [stdout] 20 + ParseError::InvalidNumber(i) => write!(f, "Invalid Number: {}", i), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a tuple pattern where every element takes a reference [INFO] [stdout] --> src/impls/error_impl.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | &ParseError::InvalidString(ref i) => write!(f, "Invalid String: {}", i) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference [INFO] [stdout] help: try removing the `&` and `ref` parts [INFO] [stdout] | [INFO] [stdout] 21 - &ParseError::InvalidString(ref i) => write!(f, "Invalid String: {}", i) [INFO] [stdout] 21 + ParseError::InvalidString(i) => write!(f, "Invalid String: {}", i) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: importing a legacy numeric constant [INFO] [stdout] --> src/array.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::usize::MAX; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove this import and use the associated constant `usize::MAX` from the primitive type instead [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/array.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | if a == b { return true } [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] 28 - if a == b { return true } [INFO] [stdout] 28 + if a == b { true } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/array.rs:30:49 [INFO] [stdout] | [INFO] [stdout] 30 | if a > ary.len()-1 || b > ary.len()-1 { return false } [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 30 - if a > ary.len()-1 || b > ary.len()-1 { return false } [INFO] [stdout] 30 + if a > ary.len()-1 || b > ary.len()-1 { false } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this looks like you are swapping elements of `ary` manually [INFO] [stdout] --> src/array.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | / let temp = ary[a]; [INFO] [stdout] 33 | | ary[a] = ary[b]; [INFO] [stdout] 34 | | ary[b] = temp; [INFO] [stdout] | |__________________________^ help: try: `ary.swap(a, b);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_swap [INFO] [stdout] = note: `#[warn(clippy::manual_swap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is used to index `ary` [INFO] [stdout] --> src/array.rs:43:14 [INFO] [stdout] | [INFO] [stdout] 43 | for i in 0..ary.len() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 43 - for i in 0..ary.len() { [INFO] [stdout] 43 + for (i, ) in ary.iter().enumerate() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/array.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | MAX [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 49 | usize::MAX [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/array.rs:59:11 [INFO] [stdout] | [INFO] [stdout] 59 | while !next.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `next.is_some()` [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: the loop variable `i` is only used to index `ary` [INFO] [stdout] --> src/array.rs:68:14 [INFO] [stdout] | [INFO] [stdout] 68 | for i in 0..ary.len() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 68 - for i in 0..ary.len() { [INFO] [stdout] 68 + for in &mut ary { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/array.rs:76:16 [INFO] [stdout] | [INFO] [stdout] 76 | unique_adv(&ary).0 [INFO] [stdout] | ^^^^ help: change this to: `ary` [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 loop variable `i` is only used to index `ary` [INFO] [stdout] --> src/array.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 85 | 'outer: for i in 0..ary.len() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 85 - 'outer: for i in 0..ary.len() { [INFO] [stdout] 85 + 'outer: for in &ary { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `j` is only used to index `res` [INFO] [stdout] --> src/array.rs:87:18 [INFO] [stdout] | [INFO] [stdout] 87 | for j in 0..res.len() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 87 - for j in 0..res.len() { [INFO] [stdout] 87 + for in &res { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | if a == 0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `a != 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] = note: `#[warn(clippy::needless_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | if a == 0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `a != 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | if a == 0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `a != 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 122 | if a == 0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `a != 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 151 | if a == 0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `a != 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | if a == 0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `a != 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:209:5 [INFO] [stdout] | [INFO] [stdout] 209 | if a.is_nan() || a == 0.0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `!(a.is_nan() || a == 0.0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:238:5 [INFO] [stdout] | [INFO] [stdout] 238 | if a == 0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `a != 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:267:5 [INFO] [stdout] | [INFO] [stdout] 267 | if a == 0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `a != 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:296:5 [INFO] [stdout] | [INFO] [stdout] 296 | if a.is_nan() || a == 0.0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `!(a.is_nan() || a == 0.0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:325:5 [INFO] [stdout] | [INFO] [stdout] 325 | if a == 0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `a != 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:354:5 [INFO] [stdout] | [INFO] [stdout] 354 | if a == 0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `a != 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:91:15 [INFO] [stdout] | [INFO] [stdout] 91 | let max = i8::max_value() as u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 91 - let max = i8::max_value() as u8; [INFO] [stdout] 91 + let max = i8::MAX as u8; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:149:15 [INFO] [stdout] | [INFO] [stdout] 149 | let min = i8::min_value() as i16; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 149 - let min = i8::min_value() as i16; [INFO] [stdout] 149 + let min = i8::MIN as i16; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:150:15 [INFO] [stdout] | [INFO] [stdout] 150 | let max = i8::max_value() as i16; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 150 - let max = i8::max_value() as i16; [INFO] [stdout] 150 + let max = i8::MAX as i16; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:208:15 [INFO] [stdout] | [INFO] [stdout] 208 | let max = i8::max_value() as u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 208 - let max = i8::max_value() as u16; [INFO] [stdout] 208 + let max = i8::MAX as u16; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:266:15 [INFO] [stdout] | [INFO] [stdout] 266 | let min = i8::min_value() as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 266 - let min = i8::min_value() as i32; [INFO] [stdout] 266 + let min = i8::MIN as i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:267:15 [INFO] [stdout] | [INFO] [stdout] 267 | let max = i8::max_value() as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 267 - let max = i8::max_value() as i32; [INFO] [stdout] 267 + let max = i8::MAX as i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:325:15 [INFO] [stdout] | [INFO] [stdout] 325 | let max = i8::max_value() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 325 - let max = i8::max_value() as u32; [INFO] [stdout] 325 + let max = i8::MAX as u32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:440:15 [INFO] [stdout] | [INFO] [stdout] 440 | let min = i8::min_value() as f32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 440 - let min = i8::min_value() as f32; [INFO] [stdout] 440 + let min = i8::MIN as f32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:441:15 [INFO] [stdout] | [INFO] [stdout] 441 | let max = i8::max_value() as f32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 441 - let max = i8::max_value() as f32; [INFO] [stdout] 441 + let max = i8::MAX as f32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:503:15 [INFO] [stdout] | [INFO] [stdout] 503 | let min = i8::min_value() as i64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 503 - let min = i8::min_value() as i64; [INFO] [stdout] 503 + let min = i8::MIN as i64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:504:15 [INFO] [stdout] | [INFO] [stdout] 504 | let max = i8::max_value() as i64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 504 - let max = i8::max_value() as i64; [INFO] [stdout] 504 + let max = i8::MAX as i64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:562:15 [INFO] [stdout] | [INFO] [stdout] 562 | let max = i8::max_value() as u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 562 - let max = i8::max_value() as u64; [INFO] [stdout] 562 + let max = i8::MAX as u64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:677:15 [INFO] [stdout] | [INFO] [stdout] 677 | let min = i8::min_value() as f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 677 - let min = i8::min_value() as f64; [INFO] [stdout] 677 + let min = i8::MIN as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:678:15 [INFO] [stdout] | [INFO] [stdout] 678 | let max = i8::max_value() as f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 678 - let max = i8::max_value() as f64; [INFO] [stdout] 678 + let max = i8::MAX as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:740:15 [INFO] [stdout] | [INFO] [stdout] 740 | let min = i8::min_value() as isize; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 740 - let min = i8::min_value() as isize; [INFO] [stdout] 740 + let min = i8::MIN as isize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:741:15 [INFO] [stdout] | [INFO] [stdout] 741 | let max = i8::max_value() as isize; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 741 - let max = i8::max_value() as isize; [INFO] [stdout] 741 + let max = i8::MAX as isize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:800:15 [INFO] [stdout] | [INFO] [stdout] 800 | let max = i8::max_value() as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 800 - let max = i8::max_value() as usize; [INFO] [stdout] 800 + let max = i8::MAX as usize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/int.rs:91:15 [INFO] [stdout] | [INFO] [stdout] 91 | let max = i32::max_value() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 91 - let max = i32::max_value() as u32; [INFO] [stdout] 91 + let max = i32::MAX as u32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/int.rs:170:15 [INFO] [stdout] | [INFO] [stdout] 170 | let min = i32::min_value() as i64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 170 - let min = i32::min_value() as i64; [INFO] [stdout] 170 + let min = i32::MIN as i64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/int.rs:171:15 [INFO] [stdout] | [INFO] [stdout] 171 | let max = i32::max_value() as i64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 171 - let max = i32::max_value() as i64; [INFO] [stdout] 171 + let max = i32::MAX as i64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/int.rs:207:15 [INFO] [stdout] | [INFO] [stdout] 207 | let max = i32::max_value() as u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 207 - let max = i32::max_value() as u64; [INFO] [stdout] 207 + let max = i32::MAX as u64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/int.rs:259:15 [INFO] [stdout] | [INFO] [stdout] 259 | let min = i32::min_value() as f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 259 - let min = i32::min_value() as f64; [INFO] [stdout] 259 + let min = i32::MIN as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/int.rs:260:15 [INFO] [stdout] | [INFO] [stdout] 260 | let max = i32::max_value() as f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 260 - let max = i32::max_value() as f64; [INFO] [stdout] 260 + let max = i32::MAX as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/int.rs:286:15 [INFO] [stdout] | [INFO] [stdout] 286 | let min = i32::min_value() as isize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 286 - let min = i32::min_value() as isize; [INFO] [stdout] 286 + let min = i32::MIN as isize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/int.rs:287:15 [INFO] [stdout] | [INFO] [stdout] 287 | let max = i32::max_value() as isize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 287 - let max = i32::max_value() as isize; [INFO] [stdout] 287 + let max = i32::MAX as isize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/int.rs:323:15 [INFO] [stdout] | [INFO] [stdout] 323 | let max = i32::max_value() as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 323 - let max = i32::max_value() as usize; [INFO] [stdout] 323 + let max = i32::MAX as usize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/isize.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 113 | let max = isize::max_value() as u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 113 - let max = isize::max_value() as u64; [INFO] [stdout] 113 + let max = isize::MAX as u64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/isize.rs:171:15 [INFO] [stdout] | [INFO] [stdout] 171 | let max = isize::max_value() as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 171 - let max = isize::max_value() as usize; [INFO] [stdout] 171 + let max = isize::MAX as usize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/long.rs:133:15 [INFO] [stdout] | [INFO] [stdout] 133 | let max = i64::max_value() as u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 133 - let max = i64::max_value() as u64; [INFO] [stdout] 133 + let max = i64::MAX as u64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/long.rs:232:15 [INFO] [stdout] | [INFO] [stdout] 232 | let max = i64::max_value() as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 232 - let max = i64::max_value() as usize; [INFO] [stdout] 232 + let max = i64::MAX as usize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:91:15 [INFO] [stdout] | [INFO] [stdout] 91 | let max = i16::max_value() as u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 91 - let max = i16::max_value() as u16; [INFO] [stdout] 91 + let max = i16::MAX as u16; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:131:15 [INFO] [stdout] | [INFO] [stdout] 131 | let min = i16::min_value() as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 131 - let min = i16::min_value() as i32; [INFO] [stdout] 131 + let min = i16::MIN as i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:132:15 [INFO] [stdout] | [INFO] [stdout] 132 | let max = i16::max_value() as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 132 - let max = i16::max_value() as i32; [INFO] [stdout] 132 + let max = i16::MAX as i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:168:15 [INFO] [stdout] | [INFO] [stdout] 168 | let max = i16::max_value() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 168 - let max = i16::max_value() as u32; [INFO] [stdout] 168 + let max = i16::MAX as u32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:220:15 [INFO] [stdout] | [INFO] [stdout] 220 | let min = i16::min_value() as f32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 220 - let min = i16::min_value() as f32; [INFO] [stdout] 220 + let min = i16::MIN as f32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:221:15 [INFO] [stdout] | [INFO] [stdout] 221 | let max = i16::max_value() as f32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 221 - let max = i16::max_value() as f32; [INFO] [stdout] 221 + let max = i16::MAX as f32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:247:15 [INFO] [stdout] | [INFO] [stdout] 247 | let min = i16::min_value() as i64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 247 - let min = i16::min_value() as i64; [INFO] [stdout] 247 + let min = i16::MIN as i64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:248:15 [INFO] [stdout] | [INFO] [stdout] 248 | let max = i16::max_value() as i64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 248 - let max = i16::max_value() as i64; [INFO] [stdout] 248 + let max = i16::MAX as i64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:284:15 [INFO] [stdout] | [INFO] [stdout] 284 | let max = i16::max_value() as u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 284 - let max = i16::max_value() as u64; [INFO] [stdout] 284 + let max = i16::MAX as u64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:336:15 [INFO] [stdout] | [INFO] [stdout] 336 | let min = i16::min_value() as f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 336 - let min = i16::min_value() as f64; [INFO] [stdout] 336 + let min = i16::MIN as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:337:15 [INFO] [stdout] | [INFO] [stdout] 337 | let max = i16::max_value() as f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 337 - let max = i16::max_value() as f64; [INFO] [stdout] 337 + let max = i16::MAX as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:363:15 [INFO] [stdout] | [INFO] [stdout] 363 | let min = i16::min_value() as isize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 363 - let min = i16::min_value() as isize; [INFO] [stdout] 363 + let min = i16::MIN as isize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:364:15 [INFO] [stdout] | [INFO] [stdout] 364 | let max = i16::max_value() as isize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 364 - let max = i16::max_value() as isize; [INFO] [stdout] 364 + let max = i16::MAX as isize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:400:15 [INFO] [stdout] | [INFO] [stdout] 400 | let max = i16::max_value() as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 400 - let max = i16::max_value() as usize; [INFO] [stdout] 400 + let max = i16::MAX as usize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ubyte.rs:150:15 [INFO] [stdout] | [INFO] [stdout] 150 | let max = u8::max_value() as i16; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 150 - let max = u8::max_value() as i16; [INFO] [stdout] 150 + let max = u8::MAX as i16; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ubyte.rs:208:15 [INFO] [stdout] | [INFO] [stdout] 208 | let max = u8::max_value() as u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 208 - let max = u8::max_value() as u16; [INFO] [stdout] 208 + let max = u8::MAX as u16; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ubyte.rs:266:15 [INFO] [stdout] | [INFO] [stdout] 266 | let max = u8::max_value() as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 266 - let max = u8::max_value() as i32; [INFO] [stdout] 266 + let max = u8::MAX as i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ubyte.rs:324:15 [INFO] [stdout] | [INFO] [stdout] 324 | let max = u8::max_value() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 324 - let max = u8::max_value() as u32; [INFO] [stdout] 324 + let max = u8::MAX as u32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ubyte.rs:377:15 [INFO] [stdout] | [INFO] [stdout] 377 | let max = u8::max_value() as f32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 377 - let max = u8::max_value() as f32; [INFO] [stdout] 377 + let max = u8::MAX as f32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ubyte.rs:421:15 [INFO] [stdout] | [INFO] [stdout] 421 | let max = u8::max_value() as i64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 421 - let max = u8::max_value() as i64; [INFO] [stdout] 421 + let max = u8::MAX as i64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ubyte.rs:479:15 [INFO] [stdout] | [INFO] [stdout] 479 | let max = u8::max_value() as u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 479 - let max = u8::max_value() as u64; [INFO] [stdout] 479 + let max = u8::MAX as u64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ubyte.rs:531:15 [INFO] [stdout] | [INFO] [stdout] 531 | let max = u8::max_value() as f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 531 - let max = u8::max_value() as f64; [INFO] [stdout] 531 + let max = u8::MAX as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ubyte.rs:574:15 [INFO] [stdout] | [INFO] [stdout] 574 | let max = u8::max_value() as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 574 - let max = u8::max_value() as usize; [INFO] [stdout] 574 + let max = u8::MAX as usize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ubyte.rs:632:15 [INFO] [stdout] | [INFO] [stdout] 632 | let max = u8::max_value() as isize; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 632 - let max = u8::max_value() as isize; [INFO] [stdout] 632 + let max = u8::MAX as isize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/uint.rs:295:15 [INFO] [stdout] | [INFO] [stdout] 295 | let max = u32::max_value() as i64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 295 - let max = u32::max_value() as i64; [INFO] [stdout] 295 + let max = u32::MAX as i64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/uint.rs:353:15 [INFO] [stdout] | [INFO] [stdout] 353 | let max = u32::max_value() as u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 353 - let max = u32::max_value() as u64; [INFO] [stdout] 353 + let max = u32::MAX as u64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/uint.rs:405:15 [INFO] [stdout] | [INFO] [stdout] 405 | let max = u32::max_value() as f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 405 - let max = u32::max_value() as f64; [INFO] [stdout] 405 + let max = u32::MAX as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/uint.rs:449:15 [INFO] [stdout] | [INFO] [stdout] 449 | let max = u32::max_value() as isize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 449 - let max = u32::max_value() as isize; [INFO] [stdout] 449 + let max = u32::MAX as isize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/uint.rs:507:15 [INFO] [stdout] | [INFO] [stdout] 507 | let max = u32::max_value() as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 507 - let max = u32::max_value() as usize; [INFO] [stdout] 507 + let max = u32::MAX as usize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: transmute used without annotations [INFO] [stdout] --> src/impls/parse/string_impl.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | let ret = transmute(&self as &str); [INFO] [stdout] | ^^^^^^^^^ help: consider adding missing annotations: `transmute::<&str, &str>` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_transmute_annotations [INFO] [stdout] = note: `#[warn(clippy::missing_transmute_annotations)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ushort.rs:202:15 [INFO] [stdout] | [INFO] [stdout] 202 | let max = u16::max_value() as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 202 - let max = u16::max_value() as i32; [INFO] [stdout] 202 + let max = u16::MAX as i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ushort.rs:260:15 [INFO] [stdout] | [INFO] [stdout] 260 | let max = u16::max_value() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 260 - let max = u16::max_value() as u32; [INFO] [stdout] 260 + let max = u16::MAX as u32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ushort.rs:312:15 [INFO] [stdout] | [INFO] [stdout] 312 | let max = u16::max_value() as f32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 312 - let max = u16::max_value() as f32; [INFO] [stdout] 312 + let max = u16::MAX as f32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ushort.rs:356:15 [INFO] [stdout] | [INFO] [stdout] 356 | let max = u16::max_value() as i64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 356 - let max = u16::max_value() as i64; [INFO] [stdout] 356 + let max = u16::MAX as i64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ushort.rs:414:15 [INFO] [stdout] | [INFO] [stdout] 414 | let max = u16::max_value() as u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 414 - let max = u16::max_value() as u64; [INFO] [stdout] 414 + let max = u16::MAX as u64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ushort.rs:466:15 [INFO] [stdout] | [INFO] [stdout] 466 | let max = u16::max_value() as f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 466 - let max = u16::max_value() as f64; [INFO] [stdout] 466 + let max = u16::MAX as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ushort.rs:510:15 [INFO] [stdout] | [INFO] [stdout] 510 | let max = u16::max_value() as isize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 510 - let max = u16::max_value() as isize; [INFO] [stdout] 510 + let max = u16::MAX as isize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ushort.rs:568:15 [INFO] [stdout] | [INFO] [stdout] 568 | let max = u16::max_value() as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 568 - let max = u16::max_value() as usize; [INFO] [stdout] 568 + let max = u16::MAX as usize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you don't need to add `&` to all patterns [INFO] [stdout] --> src/impls/error_impl.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | / match self{ [INFO] [stdout] 9 | | &ParseError::InvalidNumber(_) => "Invalid Number", [INFO] [stdout] 10 | | &ParseError::InvalidString(_) => "Invalid String" [INFO] [stdout] 11 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_ref_pats [INFO] [stdout] = note: `#[warn(clippy::match_ref_pats)]` on by default [INFO] [stdout] help: instead of prefixing all patterns with `&`, you can dereference the expression [INFO] [stdout] | [INFO] [stdout] 8 ~ match *self{ [INFO] [stdout] 9 ~ ParseError::InvalidNumber(_) => "Invalid Number", [INFO] [stdout] 10 ~ ParseError::InvalidString(_) => "Invalid String" [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you don't need to add `&` to all patterns [INFO] [stdout] --> src/impls/error_impl.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | / match self{ [INFO] [stdout] 20 | | &ParseError::InvalidNumber(ref i) => write!(f, "Invalid Number: {}", i), [INFO] [stdout] 21 | | &ParseError::InvalidString(ref i) => write!(f, "Invalid String: {}", i) [INFO] [stdout] 22 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_ref_pats [INFO] [stdout] help: instead of prefixing all patterns with `&`, you can dereference the expression [INFO] [stdout] | [INFO] [stdout] 19 ~ match *self{ [INFO] [stdout] 20 ~ ParseError::InvalidNumber(ref i) => write!(f, "Invalid Number: {}", i), [INFO] [stdout] 21 ~ ParseError::InvalidString(ref i) => write!(f, "Invalid String: {}", i) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a tuple pattern where every element takes a reference [INFO] [stdout] --> src/impls/error_impl.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | &ParseError::InvalidNumber(ref i) => write!(f, "Invalid Number: {}", i), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference [INFO] [stdout] = note: `#[warn(clippy::needless_borrowed_reference)]` on by default [INFO] [stdout] help: try removing the `&` and `ref` parts [INFO] [stdout] | [INFO] [stdout] 20 - &ParseError::InvalidNumber(ref i) => write!(f, "Invalid Number: {}", i), [INFO] [stdout] 20 + ParseError::InvalidNumber(i) => write!(f, "Invalid Number: {}", i), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: dereferencing a tuple pattern where every element takes a reference [INFO] [stdout] --> src/impls/error_impl.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | &ParseError::InvalidString(ref i) => write!(f, "Invalid String: {}", i) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference [INFO] [stdout] help: try removing the `&` and `ref` parts [INFO] [stdout] | [INFO] [stdout] 21 - &ParseError::InvalidString(ref i) => write!(f, "Invalid String: {}", i) [INFO] [stdout] 21 + ParseError::InvalidString(i) => write!(f, "Invalid String: {}", i) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:204:34 [INFO] [stdout] | [INFO] [stdout] 204 | pub fn adv_contains_all_chars(s: &String, search: &[char]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 204 - pub fn adv_contains_all_chars(s: &String, search: &[char]) [INFO] [stdout] 204 + pub fn adv_contains_all_chars(s: &str, search: &[char]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `search` [INFO] [stdout] --> src/string.rs:210:14 [INFO] [stdout] | [INFO] [stdout] 210 | for i in 0..search.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 210 - for i in 0..search.len() { [INFO] [stdout] 210 + for in &search { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:223:33 [INFO] [stdout] | [INFO] [stdout] 223 | pub fn adv_contains_all_strs(s: &String, search: &[&str]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 223 - pub fn adv_contains_all_strs(s: &String, search: &[&str]) [INFO] [stdout] 223 + pub fn adv_contains_all_strs(s: &str, search: &[&str]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `search` [INFO] [stdout] --> src/string.rs:229:14 [INFO] [stdout] | [INFO] [stdout] 229 | for i in 0..search.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 229 - for i in 0..search.len() { [INFO] [stdout] 229 + for in &search { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:242:33 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn adv_contains_any_char(s: &String, search: &[char]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 242 - pub fn adv_contains_any_char(s: &String, search: &[char]) [INFO] [stdout] 242 + pub fn adv_contains_any_char(s: &str, search: &[char]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `search` [INFO] [stdout] --> src/string.rs:245:14 [INFO] [stdout] | [INFO] [stdout] 245 | for i in 0..search.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 245 - for i in 0..search.len() { [INFO] [stdout] 245 + for in &search { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/string.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | / match s.find(search[i]) { [INFO] [stdout] 247 | | Some(n) => return (true, n, search[i]), [INFO] [stdout] 248 | | None => {} [INFO] [stdout] 249 | | } [INFO] [stdout] | |_________^ help: try: `if let Some(n) = s.find(search[i]) { return (true, n, search[i]) }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:255:32 [INFO] [stdout] | [INFO] [stdout] 255 | pub fn adv_contains_any_str(s: &String, search: &[&str]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 255 - pub fn adv_contains_any_str(s: &String, search: &[&str]) [INFO] [stdout] 255 + pub fn adv_contains_any_str(s: &str, search: &[&str]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `search` [INFO] [stdout] --> src/string.rs:258:14 [INFO] [stdout] | [INFO] [stdout] 258 | for i in 0..search.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 258 - for i in 0..search.len() { [INFO] [stdout] 258 + for in &search { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/string.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 259 | / match s.find(search[i]) { [INFO] [stdout] 260 | | Some(n) => return (true, n, String::from(search[i])), [INFO] [stdout] 261 | | None => {} [INFO] [stdout] 262 | | } [INFO] [stdout] | |_________^ help: try: `if let Some(n) = s.find(search[i]) { return (true, n, String::from(search[i])) }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: importing a legacy numeric constant [INFO] [stdout] --> src/array.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::usize::MAX; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove this import and use the associated constant `usize::MAX` from the primitive type instead [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/array.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 28 | if a == b { return true } [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] 28 - if a == b { return true } [INFO] [stdout] 28 + if a == b { true } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/array.rs:30:49 [INFO] [stdout] | [INFO] [stdout] 30 | if a > ary.len()-1 || b > ary.len()-1 { return false } [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 30 - if a > ary.len()-1 || b > ary.len()-1 { return false } [INFO] [stdout] 30 + if a > ary.len()-1 || b > ary.len()-1 { false } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:268:34 [INFO] [stdout] | [INFO] [stdout] 268 | pub fn adv_contains_none_char(s: &String, search: &[char]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 268 - pub fn adv_contains_none_char(s: &String, search: &[char]) [INFO] [stdout] 268 + pub fn adv_contains_none_char(s: &str, search: &[char]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is used to index `search` [INFO] [stdout] --> src/string.rs:271:14 [INFO] [stdout] | [INFO] [stdout] 271 | for i in 0..search.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 271 - for i in 0..search.len() { [INFO] [stdout] 271 + for (i, ) in search.iter().enumerate() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/string.rs:272:9 [INFO] [stdout] | [INFO] [stdout] 272 | / match s.find(search[i]) { [INFO] [stdout] 273 | | Some(_) => return (false, i, search[i]), [INFO] [stdout] 274 | | None => {} [INFO] [stdout] 275 | | } [INFO] [stdout] | |_________^ help: try: `if let Some(_) = s.find(search[i]) { return (false, i, search[i]) }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:281:33 [INFO] [stdout] | [INFO] [stdout] 281 | pub fn adv_contains_none_str(s: &String, search: &[&str]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 281 - pub fn adv_contains_none_str(s: &String, search: &[&str]) [INFO] [stdout] 281 + pub fn adv_contains_none_str(s: &str, search: &[&str]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is used to index `search` [INFO] [stdout] --> src/string.rs:284:14 [INFO] [stdout] | [INFO] [stdout] 284 | for i in 0..search.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 284 - for i in 0..search.len() { [INFO] [stdout] 284 + for (i, ) in search.iter().enumerate() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this looks like you are swapping elements of `ary` manually [INFO] [stdout] --> src/array.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | / let temp = ary[a]; [INFO] [stdout] 33 | | ary[a] = ary[b]; [INFO] [stdout] 34 | | ary[b] = temp; [INFO] [stdout] | |__________________________^ help: try: `ary.swap(a, b);` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_swap [INFO] [stdout] = note: `#[warn(clippy::manual_swap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/string.rs:285:9 [INFO] [stdout] | [INFO] [stdout] 285 | / match s.find(search[i]) { [INFO] [stdout] 286 | | Some(_) => return (false, i, String::from(search[i])), [INFO] [stdout] 287 | | None => {} [INFO] [stdout] 288 | | } [INFO] [stdout] | |_________^ help: try: `if let Some(_) = s.find(search[i]) { return (false, i, String::from(search[i])) }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is used to index `ary` [INFO] [stdout] --> src/array.rs:43:14 [INFO] [stdout] | [INFO] [stdout] 43 | for i in 0..ary.len() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 43 - for i in 0..ary.len() { [INFO] [stdout] 43 + for (i, ) in ary.iter().enumerate() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/array.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | MAX [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 49 | usize::MAX [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:330:25 [INFO] [stdout] | [INFO] [stdout] 330 | pub fn adv_ends_with(s: &String, search: &str) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 330 ~ pub fn adv_ends_with(s: &str, search: &str) [INFO] [stdout] 331 | -> (bool, String) { [INFO] [stdout] 332 | [INFO] [stdout] 333 ~ let temp = s.to_owned(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/array.rs:59:11 [INFO] [stdout] | [INFO] [stdout] 59 | while !next.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `next.is_some()` [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: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:343:27 [INFO] [stdout] | [INFO] [stdout] 343 | pub fn adv_starts_with(s: &String, search: &str) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 343 ~ pub fn adv_starts_with(s: &str, search: &str) [INFO] [stdout] 344 | -> (bool, String) { [INFO] [stdout] 345 | [INFO] [stdout] 346 ~ let temp = s.to_owned(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/string.rs:349:29 [INFO] [stdout] | [INFO] [stdout] 349 | (true, String::from(&temp[search.len()..])) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/string.rs:348:5 [INFO] [stdout] | [INFO] [stdout] 348 | if temp.starts_with(search) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip [INFO] [stdout] = note: `#[warn(clippy::manual_strip)]` on by default [INFO] [stdout] help: try using the `strip_prefix` method [INFO] [stdout] | [INFO] [stdout] 348 ~ if let Some() = temp.strip_prefix(search) { [INFO] [stdout] 349 ~ (true, String::from()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:355:25 [INFO] [stdout] | [INFO] [stdout] 355 | pub fn adv_has_alpha(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 355 - pub fn adv_has_alpha(s: &String) [INFO] [stdout] 355 + pub fn adv_has_alpha(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `ary` [INFO] [stdout] --> src/array.rs:68:14 [INFO] [stdout] | [INFO] [stdout] 68 | for i in 0..ary.len() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 68 - for i in 0..ary.len() { [INFO] [stdout] 68 + for in &mut ary { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/array.rs:76:16 [INFO] [stdout] | [INFO] [stdout] 76 | unique_adv(&ary).0 [INFO] [stdout] | ^^^^ help: change this to: `ary` [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: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:361:32 [INFO] [stdout] | [INFO] [stdout] 361 | pub fn adv_has_alphanumeric(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 361 - pub fn adv_has_alphanumeric(s: &String) [INFO] [stdout] 361 + pub fn adv_has_alphanumeric(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `ary` [INFO] [stdout] --> src/array.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 85 | 'outer: for i in 0..ary.len() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 85 - 'outer: for i in 0..ary.len() { [INFO] [stdout] 85 + 'outer: for in &ary { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `j` is only used to index `res` [INFO] [stdout] --> src/array.rs:87:18 [INFO] [stdout] | [INFO] [stdout] 87 | for j in 0..res.len() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 87 - for j in 0..res.len() { [INFO] [stdout] 87 + for in &res { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:367:38 [INFO] [stdout] | [INFO] [stdout] 367 | pub fn adv_has_alphanumeric_space(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 367 - pub fn adv_has_alphanumeric_space(s: &String) [INFO] [stdout] 367 + pub fn adv_has_alphanumeric_space(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:373:31 [INFO] [stdout] | [INFO] [stdout] 373 | pub fn adv_has_alpha_space(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 373 - pub fn adv_has_alpha_space(s: &String) [INFO] [stdout] 373 + pub fn adv_has_alpha_space(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:379:29 [INFO] [stdout] | [INFO] [stdout] 379 | pub fn adv_has_lowercase(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 379 - pub fn adv_has_lowercase(s: &String) [INFO] [stdout] 379 + pub fn adv_has_lowercase(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:385:27 [INFO] [stdout] | [INFO] [stdout] 385 | pub fn adv_has_numeric(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 385 - pub fn adv_has_numeric(s: &String) [INFO] [stdout] 385 + pub fn adv_has_numeric(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:391:33 [INFO] [stdout] | [INFO] [stdout] 391 | pub fn adv_has_numeric_space(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 391 - pub fn adv_has_numeric_space(s: &String) [INFO] [stdout] 391 + pub fn adv_has_numeric_space(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:397:29 [INFO] [stdout] | [INFO] [stdout] 397 | pub fn adv_has_uppercase(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 397 - pub fn adv_has_uppercase(s: &String) [INFO] [stdout] 397 + pub fn adv_has_uppercase(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:403:30 [INFO] [stdout] | [INFO] [stdout] 403 | pub fn adv_has_whitespace(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 403 - pub fn adv_has_whitespace(s: &String) [INFO] [stdout] 403 + pub fn adv_has_whitespace(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | if a == 0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `a != 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] = note: `#[warn(clippy::needless_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | if a == 0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `a != 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | if a == 0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `a != 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:463:24 [INFO] [stdout] | [INFO] [stdout] 463 | pub fn adv_is_alpha(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 463 - pub fn adv_is_alpha(s: &String) [INFO] [stdout] 463 + pub fn adv_is_alpha(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:122:5 [INFO] [stdout] | [INFO] [stdout] 122 | if a == 0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `a != 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:469:31 [INFO] [stdout] | [INFO] [stdout] 469 | pub fn adv_is_alphanumeric(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 469 - pub fn adv_is_alphanumeric(s: &String) [INFO] [stdout] 469 + pub fn adv_is_alphanumeric(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 151 | if a == 0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `a != 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:475:37 [INFO] [stdout] | [INFO] [stdout] 475 | pub fn adv_is_alphanumeric_space(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 475 - pub fn adv_is_alphanumeric_space(s: &String) [INFO] [stdout] 475 + pub fn adv_is_alphanumeric_space(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | if a == 0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `a != 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:481:30 [INFO] [stdout] | [INFO] [stdout] 481 | pub fn adv_is_alpha_space(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 481 - pub fn adv_is_alpha_space(s: &String) [INFO] [stdout] 481 + pub fn adv_is_alpha_space(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:209:5 [INFO] [stdout] | [INFO] [stdout] 209 | if a.is_nan() || a == 0.0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `!(a.is_nan() || a == 0.0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:487:28 [INFO] [stdout] | [INFO] [stdout] 487 | pub fn adv_is_lowercase(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 487 - pub fn adv_is_lowercase(s: &String) [INFO] [stdout] 487 + pub fn adv_is_lowercase(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:493:26 [INFO] [stdout] | [INFO] [stdout] 493 | pub fn adv_is_numeric(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 493 - pub fn adv_is_numeric(s: &String) [INFO] [stdout] 493 + pub fn adv_is_numeric(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:499:32 [INFO] [stdout] | [INFO] [stdout] 499 | pub fn adv_is_numeric_space(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 499 - pub fn adv_is_numeric_space(s: &String) [INFO] [stdout] 499 + pub fn adv_is_numeric_space(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:505:28 [INFO] [stdout] | [INFO] [stdout] 505 | pub fn adv_is_uppercase(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 505 - pub fn adv_is_uppercase(s: &String) [INFO] [stdout] 505 + pub fn adv_is_uppercase(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:511:29 [INFO] [stdout] | [INFO] [stdout] 511 | pub fn adv_is_whitespace(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 511 - pub fn adv_is_whitespace(s: &String) [INFO] [stdout] 511 + pub fn adv_is_whitespace(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:238:5 [INFO] [stdout] | [INFO] [stdout] 238 | if a == 0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `a != 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:267:5 [INFO] [stdout] | [INFO] [stdout] 267 | if a == 0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `a != 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:296:5 [INFO] [stdout] | [INFO] [stdout] 296 | if a.is_nan() || a == 0.0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `!(a.is_nan() || a == 0.0)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:325:5 [INFO] [stdout] | [INFO] [stdout] 325 | if a == 0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `a != 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this if-then-else expression returns a bool literal [INFO] [stdout] --> src/parse/boolean.rs:354:5 [INFO] [stdout] | [INFO] [stdout] 354 | if a == 0 { false } else { true } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `a != 0` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/string.rs:593:13 [INFO] [stdout] | [INFO] [stdout] 593 | return (true, vec, target); [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 593 - return (true, vec, target); [INFO] [stdout] 593 + (true, vec, target) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/string.rs:596:13 [INFO] [stdout] | [INFO] [stdout] 596 | return (false, Vec::<(usize, usize)>::new(), String::new()); [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 596 - return (false, Vec::<(usize, usize)>::new(), String::new()); [INFO] [stdout] 596 + (false, Vec::<(usize, usize)>::new(), String::new()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/string.rs:588:21 [INFO] [stdout] | [INFO] [stdout] 588 | k = k + n; [INFO] [stdout] | ^^^^^^^^^ help: replace it with: `k += n` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] = note: `#[warn(clippy::assign_op_pattern)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:91:15 [INFO] [stdout] | [INFO] [stdout] 91 | let max = i8::max_value() as u8; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 91 - let max = i8::max_value() as u8; [INFO] [stdout] 91 + let max = i8::MAX as u8; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/string.rs:589:21 [INFO] [stdout] | [INFO] [stdout] 589 | i = i + n; [INFO] [stdout] | ^^^^^^^^^ help: replace it with: `i += n` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:149:15 [INFO] [stdout] | [INFO] [stdout] 149 | let min = i8::min_value() as i16; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 149 - let min = i8::min_value() as i16; [INFO] [stdout] 149 + let min = i8::MIN as i16; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:150:15 [INFO] [stdout] | [INFO] [stdout] 150 | let max = i8::max_value() as i16; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 150 - let max = i8::max_value() as i16; [INFO] [stdout] 150 + let max = i8::MAX as i16; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/string.rs:619:13 [INFO] [stdout] | [INFO] [stdout] 619 | return (true, j, target); [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 619 - return (true, j, target); [INFO] [stdout] 619 + (true, j, target) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/string.rs:622:21 [INFO] [stdout] | [INFO] [stdout] 622 | Err(_) => { return (false, 0, String::new()); } [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 622 - Err(_) => { return (false, 0, String::new()); } [INFO] [stdout] 622 + Err(_) => { (false, 0, String::new())} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:208:15 [INFO] [stdout] | [INFO] [stdout] 208 | let max = i8::max_value() as u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 208 - let max = i8::max_value() as u16; [INFO] [stdout] 208 + let max = i8::MAX as u16; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/string.rs:616:17 [INFO] [stdout] | [INFO] [stdout] 616 | k = k + n; [INFO] [stdout] | ^^^^^^^^^ help: replace it with: `k += n` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:266:15 [INFO] [stdout] | [INFO] [stdout] 266 | let min = i8::min_value() as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 266 - let min = i8::min_value() as i32; [INFO] [stdout] 266 + let min = i8::MIN as i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:267:15 [INFO] [stdout] | [INFO] [stdout] 267 | let max = i8::max_value() as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 267 - let max = i8::max_value() as i32; [INFO] [stdout] 267 + let max = i8::MAX as i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:668:19 [INFO] [stdout] | [INFO] [stdout] 668 | pub fn reverse(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 668 - pub fn reverse(s: &String) [INFO] [stdout] 668 + pub fn reverse(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:325:15 [INFO] [stdout] | [INFO] [stdout] 325 | let max = i8::max_value() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 325 - let max = i8::max_value() as u32; [INFO] [stdout] 325 + let max = i8::MAX as u32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:687:27 [INFO] [stdout] | [INFO] [stdout] 687 | pub fn cmp_ignore_case(s: &String, cmp: &str) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 687 - pub fn cmp_ignore_case(s: &String, cmp: &str) [INFO] [stdout] 687 + pub fn cmp_ignore_case(s: &str, cmp: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: binary comparison to literal `Option::None` [INFO] [stdout] --> src/string.rs:705:12 [INFO] [stdout] | [INFO] [stdout] 705 | if n1 != None || n2 != None { [INFO] [stdout] | ^^^^^^^^^^ help: use `Option::is_some()` instead: `n1.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none [INFO] [stdout] = note: `#[warn(clippy::partialeq_to_none)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:440:15 [INFO] [stdout] | [INFO] [stdout] 440 | let min = i8::min_value() as f32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 440 - let min = i8::min_value() as f32; [INFO] [stdout] 440 + let min = i8::MIN as f32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: binary comparison to literal `Option::None` [INFO] [stdout] --> src/string.rs:705:26 [INFO] [stdout] | [INFO] [stdout] 705 | if n1 != None || n2 != None { [INFO] [stdout] | ^^^^^^^^^^ help: use `Option::is_some()` instead: `n2.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:441:15 [INFO] [stdout] | [INFO] [stdout] 441 | let max = i8::max_value() as f32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 441 - let max = i8::max_value() as f32; [INFO] [stdout] 441 + let max = i8::MAX as f32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/string.rs:709:9 [INFO] [stdout] | [INFO] [stdout] 709 | i = i + 1; [INFO] [stdout] | ^^^^^^^^^ help: replace it with: `i += 1` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:503:15 [INFO] [stdout] | [INFO] [stdout] 503 | let min = i8::min_value() as i64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 503 - let min = i8::min_value() as i64; [INFO] [stdout] 503 + let min = i8::MIN as i64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:504:15 [INFO] [stdout] | [INFO] [stdout] 504 | let max = i8::max_value() as i64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 504 - let max = i8::max_value() as i64; [INFO] [stdout] 504 + let max = i8::MAX as i64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:562:15 [INFO] [stdout] | [INFO] [stdout] 562 | let max = i8::max_value() as u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 562 - let max = i8::max_value() as u64; [INFO] [stdout] 562 + let max = i8::MAX as u64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: binary comparison to literal `Option::None` [INFO] [stdout] --> src/string.rs:732:12 [INFO] [stdout] | [INFO] [stdout] 732 | if n == None { return None; } [INFO] [stdout] | ^^^^^^^^^ help: use `Option::is_none()` instead: `n.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/string.rs:735:9 [INFO] [stdout] | [INFO] [stdout] 735 | i = i + 1; [INFO] [stdout] | ^^^^^^^^^ help: replace it with: `i += 1` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:748:20 [INFO] [stdout] | [INFO] [stdout] 748 | pub fn peek_opt(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 748 - pub fn peek_opt(s: &String) [INFO] [stdout] 748 + pub fn peek_opt(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:677:15 [INFO] [stdout] | [INFO] [stdout] 677 | let min = i8::min_value() as f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 677 - let min = i8::min_value() as f64; [INFO] [stdout] 677 + let min = i8::MIN as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: binary comparison to literal `Option::None` [INFO] [stdout] --> src/lib.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | if n == None { break; } [INFO] [stdout] | ^^^^^^^^^ help: use `Option::is_none()` instead: `n.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:678:15 [INFO] [stdout] | [INFO] [stdout] 678 | let max = i8::max_value() as f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 678 - let max = i8::max_value() as f64; [INFO] [stdout] 678 + let max = i8::MAX as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:740:15 [INFO] [stdout] | [INFO] [stdout] 740 | let min = i8::min_value() as isize; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 740 - let min = i8::min_value() as isize; [INFO] [stdout] 740 + let min = i8::MIN as isize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:741:15 [INFO] [stdout] | [INFO] [stdout] 741 | let max = i8::max_value() as isize; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 741 - let max = i8::max_value() as isize; [INFO] [stdout] 741 + let max = i8::MAX as isize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/byte.rs:800:15 [INFO] [stdout] | [INFO] [stdout] 800 | let max = i8::max_value() as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 800 - let max = i8::max_value() as usize; [INFO] [stdout] 800 + let max = i8::MAX as usize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/int.rs:91:15 [INFO] [stdout] | [INFO] [stdout] 91 | let max = i32::max_value() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 91 - let max = i32::max_value() as u32; [INFO] [stdout] 91 + let max = i32::MAX as u32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/string.rs:720:24 [INFO] [stdout] | [INFO] [stdout] 720 | None => panic!(format!("string doesn't contain {}", search)) [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] 720 - None => panic!(format!("string doesn't contain {}", search)) [INFO] [stdout] 720 + None => panic!("string doesn't contain {}", search) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/int.rs:170:15 [INFO] [stdout] | [INFO] [stdout] 170 | let min = i32::min_value() as i64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 170 - let min = i32::min_value() as i64; [INFO] [stdout] 170 + let min = i32::MIN as i64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/int.rs:171:15 [INFO] [stdout] | [INFO] [stdout] 171 | let max = i32::max_value() as i64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 171 - let max = i32::max_value() as i64; [INFO] [stdout] 171 + let max = i32::MAX as i64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/int.rs:207:15 [INFO] [stdout] | [INFO] [stdout] 207 | let max = i32::max_value() as u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 207 - let max = i32::max_value() as u64; [INFO] [stdout] 207 + let max = i32::MAX as u64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/int.rs:259:15 [INFO] [stdout] | [INFO] [stdout] 259 | let min = i32::min_value() as f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 259 - let min = i32::min_value() as f64; [INFO] [stdout] 259 + let min = i32::MIN as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/int.rs:260:15 [INFO] [stdout] | [INFO] [stdout] 260 | let max = i32::max_value() as f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 260 - let max = i32::max_value() as f64; [INFO] [stdout] 260 + let max = i32::MAX as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/int.rs:286:15 [INFO] [stdout] | [INFO] [stdout] 286 | let min = i32::min_value() as isize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 286 - let min = i32::min_value() as isize; [INFO] [stdout] 286 + let min = i32::MIN as isize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/int.rs:287:15 [INFO] [stdout] | [INFO] [stdout] 287 | let max = i32::max_value() as isize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 287 - let max = i32::max_value() as isize; [INFO] [stdout] 287 + let max = i32::MAX as isize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/int.rs:323:15 [INFO] [stdout] | [INFO] [stdout] 323 | let max = i32::max_value() as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 323 - let max = i32::max_value() as usize; [INFO] [stdout] 323 + let max = i32::MAX as usize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/isize.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 113 | let max = isize::max_value() as u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 113 - let max = isize::max_value() as u64; [INFO] [stdout] 113 + let max = isize::MAX as u64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/isize.rs:171:15 [INFO] [stdout] | [INFO] [stdout] 171 | let max = isize::max_value() as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 171 - let max = isize::max_value() as usize; [INFO] [stdout] 171 + let max = isize::MAX as usize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/long.rs:133:15 [INFO] [stdout] | [INFO] [stdout] 133 | let max = i64::max_value() as u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 133 - let max = i64::max_value() as u64; [INFO] [stdout] 133 + let max = i64::MAX as u64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/long.rs:232:15 [INFO] [stdout] | [INFO] [stdout] 232 | let max = i64::max_value() as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 232 - let max = i64::max_value() as usize; [INFO] [stdout] 232 + let max = i64::MAX as usize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:91:15 [INFO] [stdout] | [INFO] [stdout] 91 | let max = i16::max_value() as u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 91 - let max = i16::max_value() as u16; [INFO] [stdout] 91 + let max = i16::MAX as u16; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:131:15 [INFO] [stdout] | [INFO] [stdout] 131 | let min = i16::min_value() as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 131 - let min = i16::min_value() as i32; [INFO] [stdout] 131 + let min = i16::MIN as i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:132:15 [INFO] [stdout] | [INFO] [stdout] 132 | let max = i16::max_value() as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 132 - let max = i16::max_value() as i32; [INFO] [stdout] 132 + let max = i16::MAX as i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:168:15 [INFO] [stdout] | [INFO] [stdout] 168 | let max = i16::max_value() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 168 - let max = i16::max_value() as u32; [INFO] [stdout] 168 + let max = i16::MAX as u32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:220:15 [INFO] [stdout] | [INFO] [stdout] 220 | let min = i16::min_value() as f32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 220 - let min = i16::min_value() as f32; [INFO] [stdout] 220 + let min = i16::MIN as f32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:221:15 [INFO] [stdout] | [INFO] [stdout] 221 | let max = i16::max_value() as f32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 221 - let max = i16::max_value() as f32; [INFO] [stdout] 221 + let max = i16::MAX as f32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:247:15 [INFO] [stdout] | [INFO] [stdout] 247 | let min = i16::min_value() as i64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 247 - let min = i16::min_value() as i64; [INFO] [stdout] 247 + let min = i16::MIN as i64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:248:15 [INFO] [stdout] | [INFO] [stdout] 248 | let max = i16::max_value() as i64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 248 - let max = i16::max_value() as i64; [INFO] [stdout] 248 + let max = i16::MAX as i64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:284:15 [INFO] [stdout] | [INFO] [stdout] 284 | let max = i16::max_value() as u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 284 - let max = i16::max_value() as u64; [INFO] [stdout] 284 + let max = i16::MAX as u64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:336:15 [INFO] [stdout] | [INFO] [stdout] 336 | let min = i16::min_value() as f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 336 - let min = i16::min_value() as f64; [INFO] [stdout] 336 + let min = i16::MIN as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:337:15 [INFO] [stdout] | [INFO] [stdout] 337 | let max = i16::max_value() as f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 337 - let max = i16::max_value() as f64; [INFO] [stdout] 337 + let max = i16::MAX as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:363:15 [INFO] [stdout] | [INFO] [stdout] 363 | let min = i16::min_value() as isize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 363 - let min = i16::min_value() as isize; [INFO] [stdout] 363 + let min = i16::MIN as isize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:364:15 [INFO] [stdout] | [INFO] [stdout] 364 | let max = i16::max_value() as isize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 364 - let max = i16::max_value() as isize; [INFO] [stdout] 364 + let max = i16::MAX as isize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/short.rs:400:15 [INFO] [stdout] | [INFO] [stdout] 400 | let max = i16::max_value() as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 400 - let max = i16::max_value() as usize; [INFO] [stdout] 400 + let max = i16::MAX as usize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ubyte.rs:150:15 [INFO] [stdout] | [INFO] [stdout] 150 | let max = u8::max_value() as i16; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 150 - let max = u8::max_value() as i16; [INFO] [stdout] 150 + let max = u8::MAX as i16; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ubyte.rs:208:15 [INFO] [stdout] | [INFO] [stdout] 208 | let max = u8::max_value() as u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 208 - let max = u8::max_value() as u16; [INFO] [stdout] 208 + let max = u8::MAX as u16; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ubyte.rs:266:15 [INFO] [stdout] | [INFO] [stdout] 266 | let max = u8::max_value() as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 266 - let max = u8::max_value() as i32; [INFO] [stdout] 266 + let max = u8::MAX as i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ubyte.rs:324:15 [INFO] [stdout] | [INFO] [stdout] 324 | let max = u8::max_value() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 324 - let max = u8::max_value() as u32; [INFO] [stdout] 324 + let max = u8::MAX as u32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ubyte.rs:377:15 [INFO] [stdout] | [INFO] [stdout] 377 | let max = u8::max_value() as f32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 377 - let max = u8::max_value() as f32; [INFO] [stdout] 377 + let max = u8::MAX as f32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ubyte.rs:421:15 [INFO] [stdout] | [INFO] [stdout] 421 | let max = u8::max_value() as i64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 421 - let max = u8::max_value() as i64; [INFO] [stdout] 421 + let max = u8::MAX as i64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ubyte.rs:479:15 [INFO] [stdout] | [INFO] [stdout] 479 | let max = u8::max_value() as u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 479 - let max = u8::max_value() as u64; [INFO] [stdout] 479 + let max = u8::MAX as u64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ubyte.rs:531:15 [INFO] [stdout] | [INFO] [stdout] 531 | let max = u8::max_value() as f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 531 - let max = u8::max_value() as f64; [INFO] [stdout] 531 + let max = u8::MAX as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ubyte.rs:574:15 [INFO] [stdout] | [INFO] [stdout] 574 | let max = u8::max_value() as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 574 - let max = u8::max_value() as usize; [INFO] [stdout] 574 + let max = u8::MAX as usize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ubyte.rs:632:15 [INFO] [stdout] | [INFO] [stdout] 632 | let max = u8::max_value() as isize; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 632 - let max = u8::max_value() as isize; [INFO] [stdout] 632 + let max = u8::MAX as isize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/uint.rs:295:15 [INFO] [stdout] | [INFO] [stdout] 295 | let max = u32::max_value() as i64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 295 - let max = u32::max_value() as i64; [INFO] [stdout] 295 + let max = u32::MAX as i64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/uint.rs:353:15 [INFO] [stdout] | [INFO] [stdout] 353 | let max = u32::max_value() as u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 353 - let max = u32::max_value() as u64; [INFO] [stdout] 353 + let max = u32::MAX as u64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/uint.rs:405:15 [INFO] [stdout] | [INFO] [stdout] 405 | let max = u32::max_value() as f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 405 - let max = u32::max_value() as f64; [INFO] [stdout] 405 + let max = u32::MAX as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/uint.rs:449:15 [INFO] [stdout] | [INFO] [stdout] 449 | let max = u32::max_value() as isize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 449 - let max = u32::max_value() as isize; [INFO] [stdout] 449 + let max = u32::MAX as isize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/uint.rs:507:15 [INFO] [stdout] | [INFO] [stdout] 507 | let max = u32::max_value() as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 507 - let max = u32::max_value() as usize; [INFO] [stdout] 507 + let max = u32::MAX as usize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ushort.rs:202:15 [INFO] [stdout] | [INFO] [stdout] 202 | let max = u16::max_value() as i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 202 - let max = u16::max_value() as i32; [INFO] [stdout] 202 + let max = u16::MAX as i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ushort.rs:260:15 [INFO] [stdout] | [INFO] [stdout] 260 | let max = u16::max_value() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 260 - let max = u16::max_value() as u32; [INFO] [stdout] 260 + let max = u16::MAX as u32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ushort.rs:312:15 [INFO] [stdout] | [INFO] [stdout] 312 | let max = u16::max_value() as f32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 312 - let max = u16::max_value() as f32; [INFO] [stdout] 312 + let max = u16::MAX as f32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ushort.rs:356:15 [INFO] [stdout] | [INFO] [stdout] 356 | let max = u16::max_value() as i64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 356 - let max = u16::max_value() as i64; [INFO] [stdout] 356 + let max = u16::MAX as i64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ushort.rs:414:15 [INFO] [stdout] | [INFO] [stdout] 414 | let max = u16::max_value() as u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 414 - let max = u16::max_value() as u64; [INFO] [stdout] 414 + let max = u16::MAX as u64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ushort.rs:466:15 [INFO] [stdout] | [INFO] [stdout] 466 | let max = u16::max_value() as f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 466 - let max = u16::max_value() as f64; [INFO] [stdout] 466 + let max = u16::MAX as f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ushort.rs:510:15 [INFO] [stdout] | [INFO] [stdout] 510 | let max = u16::max_value() as isize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 510 - let max = u16::max_value() as isize; [INFO] [stdout] 510 + let max = u16::MAX as isize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric method [INFO] [stdout] --> src/parse/ushort.rs:568:15 [INFO] [stdout] | [INFO] [stdout] 568 | let max = u16::max_value() as usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 568 - let max = u16::max_value() as usize; [INFO] [stdout] 568 + let max = u16::MAX as usize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:204:34 [INFO] [stdout] | [INFO] [stdout] 204 | pub fn adv_contains_all_chars(s: &String, search: &[char]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 204 - pub fn adv_contains_all_chars(s: &String, search: &[char]) [INFO] [stdout] 204 + pub fn adv_contains_all_chars(s: &str, search: &[char]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `search` [INFO] [stdout] --> src/string.rs:210:14 [INFO] [stdout] | [INFO] [stdout] 210 | for i in 0..search.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 210 - for i in 0..search.len() { [INFO] [stdout] 210 + for in &search { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:223:33 [INFO] [stdout] | [INFO] [stdout] 223 | pub fn adv_contains_all_strs(s: &String, search: &[&str]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 223 - pub fn adv_contains_all_strs(s: &String, search: &[&str]) [INFO] [stdout] 223 + pub fn adv_contains_all_strs(s: &str, search: &[&str]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `search` [INFO] [stdout] --> src/string.rs:229:14 [INFO] [stdout] | [INFO] [stdout] 229 | for i in 0..search.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 229 - for i in 0..search.len() { [INFO] [stdout] 229 + for in &search { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:242:33 [INFO] [stdout] | [INFO] [stdout] 242 | pub fn adv_contains_any_char(s: &String, search: &[char]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 242 - pub fn adv_contains_any_char(s: &String, search: &[char]) [INFO] [stdout] 242 + pub fn adv_contains_any_char(s: &str, search: &[char]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `search` [INFO] [stdout] --> src/string.rs:245:14 [INFO] [stdout] | [INFO] [stdout] 245 | for i in 0..search.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 245 - for i in 0..search.len() { [INFO] [stdout] 245 + for in &search { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/string.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | / match s.find(search[i]) { [INFO] [stdout] 247 | | Some(n) => return (true, n, search[i]), [INFO] [stdout] 248 | | None => {} [INFO] [stdout] 249 | | } [INFO] [stdout] | |_________^ help: try: `if let Some(n) = s.find(search[i]) { return (true, n, search[i]) }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:255:32 [INFO] [stdout] | [INFO] [stdout] 255 | pub fn adv_contains_any_str(s: &String, search: &[&str]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 255 - pub fn adv_contains_any_str(s: &String, search: &[&str]) [INFO] [stdout] 255 + pub fn adv_contains_any_str(s: &str, search: &[&str]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `search` [INFO] [stdout] --> src/string.rs:258:14 [INFO] [stdout] | [INFO] [stdout] 258 | for i in 0..search.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 258 - for i in 0..search.len() { [INFO] [stdout] 258 + for in &search { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/string.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 259 | / match s.find(search[i]) { [INFO] [stdout] 260 | | Some(n) => return (true, n, String::from(search[i])), [INFO] [stdout] 261 | | None => {} [INFO] [stdout] 262 | | } [INFO] [stdout] | |_________^ help: try: `if let Some(n) = s.find(search[i]) { return (true, n, String::from(search[i])) }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:268:34 [INFO] [stdout] | [INFO] [stdout] 268 | pub fn adv_contains_none_char(s: &String, search: &[char]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 268 - pub fn adv_contains_none_char(s: &String, search: &[char]) [INFO] [stdout] 268 + pub fn adv_contains_none_char(s: &str, search: &[char]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is used to index `search` [INFO] [stdout] --> src/string.rs:271:14 [INFO] [stdout] | [INFO] [stdout] 271 | for i in 0..search.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 271 - for i in 0..search.len() { [INFO] [stdout] 271 + for (i, ) in search.iter().enumerate() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/string.rs:272:9 [INFO] [stdout] | [INFO] [stdout] 272 | / match s.find(search[i]) { [INFO] [stdout] 273 | | Some(_) => return (false, i, search[i]), [INFO] [stdout] 274 | | None => {} [INFO] [stdout] 275 | | } [INFO] [stdout] | |_________^ help: try: `if let Some(_) = s.find(search[i]) { return (false, i, search[i]) }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:281:33 [INFO] [stdout] | [INFO] [stdout] 281 | pub fn adv_contains_none_str(s: &String, search: &[&str]) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 281 - pub fn adv_contains_none_str(s: &String, search: &[&str]) [INFO] [stdout] 281 + pub fn adv_contains_none_str(s: &str, search: &[&str]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is used to index `search` [INFO] [stdout] --> src/string.rs:284:14 [INFO] [stdout] | [INFO] [stdout] 284 | for i in 0..search.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 284 - for i in 0..search.len() { [INFO] [stdout] 284 + for (i, ) in search.iter().enumerate() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/string.rs:285:9 [INFO] [stdout] | [INFO] [stdout] 285 | / match s.find(search[i]) { [INFO] [stdout] 286 | | Some(_) => return (false, i, String::from(search[i])), [INFO] [stdout] 287 | | None => {} [INFO] [stdout] 288 | | } [INFO] [stdout] | |_________^ help: try: `if let Some(_) = s.find(search[i]) { return (false, i, String::from(search[i])) }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:330:25 [INFO] [stdout] | [INFO] [stdout] 330 | pub fn adv_ends_with(s: &String, search: &str) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 330 ~ pub fn adv_ends_with(s: &str, search: &str) [INFO] [stdout] 331 | -> (bool, String) { [INFO] [stdout] 332 | [INFO] [stdout] 333 ~ let temp = s.to_owned(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:343:27 [INFO] [stdout] | [INFO] [stdout] 343 | pub fn adv_starts_with(s: &String, search: &str) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 343 ~ pub fn adv_starts_with(s: &str, search: &str) [INFO] [stdout] 344 | -> (bool, String) { [INFO] [stdout] 345 | [INFO] [stdout] 346 ~ let temp = s.to_owned(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/string.rs:349:29 [INFO] [stdout] | [INFO] [stdout] 349 | (true, String::from(&temp[search.len()..])) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/string.rs:348:5 [INFO] [stdout] | [INFO] [stdout] 348 | if temp.starts_with(search) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip [INFO] [stdout] = note: `#[warn(clippy::manual_strip)]` on by default [INFO] [stdout] help: try using the `strip_prefix` method [INFO] [stdout] | [INFO] [stdout] 348 ~ if let Some() = temp.strip_prefix(search) { [INFO] [stdout] 349 ~ (true, String::from()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:355:25 [INFO] [stdout] | [INFO] [stdout] 355 | pub fn adv_has_alpha(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 355 - pub fn adv_has_alpha(s: &String) [INFO] [stdout] 355 + pub fn adv_has_alpha(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:361:32 [INFO] [stdout] | [INFO] [stdout] 361 | pub fn adv_has_alphanumeric(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 361 - pub fn adv_has_alphanumeric(s: &String) [INFO] [stdout] 361 + pub fn adv_has_alphanumeric(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:367:38 [INFO] [stdout] | [INFO] [stdout] 367 | pub fn adv_has_alphanumeric_space(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 367 - pub fn adv_has_alphanumeric_space(s: &String) [INFO] [stdout] 367 + pub fn adv_has_alphanumeric_space(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:373:31 [INFO] [stdout] | [INFO] [stdout] 373 | pub fn adv_has_alpha_space(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 373 - pub fn adv_has_alpha_space(s: &String) [INFO] [stdout] 373 + pub fn adv_has_alpha_space(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:379:29 [INFO] [stdout] | [INFO] [stdout] 379 | pub fn adv_has_lowercase(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 379 - pub fn adv_has_lowercase(s: &String) [INFO] [stdout] 379 + pub fn adv_has_lowercase(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:385:27 [INFO] [stdout] | [INFO] [stdout] 385 | pub fn adv_has_numeric(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 385 - pub fn adv_has_numeric(s: &String) [INFO] [stdout] 385 + pub fn adv_has_numeric(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:391:33 [INFO] [stdout] | [INFO] [stdout] 391 | pub fn adv_has_numeric_space(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 391 - pub fn adv_has_numeric_space(s: &String) [INFO] [stdout] 391 + pub fn adv_has_numeric_space(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:397:29 [INFO] [stdout] | [INFO] [stdout] 397 | pub fn adv_has_uppercase(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 397 - pub fn adv_has_uppercase(s: &String) [INFO] [stdout] 397 + pub fn adv_has_uppercase(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:403:30 [INFO] [stdout] | [INFO] [stdout] 403 | pub fn adv_has_whitespace(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 403 - pub fn adv_has_whitespace(s: &String) [INFO] [stdout] 403 + pub fn adv_has_whitespace(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:463:24 [INFO] [stdout] | [INFO] [stdout] 463 | pub fn adv_is_alpha(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 463 - pub fn adv_is_alpha(s: &String) [INFO] [stdout] 463 + pub fn adv_is_alpha(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:469:31 [INFO] [stdout] | [INFO] [stdout] 469 | pub fn adv_is_alphanumeric(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 469 - pub fn adv_is_alphanumeric(s: &String) [INFO] [stdout] 469 + pub fn adv_is_alphanumeric(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:475:37 [INFO] [stdout] | [INFO] [stdout] 475 | pub fn adv_is_alphanumeric_space(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 475 - pub fn adv_is_alphanumeric_space(s: &String) [INFO] [stdout] 475 + pub fn adv_is_alphanumeric_space(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:481:30 [INFO] [stdout] | [INFO] [stdout] 481 | pub fn adv_is_alpha_space(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 481 - pub fn adv_is_alpha_space(s: &String) [INFO] [stdout] 481 + pub fn adv_is_alpha_space(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:487:28 [INFO] [stdout] | [INFO] [stdout] 487 | pub fn adv_is_lowercase(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 487 - pub fn adv_is_lowercase(s: &String) [INFO] [stdout] 487 + pub fn adv_is_lowercase(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:493:26 [INFO] [stdout] | [INFO] [stdout] 493 | pub fn adv_is_numeric(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 493 - pub fn adv_is_numeric(s: &String) [INFO] [stdout] 493 + pub fn adv_is_numeric(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:499:32 [INFO] [stdout] | [INFO] [stdout] 499 | pub fn adv_is_numeric_space(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 499 - pub fn adv_is_numeric_space(s: &String) [INFO] [stdout] 499 + pub fn adv_is_numeric_space(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:505:28 [INFO] [stdout] | [INFO] [stdout] 505 | pub fn adv_is_uppercase(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 505 - pub fn adv_is_uppercase(s: &String) [INFO] [stdout] 505 + pub fn adv_is_uppercase(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:511:29 [INFO] [stdout] | [INFO] [stdout] 511 | pub fn adv_is_whitespace(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 511 - pub fn adv_is_whitespace(s: &String) [INFO] [stdout] 511 + pub fn adv_is_whitespace(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/string.rs:593:13 [INFO] [stdout] | [INFO] [stdout] 593 | return (true, vec, target); [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 593 - return (true, vec, target); [INFO] [stdout] 593 + (true, vec, target) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/string.rs:596:13 [INFO] [stdout] | [INFO] [stdout] 596 | return (false, Vec::<(usize, usize)>::new(), String::new()); [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 596 - return (false, Vec::<(usize, usize)>::new(), String::new()); [INFO] [stdout] 596 + (false, Vec::<(usize, usize)>::new(), String::new()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/string.rs:588:21 [INFO] [stdout] | [INFO] [stdout] 588 | k = k + n; [INFO] [stdout] | ^^^^^^^^^ help: replace it with: `k += n` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] = note: `#[warn(clippy::assign_op_pattern)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/string.rs:589:21 [INFO] [stdout] | [INFO] [stdout] 589 | i = i + n; [INFO] [stdout] | ^^^^^^^^^ help: replace it with: `i += n` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/string.rs:619:13 [INFO] [stdout] | [INFO] [stdout] 619 | return (true, j, target); [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 619 - return (true, j, target); [INFO] [stdout] 619 + (true, j, target) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/string.rs:622:21 [INFO] [stdout] | [INFO] [stdout] 622 | Err(_) => { return (false, 0, String::new()); } [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] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 622 - Err(_) => { return (false, 0, String::new()); } [INFO] [stdout] 622 + Err(_) => { (false, 0, String::new())} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/string.rs:616:17 [INFO] [stdout] | [INFO] [stdout] 616 | k = k + n; [INFO] [stdout] | ^^^^^^^^^ help: replace it with: `k += n` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:668:19 [INFO] [stdout] | [INFO] [stdout] 668 | pub fn reverse(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 668 - pub fn reverse(s: &String) [INFO] [stdout] 668 + pub fn reverse(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:687:27 [INFO] [stdout] | [INFO] [stdout] 687 | pub fn cmp_ignore_case(s: &String, cmp: &str) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 687 - pub fn cmp_ignore_case(s: &String, cmp: &str) [INFO] [stdout] 687 + pub fn cmp_ignore_case(s: &str, cmp: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: binary comparison to literal `Option::None` [INFO] [stdout] --> src/string.rs:705:12 [INFO] [stdout] | [INFO] [stdout] 705 | if n1 != None || n2 != None { [INFO] [stdout] | ^^^^^^^^^^ help: use `Option::is_some()` instead: `n1.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none [INFO] [stdout] = note: `#[warn(clippy::partialeq_to_none)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: binary comparison to literal `Option::None` [INFO] [stdout] --> src/string.rs:705:26 [INFO] [stdout] | [INFO] [stdout] 705 | if n1 != None || n2 != None { [INFO] [stdout] | ^^^^^^^^^^ help: use `Option::is_some()` instead: `n2.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/string.rs:709:9 [INFO] [stdout] | [INFO] [stdout] 709 | i = i + 1; [INFO] [stdout] | ^^^^^^^^^ help: replace it with: `i += 1` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: binary comparison to literal `Option::None` [INFO] [stdout] --> src/string.rs:732:12 [INFO] [stdout] | [INFO] [stdout] 732 | if n == None { return None; } [INFO] [stdout] | ^^^^^^^^^ help: use `Option::is_none()` instead: `n.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/string.rs:735:9 [INFO] [stdout] | [INFO] [stdout] 735 | i = i + 1; [INFO] [stdout] | ^^^^^^^^^ help: replace it with: `i += 1` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&String` instead of `&str` involves a new object where a slice will do [INFO] [stdout] --> src/string.rs:748:20 [INFO] [stdout] | [INFO] [stdout] 748 | pub fn peek_opt(s: &String) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 748 - pub fn peek_opt(s: &String) [INFO] [stdout] 748 + pub fn peek_opt(s: &str) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: binary comparison to literal `Option::None` [INFO] [stdout] --> src/lib.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | if n == None { break; } [INFO] [stdout] | ^^^^^^^^^ help: use `Option::is_none()` instead: `n.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/string.rs:720:24 [INFO] [stdout] | [INFO] [stdout] 720 | None => panic!(format!("string doesn't contain {}", search)) [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] 720 - None => panic!(format!("string doesn't contain {}", search)) [INFO] [stdout] 720 + None => panic!("string doesn't contain {}", search) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: importing a legacy numeric constant [INFO] [stdout] --> tests/array_impl.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::usize::MAX; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove this import and use the associated constant `usize::MAX` from the primitive type instead [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/array_impl.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | assert_eq!(true, ary.swaping(1, 3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_assert_comparison)]` on by default [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 10 - assert_eq!(true, ary.swaping(1, 3)); [INFO] [stdout] 10 + assert!(ary.swaping(1, 3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/array_impl.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(false, ary.swaping(0, 4)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 13 - assert_eq!(false, ary.swaping(0, 4)); [INFO] [stdout] 13 + assert!(!ary.swaping(0, 4)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/array_impl.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(true, ary.swaping(1, 3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 21 - assert_eq!(true, ary.swaping(1, 3)); [INFO] [stdout] 21 + assert!(ary.swaping(1, 3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/array_impl.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(false, ary.swaping(0, 4)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 24 - assert_eq!(false, ary.swaping(0, 4)); [INFO] [stdout] 24 + assert!(!ary.swaping(0, 4)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> tests/array_impl.rs:33:16 [INFO] [stdout] | [INFO] [stdout] 33 | assert_eq!(MAX, ary.index_of(&3)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 33 | assert_eq!(usize::MAX, ary.index_of(&3)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> tests/array_impl.rs:41:16 [INFO] [stdout] | [INFO] [stdout] 41 | assert_eq!(MAX, ary.index_of(&"three")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 41 | assert_eq!(usize::MAX, ary.index_of(&"three")); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:471:5 [INFO] [stdout] | [INFO] [stdout] 471 | assert_eq!(true, text.contains_all_chars(&chars1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_assert_comparison)]` on by default [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 471 - assert_eq!(true, text.contains_all_chars(&chars1)); [INFO] [stdout] 471 + assert!(text.contains_all_chars(&chars1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:472:5 [INFO] [stdout] | [INFO] [stdout] 472 | assert_eq!(false, text.contains_all_chars(&chars2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 472 - assert_eq!(false, text.contains_all_chars(&chars2)); [INFO] [stdout] 472 + assert!(!text.contains_all_chars(&chars2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:473:5 [INFO] [stdout] | [INFO] [stdout] 473 | assert_eq!(false, text.contains_all_chars(&chars3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 473 - assert_eq!(false, text.contains_all_chars(&chars3)); [INFO] [stdout] 473 + assert!(!text.contains_all_chars(&chars3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:483:5 [INFO] [stdout] | [INFO] [stdout] 483 | assert_eq!(true, text.contains_all_strs(&strs1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 483 - assert_eq!(true, text.contains_all_strs(&strs1)); [INFO] [stdout] 483 + assert!(text.contains_all_strs(&strs1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:484:5 [INFO] [stdout] | [INFO] [stdout] 484 | assert_eq!(false, text.contains_all_strs(&strs2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 484 - assert_eq!(false, text.contains_all_strs(&strs2)); [INFO] [stdout] 484 + assert!(!text.contains_all_strs(&strs2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:485:5 [INFO] [stdout] | [INFO] [stdout] 485 | assert_eq!(false, text.contains_all_strs(&strs3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 485 - assert_eq!(false, text.contains_all_strs(&strs3)); [INFO] [stdout] 485 + assert!(!text.contains_all_strs(&strs3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:495:5 [INFO] [stdout] | [INFO] [stdout] 495 | assert_eq!(true, text.contains_any_char(&chars1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 495 - assert_eq!(true, text.contains_any_char(&chars1)); [INFO] [stdout] 495 + assert!(text.contains_any_char(&chars1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:496:5 [INFO] [stdout] | [INFO] [stdout] 496 | assert_eq!(true, text.contains_any_char(&chars2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 496 - assert_eq!(true, text.contains_any_char(&chars2)); [INFO] [stdout] 496 + assert!(text.contains_any_char(&chars2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:497:5 [INFO] [stdout] | [INFO] [stdout] 497 | assert_eq!(false, text.contains_any_char(&chars3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 497 - assert_eq!(false, text.contains_any_char(&chars3)); [INFO] [stdout] 497 + assert!(!text.contains_any_char(&chars3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:507:5 [INFO] [stdout] | [INFO] [stdout] 507 | assert_eq!(true, text.contains_any_str(&strs1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 507 - assert_eq!(true, text.contains_any_str(&strs1)); [INFO] [stdout] 507 + assert!(text.contains_any_str(&strs1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:508:5 [INFO] [stdout] | [INFO] [stdout] 508 | assert_eq!(true, text.contains_any_str(&strs2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 508 - assert_eq!(true, text.contains_any_str(&strs2)); [INFO] [stdout] 508 + assert!(text.contains_any_str(&strs2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:509:5 [INFO] [stdout] | [INFO] [stdout] 509 | assert_eq!(false, text.contains_any_str(&strs3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 509 - assert_eq!(false, text.contains_any_str(&strs3)); [INFO] [stdout] 509 + assert!(!text.contains_any_str(&strs3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:519:5 [INFO] [stdout] | [INFO] [stdout] 519 | assert_eq!(false, text.contains_none_char(&chars1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 519 - assert_eq!(false, text.contains_none_char(&chars1)); [INFO] [stdout] 519 + assert!(!text.contains_none_char(&chars1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:520:5 [INFO] [stdout] | [INFO] [stdout] 520 | assert_eq!(false, text.contains_none_char(&chars2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 520 - assert_eq!(false, text.contains_none_char(&chars2)); [INFO] [stdout] 520 + assert!(!text.contains_none_char(&chars2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:521:5 [INFO] [stdout] | [INFO] [stdout] 521 | assert_eq!(true, text.contains_none_char(&chars3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 521 - assert_eq!(true, text.contains_none_char(&chars3)); [INFO] [stdout] 521 + assert!(text.contains_none_char(&chars3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:531:5 [INFO] [stdout] | [INFO] [stdout] 531 | assert_eq!(false, text.contains_none_str(&strs1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 531 - assert_eq!(false, text.contains_none_str(&strs1)); [INFO] [stdout] 531 + assert!(!text.contains_none_str(&strs1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:532:5 [INFO] [stdout] | [INFO] [stdout] 532 | assert_eq!(false, text.contains_none_str(&strs2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 532 - assert_eq!(false, text.contains_none_str(&strs2)); [INFO] [stdout] 532 + assert!(!text.contains_none_str(&strs2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:533:5 [INFO] [stdout] | [INFO] [stdout] 533 | assert_eq!(true, text.contains_none_str(&strs3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 533 - assert_eq!(true, text.contains_none_str(&strs3)); [INFO] [stdout] 533 + assert!(text.contains_none_str(&strs3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:542:5 [INFO] [stdout] | [INFO] [stdout] 542 | assert_eq!(true, text1.cmp_ignore_case(&text2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 542 - assert_eq!(true, text1.cmp_ignore_case(&text2)); [INFO] [stdout] 542 + assert!(text1.cmp_ignore_case(&text2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:543:5 [INFO] [stdout] | [INFO] [stdout] 543 | assert_eq!(false, text1.cmp_ignore_case(&text3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 543 - assert_eq!(false, text1.cmp_ignore_case(&text3)); [INFO] [stdout] 543 + assert!(!text1.cmp_ignore_case(&text3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:596:5 [INFO] [stdout] | [INFO] [stdout] 596 | assert_eq!(true, text1.has_alpha()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 596 - assert_eq!(true, text1.has_alpha()); [INFO] [stdout] 596 + assert!(text1.has_alpha()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:597:5 [INFO] [stdout] | [INFO] [stdout] 597 | assert_eq!(false, text2.has_alpha()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 597 - assert_eq!(false, text2.has_alpha()); [INFO] [stdout] 597 + assert!(!text2.has_alpha()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:605:5 [INFO] [stdout] | [INFO] [stdout] 605 | assert_eq!(true, text1.has_alphanumeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 605 - assert_eq!(true, text1.has_alphanumeric()); [INFO] [stdout] 605 + assert!(text1.has_alphanumeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:606:5 [INFO] [stdout] | [INFO] [stdout] 606 | assert_eq!(false, text2.has_alphanumeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 606 - assert_eq!(false, text2.has_alphanumeric()); [INFO] [stdout] 606 + assert!(!text2.has_alphanumeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:614:5 [INFO] [stdout] | [INFO] [stdout] 614 | assert_eq!(true, text1.has_alphanumeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 614 - assert_eq!(true, text1.has_alphanumeric_space()); [INFO] [stdout] 614 + assert!(text1.has_alphanumeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:615:5 [INFO] [stdout] | [INFO] [stdout] 615 | assert_eq!(false, text2.has_alphanumeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 615 - assert_eq!(false, text2.has_alphanumeric_space()); [INFO] [stdout] 615 + assert!(!text2.has_alphanumeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:623:5 [INFO] [stdout] | [INFO] [stdout] 623 | assert_eq!(true, text1.has_alpha_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 623 - assert_eq!(true, text1.has_alpha_space()); [INFO] [stdout] 623 + assert!(text1.has_alpha_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:624:5 [INFO] [stdout] | [INFO] [stdout] 624 | assert_eq!(false, text2.has_alpha_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 624 - assert_eq!(false, text2.has_alpha_space()); [INFO] [stdout] 624 + assert!(!text2.has_alpha_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:632:5 [INFO] [stdout] | [INFO] [stdout] 632 | assert_eq!(true, text1.has_lowercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 632 - assert_eq!(true, text1.has_lowercase()); [INFO] [stdout] 632 + assert!(text1.has_lowercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:633:5 [INFO] [stdout] | [INFO] [stdout] 633 | assert_eq!(false, text2.has_lowercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 633 - assert_eq!(false, text2.has_lowercase()); [INFO] [stdout] 633 + assert!(!text2.has_lowercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:641:5 [INFO] [stdout] | [INFO] [stdout] 641 | assert_eq!(true, text1.has_numeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 641 - assert_eq!(true, text1.has_numeric()); [INFO] [stdout] 641 + assert!(text1.has_numeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:642:5 [INFO] [stdout] | [INFO] [stdout] 642 | assert_eq!(false, text2.has_numeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 642 - assert_eq!(false, text2.has_numeric()); [INFO] [stdout] 642 + assert!(!text2.has_numeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:650:5 [INFO] [stdout] | [INFO] [stdout] 650 | assert_eq!(true, text1.has_numeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 650 - assert_eq!(true, text1.has_numeric_space()); [INFO] [stdout] 650 + assert!(text1.has_numeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:651:5 [INFO] [stdout] | [INFO] [stdout] 651 | assert_eq!(false, text2.has_numeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 651 - assert_eq!(false, text2.has_numeric_space()); [INFO] [stdout] 651 + assert!(!text2.has_numeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:659:5 [INFO] [stdout] | [INFO] [stdout] 659 | assert_eq!(true, text1.has_uppercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 659 - assert_eq!(true, text1.has_uppercase()); [INFO] [stdout] 659 + assert!(text1.has_uppercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:660:5 [INFO] [stdout] | [INFO] [stdout] 660 | assert_eq!(false, text2.has_uppercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 660 - assert_eq!(false, text2.has_uppercase()); [INFO] [stdout] 660 + assert!(!text2.has_uppercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:668:5 [INFO] [stdout] | [INFO] [stdout] 668 | assert_eq!(true, text1.has_whitespace()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 668 - assert_eq!(true, text1.has_whitespace()); [INFO] [stdout] 668 + assert!(text1.has_whitespace()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:669:5 [INFO] [stdout] | [INFO] [stdout] 669 | assert_eq!(false, text2.has_whitespace()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 669 - assert_eq!(false, text2.has_whitespace()); [INFO] [stdout] 669 + assert!(!text2.has_whitespace()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:677:5 [INFO] [stdout] | [INFO] [stdout] 677 | assert_eq!(true, text1.is_alpha()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 677 - assert_eq!(true, text1.is_alpha()); [INFO] [stdout] 677 + assert!(text1.is_alpha()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:678:5 [INFO] [stdout] | [INFO] [stdout] 678 | assert_eq!(false, text2.is_alpha()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 678 - assert_eq!(false, text2.is_alpha()); [INFO] [stdout] 678 + assert!(!text2.is_alpha()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:686:5 [INFO] [stdout] | [INFO] [stdout] 686 | assert_eq!(true, text1.is_alphanumeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 686 - assert_eq!(true, text1.is_alphanumeric()); [INFO] [stdout] 686 + assert!(text1.is_alphanumeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:687:5 [INFO] [stdout] | [INFO] [stdout] 687 | assert_eq!(false, text2.is_alphanumeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 687 - assert_eq!(false, text2.is_alphanumeric()); [INFO] [stdout] 687 + assert!(!text2.is_alphanumeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:695:5 [INFO] [stdout] | [INFO] [stdout] 695 | assert_eq!(true, text1.is_alphanumeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 695 - assert_eq!(true, text1.is_alphanumeric_space()); [INFO] [stdout] 695 + assert!(text1.is_alphanumeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:696:5 [INFO] [stdout] | [INFO] [stdout] 696 | assert_eq!(false, text2.is_alphanumeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 696 - assert_eq!(false, text2.is_alphanumeric_space()); [INFO] [stdout] 696 + assert!(!text2.is_alphanumeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:704:5 [INFO] [stdout] | [INFO] [stdout] 704 | assert_eq!(true, text1.is_alpha_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 704 - assert_eq!(true, text1.is_alpha_space()); [INFO] [stdout] 704 + assert!(text1.is_alpha_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:705:5 [INFO] [stdout] | [INFO] [stdout] 705 | assert_eq!(false, text2.is_alpha_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 705 - assert_eq!(false, text2.is_alpha_space()); [INFO] [stdout] 705 + assert!(!text2.is_alpha_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:713:5 [INFO] [stdout] | [INFO] [stdout] 713 | assert_eq!(true, text1.is_lowercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 713 - assert_eq!(true, text1.is_lowercase()); [INFO] [stdout] 713 + assert!(text1.is_lowercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:714:5 [INFO] [stdout] | [INFO] [stdout] 714 | assert_eq!(false, text2.is_lowercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 714 - assert_eq!(false, text2.is_lowercase()); [INFO] [stdout] 714 + assert!(!text2.is_lowercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:722:5 [INFO] [stdout] | [INFO] [stdout] 722 | assert_eq!(true, text1.is_numeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 722 - assert_eq!(true, text1.is_numeric()); [INFO] [stdout] 722 + assert!(text1.is_numeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:723:5 [INFO] [stdout] | [INFO] [stdout] 723 | assert_eq!(false, text2.is_numeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 723 - assert_eq!(false, text2.is_numeric()); [INFO] [stdout] 723 + assert!(!text2.is_numeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:731:5 [INFO] [stdout] | [INFO] [stdout] 731 | assert_eq!(true, text1.is_numeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 731 - assert_eq!(true, text1.is_numeric_space()); [INFO] [stdout] 731 + assert!(text1.is_numeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:732:5 [INFO] [stdout] | [INFO] [stdout] 732 | assert_eq!(false, text2.is_numeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 732 - assert_eq!(false, text2.is_numeric_space()); [INFO] [stdout] 732 + assert!(!text2.is_numeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:740:5 [INFO] [stdout] | [INFO] [stdout] 740 | assert_eq!(true, text1.is_uppercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 740 - assert_eq!(true, text1.is_uppercase()); [INFO] [stdout] 740 + assert!(text1.is_uppercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:741:5 [INFO] [stdout] | [INFO] [stdout] 741 | assert_eq!(false, text2.is_uppercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 741 - assert_eq!(false, text2.is_uppercase()); [INFO] [stdout] 741 + assert!(!text2.is_uppercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:749:5 [INFO] [stdout] | [INFO] [stdout] 749 | assert_eq!(true, text1.is_whitespace()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 749 - assert_eq!(true, text1.is_whitespace()); [INFO] [stdout] 749 + assert!(text1.is_whitespace()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:750:5 [INFO] [stdout] | [INFO] [stdout] 750 | assert_eq!(false, text2.is_whitespace()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 750 - assert_eq!(false, text2.is_whitespace()); [INFO] [stdout] 750 + assert!(!text2.is_whitespace()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:799:5 [INFO] [stdout] | [INFO] [stdout] 799 | assert_eq!(true, text.remove_all_regex_mut(regex)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 799 - assert_eq!(true, text.remove_all_regex_mut(regex)); [INFO] [stdout] 799 + assert!(text.remove_all_regex_mut(regex)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:808:5 [INFO] [stdout] | [INFO] [stdout] 808 | assert_eq!(false, text.remove_all_regex_mut(regex)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 808 - assert_eq!(false, text.remove_all_regex_mut(regex)); [INFO] [stdout] 808 + assert!(!text.remove_all_regex_mut(regex)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:837:5 [INFO] [stdout] | [INFO] [stdout] 837 | assert_eq!(true, text.remove_regex_mut(regex)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 837 - assert_eq!(true, text.remove_regex_mut(regex)); [INFO] [stdout] 837 + assert!(text.remove_regex_mut(regex)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:846:5 [INFO] [stdout] | [INFO] [stdout] 846 | assert_eq!(false, text.remove_regex_mut(regex)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 846 - assert_eq!(false, text.remove_regex_mut(regex)); [INFO] [stdout] 846 + assert!(!text.remove_regex_mut(regex)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:471:5 [INFO] [stdout] | [INFO] [stdout] 471 | assert_eq!(true, text.contains_all_chars(&chars1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_assert_comparison)]` on by default [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 471 - assert_eq!(true, text.contains_all_chars(&chars1)); [INFO] [stdout] 471 + assert!(text.contains_all_chars(&chars1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:472:5 [INFO] [stdout] | [INFO] [stdout] 472 | assert_eq!(false, text.contains_all_chars(&chars2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 472 - assert_eq!(false, text.contains_all_chars(&chars2)); [INFO] [stdout] 472 + assert!(!text.contains_all_chars(&chars2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:473:5 [INFO] [stdout] | [INFO] [stdout] 473 | assert_eq!(false, text.contains_all_chars(&chars3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 473 - assert_eq!(false, text.contains_all_chars(&chars3)); [INFO] [stdout] 473 + assert!(!text.contains_all_chars(&chars3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:483:5 [INFO] [stdout] | [INFO] [stdout] 483 | assert_eq!(true, text.contains_all_strs(&strs1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 483 - assert_eq!(true, text.contains_all_strs(&strs1)); [INFO] [stdout] 483 + assert!(text.contains_all_strs(&strs1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:484:5 [INFO] [stdout] | [INFO] [stdout] 484 | assert_eq!(false, text.contains_all_strs(&strs2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 484 - assert_eq!(false, text.contains_all_strs(&strs2)); [INFO] [stdout] 484 + assert!(!text.contains_all_strs(&strs2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:485:5 [INFO] [stdout] | [INFO] [stdout] 485 | assert_eq!(false, text.contains_all_strs(&strs3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 485 - assert_eq!(false, text.contains_all_strs(&strs3)); [INFO] [stdout] 485 + assert!(!text.contains_all_strs(&strs3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:495:5 [INFO] [stdout] | [INFO] [stdout] 495 | assert_eq!(true, text.contains_any_char(&chars1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 495 - assert_eq!(true, text.contains_any_char(&chars1)); [INFO] [stdout] 495 + assert!(text.contains_any_char(&chars1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:496:5 [INFO] [stdout] | [INFO] [stdout] 496 | assert_eq!(true, text.contains_any_char(&chars2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 496 - assert_eq!(true, text.contains_any_char(&chars2)); [INFO] [stdout] 496 + assert!(text.contains_any_char(&chars2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:497:5 [INFO] [stdout] | [INFO] [stdout] 497 | assert_eq!(false, text.contains_any_char(&chars3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 497 - assert_eq!(false, text.contains_any_char(&chars3)); [INFO] [stdout] 497 + assert!(!text.contains_any_char(&chars3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:507:5 [INFO] [stdout] | [INFO] [stdout] 507 | assert_eq!(true, text.contains_any_str(&strs1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 507 - assert_eq!(true, text.contains_any_str(&strs1)); [INFO] [stdout] 507 + assert!(text.contains_any_str(&strs1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:508:5 [INFO] [stdout] | [INFO] [stdout] 508 | assert_eq!(true, text.contains_any_str(&strs2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 508 - assert_eq!(true, text.contains_any_str(&strs2)); [INFO] [stdout] 508 + assert!(text.contains_any_str(&strs2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:509:5 [INFO] [stdout] | [INFO] [stdout] 509 | assert_eq!(false, text.contains_any_str(&strs3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 509 - assert_eq!(false, text.contains_any_str(&strs3)); [INFO] [stdout] 509 + assert!(!text.contains_any_str(&strs3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:519:5 [INFO] [stdout] | [INFO] [stdout] 519 | assert_eq!(false, text.contains_none_char(&chars1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 519 - assert_eq!(false, text.contains_none_char(&chars1)); [INFO] [stdout] 519 + assert!(!text.contains_none_char(&chars1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:520:5 [INFO] [stdout] | [INFO] [stdout] 520 | assert_eq!(false, text.contains_none_char(&chars2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 520 - assert_eq!(false, text.contains_none_char(&chars2)); [INFO] [stdout] 520 + assert!(!text.contains_none_char(&chars2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:521:5 [INFO] [stdout] | [INFO] [stdout] 521 | assert_eq!(true, text.contains_none_char(&chars3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 521 - assert_eq!(true, text.contains_none_char(&chars3)); [INFO] [stdout] 521 + assert!(text.contains_none_char(&chars3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:531:5 [INFO] [stdout] | [INFO] [stdout] 531 | assert_eq!(false, text.contains_none_str(&strs1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 531 - assert_eq!(false, text.contains_none_str(&strs1)); [INFO] [stdout] 531 + assert!(!text.contains_none_str(&strs1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:532:5 [INFO] [stdout] | [INFO] [stdout] 532 | assert_eq!(false, text.contains_none_str(&strs2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 532 - assert_eq!(false, text.contains_none_str(&strs2)); [INFO] [stdout] 532 + assert!(!text.contains_none_str(&strs2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:533:5 [INFO] [stdout] | [INFO] [stdout] 533 | assert_eq!(true, text.contains_none_str(&strs3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 533 - assert_eq!(true, text.contains_none_str(&strs3)); [INFO] [stdout] 533 + assert!(text.contains_none_str(&strs3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:542:5 [INFO] [stdout] | [INFO] [stdout] 542 | assert_eq!(true, text1.cmp_ignore_case(&text2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 542 - assert_eq!(true, text1.cmp_ignore_case(&text2)); [INFO] [stdout] 542 + assert!(text1.cmp_ignore_case(&text2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/str_impl.rs:542:44 [INFO] [stdout] | [INFO] [stdout] 542 | assert_eq!(true, text1.cmp_ignore_case(&text2)); [INFO] [stdout] | ^^^^^^ help: change this to: `text2` [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: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:543:5 [INFO] [stdout] | [INFO] [stdout] 543 | assert_eq!(false, text1.cmp_ignore_case(&text3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 543 - assert_eq!(false, text1.cmp_ignore_case(&text3)); [INFO] [stdout] 543 + assert!(!text1.cmp_ignore_case(&text3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/str_impl.rs:543:45 [INFO] [stdout] | [INFO] [stdout] 543 | assert_eq!(false, text1.cmp_ignore_case(&text3)); [INFO] [stdout] | ^^^^^^ help: change this to: `text3` [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: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:596:5 [INFO] [stdout] | [INFO] [stdout] 596 | assert_eq!(true, text1.has_alpha()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 596 - assert_eq!(true, text1.has_alpha()); [INFO] [stdout] 596 + assert!(text1.has_alpha()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:597:5 [INFO] [stdout] | [INFO] [stdout] 597 | assert_eq!(false, text2.has_alpha()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 597 - assert_eq!(false, text2.has_alpha()); [INFO] [stdout] 597 + assert!(!text2.has_alpha()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:605:5 [INFO] [stdout] | [INFO] [stdout] 605 | assert_eq!(true, text1.has_alphanumeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 605 - assert_eq!(true, text1.has_alphanumeric()); [INFO] [stdout] 605 + assert!(text1.has_alphanumeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:606:5 [INFO] [stdout] | [INFO] [stdout] 606 | assert_eq!(false, text2.has_alphanumeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 606 - assert_eq!(false, text2.has_alphanumeric()); [INFO] [stdout] 606 + assert!(!text2.has_alphanumeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:614:5 [INFO] [stdout] | [INFO] [stdout] 614 | assert_eq!(true, text1.has_alphanumeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 614 - assert_eq!(true, text1.has_alphanumeric_space()); [INFO] [stdout] 614 + assert!(text1.has_alphanumeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:615:5 [INFO] [stdout] | [INFO] [stdout] 615 | assert_eq!(false, text2.has_alphanumeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 615 - assert_eq!(false, text2.has_alphanumeric_space()); [INFO] [stdout] 615 + assert!(!text2.has_alphanumeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:623:5 [INFO] [stdout] | [INFO] [stdout] 623 | assert_eq!(true, text1.has_alpha_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 623 - assert_eq!(true, text1.has_alpha_space()); [INFO] [stdout] 623 + assert!(text1.has_alpha_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:624:5 [INFO] [stdout] | [INFO] [stdout] 624 | assert_eq!(false, text2.has_alpha_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 624 - assert_eq!(false, text2.has_alpha_space()); [INFO] [stdout] 624 + assert!(!text2.has_alpha_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:632:5 [INFO] [stdout] | [INFO] [stdout] 632 | assert_eq!(true, text1.has_lowercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 632 - assert_eq!(true, text1.has_lowercase()); [INFO] [stdout] 632 + assert!(text1.has_lowercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:633:5 [INFO] [stdout] | [INFO] [stdout] 633 | assert_eq!(false, text2.has_lowercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 633 - assert_eq!(false, text2.has_lowercase()); [INFO] [stdout] 633 + assert!(!text2.has_lowercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:641:5 [INFO] [stdout] | [INFO] [stdout] 641 | assert_eq!(true, text1.has_numeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 641 - assert_eq!(true, text1.has_numeric()); [INFO] [stdout] 641 + assert!(text1.has_numeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:642:5 [INFO] [stdout] | [INFO] [stdout] 642 | assert_eq!(false, text2.has_numeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 642 - assert_eq!(false, text2.has_numeric()); [INFO] [stdout] 642 + assert!(!text2.has_numeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:650:5 [INFO] [stdout] | [INFO] [stdout] 650 | assert_eq!(true, text1.has_numeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 650 - assert_eq!(true, text1.has_numeric_space()); [INFO] [stdout] 650 + assert!(text1.has_numeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:651:5 [INFO] [stdout] | [INFO] [stdout] 651 | assert_eq!(false, text2.has_numeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 651 - assert_eq!(false, text2.has_numeric_space()); [INFO] [stdout] 651 + assert!(!text2.has_numeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:659:5 [INFO] [stdout] | [INFO] [stdout] 659 | assert_eq!(true, text1.has_uppercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 659 - assert_eq!(true, text1.has_uppercase()); [INFO] [stdout] 659 + assert!(text1.has_uppercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:660:5 [INFO] [stdout] | [INFO] [stdout] 660 | assert_eq!(false, text2.has_uppercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 660 - assert_eq!(false, text2.has_uppercase()); [INFO] [stdout] 660 + assert!(!text2.has_uppercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:668:5 [INFO] [stdout] | [INFO] [stdout] 668 | assert_eq!(true, text1.has_whitespace()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 668 - assert_eq!(true, text1.has_whitespace()); [INFO] [stdout] 668 + assert!(text1.has_whitespace()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:669:5 [INFO] [stdout] | [INFO] [stdout] 669 | assert_eq!(false, text2.has_whitespace()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 669 - assert_eq!(false, text2.has_whitespace()); [INFO] [stdout] 669 + assert!(!text2.has_whitespace()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:677:5 [INFO] [stdout] | [INFO] [stdout] 677 | assert_eq!(true, text1.is_alpha()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 677 - assert_eq!(true, text1.is_alpha()); [INFO] [stdout] 677 + assert!(text1.is_alpha()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:678:5 [INFO] [stdout] | [INFO] [stdout] 678 | assert_eq!(false, text2.is_alpha()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 678 - assert_eq!(false, text2.is_alpha()); [INFO] [stdout] 678 + assert!(!text2.is_alpha()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:686:5 [INFO] [stdout] | [INFO] [stdout] 686 | assert_eq!(true, text1.is_alphanumeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 686 - assert_eq!(true, text1.is_alphanumeric()); [INFO] [stdout] 686 + assert!(text1.is_alphanumeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:687:5 [INFO] [stdout] | [INFO] [stdout] 687 | assert_eq!(false, text2.is_alphanumeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 687 - assert_eq!(false, text2.is_alphanumeric()); [INFO] [stdout] 687 + assert!(!text2.is_alphanumeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:695:5 [INFO] [stdout] | [INFO] [stdout] 695 | assert_eq!(true, text1.is_alphanumeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 695 - assert_eq!(true, text1.is_alphanumeric_space()); [INFO] [stdout] 695 + assert!(text1.is_alphanumeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:696:5 [INFO] [stdout] | [INFO] [stdout] 696 | assert_eq!(false, text2.is_alphanumeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 696 - assert_eq!(false, text2.is_alphanumeric_space()); [INFO] [stdout] 696 + assert!(!text2.is_alphanumeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:704:5 [INFO] [stdout] | [INFO] [stdout] 704 | assert_eq!(true, text1.is_alpha_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 704 - assert_eq!(true, text1.is_alpha_space()); [INFO] [stdout] 704 + assert!(text1.is_alpha_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:705:5 [INFO] [stdout] | [INFO] [stdout] 705 | assert_eq!(false, text2.is_alpha_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 705 - assert_eq!(false, text2.is_alpha_space()); [INFO] [stdout] 705 + assert!(!text2.is_alpha_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:713:5 [INFO] [stdout] | [INFO] [stdout] 713 | assert_eq!(true, text1.is_lowercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 713 - assert_eq!(true, text1.is_lowercase()); [INFO] [stdout] 713 + assert!(text1.is_lowercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:714:5 [INFO] [stdout] | [INFO] [stdout] 714 | assert_eq!(false, text2.is_lowercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 714 - assert_eq!(false, text2.is_lowercase()); [INFO] [stdout] 714 + assert!(!text2.is_lowercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:722:5 [INFO] [stdout] | [INFO] [stdout] 722 | assert_eq!(true, text1.is_numeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 722 - assert_eq!(true, text1.is_numeric()); [INFO] [stdout] 722 + assert!(text1.is_numeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:723:5 [INFO] [stdout] | [INFO] [stdout] 723 | assert_eq!(false, text2.is_numeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 723 - assert_eq!(false, text2.is_numeric()); [INFO] [stdout] 723 + assert!(!text2.is_numeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:731:5 [INFO] [stdout] | [INFO] [stdout] 731 | assert_eq!(true, text1.is_numeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 731 - assert_eq!(true, text1.is_numeric_space()); [INFO] [stdout] 731 + assert!(text1.is_numeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:732:5 [INFO] [stdout] | [INFO] [stdout] 732 | assert_eq!(false, text2.is_numeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 732 - assert_eq!(false, text2.is_numeric_space()); [INFO] [stdout] 732 + assert!(!text2.is_numeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:740:5 [INFO] [stdout] | [INFO] [stdout] 740 | assert_eq!(true, text1.is_uppercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 740 - assert_eq!(true, text1.is_uppercase()); [INFO] [stdout] 740 + assert!(text1.is_uppercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:741:5 [INFO] [stdout] | [INFO] [stdout] 741 | assert_eq!(false, text2.is_uppercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 741 - assert_eq!(false, text2.is_uppercase()); [INFO] [stdout] 741 + assert!(!text2.is_uppercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:749:5 [INFO] [stdout] | [INFO] [stdout] 749 | assert_eq!(true, text1.is_whitespace()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 749 - assert_eq!(true, text1.is_whitespace()); [INFO] [stdout] 749 + assert!(text1.is_whitespace()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:750:5 [INFO] [stdout] | [INFO] [stdout] 750 | assert_eq!(false, text2.is_whitespace()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 750 - assert_eq!(false, text2.is_whitespace()); [INFO] [stdout] 750 + assert!(!text2.is_whitespace()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(true, a.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_assert_comparison)]` on by default [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 13 - assert_eq!(true, a.to_bool()); [INFO] [stdout] 13 + assert!(a.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | assert_eq!(true, b.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 14 - assert_eq!(true, b.to_bool()); [INFO] [stdout] 14 + assert!(b.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | assert_eq!(false, c.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 15 - assert_eq!(false, c.to_bool()); [INFO] [stdout] 15 + assert!(!c.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | assert_eq!(true, a.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 23 - assert_eq!(true, a.to_bool()); [INFO] [stdout] 23 + assert!(a.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(false, b.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 24 - assert_eq!(false, b.to_bool()); [INFO] [stdout] 24 + assert!(!b.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | assert_eq!(true, a.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 33 - assert_eq!(true, a.to_bool()); [INFO] [stdout] 33 + assert!(a.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | assert_eq!(true, b.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 34 - assert_eq!(true, b.to_bool()); [INFO] [stdout] 34 + assert!(b.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | assert_eq!(false, c.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 35 - assert_eq!(false, c.to_bool()); [INFO] [stdout] 35 + assert!(!c.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | assert_eq!(true, a.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 43 - assert_eq!(true, a.to_bool()); [INFO] [stdout] 43 + assert!(a.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | assert_eq!(false, b.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 44 - assert_eq!(false, b.to_bool()); [INFO] [stdout] 44 + assert!(!b.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | assert_eq!(true, a.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 53 - assert_eq!(true, a.to_bool()); [INFO] [stdout] 53 + assert!(a.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | assert_eq!(true, b.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 54 - assert_eq!(true, b.to_bool()); [INFO] [stdout] 54 + assert!(b.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | assert_eq!(false, c.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 55 - assert_eq!(false, c.to_bool()); [INFO] [stdout] 55 + assert!(!c.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | assert_eq!(true, a.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 63 - assert_eq!(true, a.to_bool()); [INFO] [stdout] 63 + assert!(a.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | assert_eq!(false, b.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 64 - assert_eq!(false, b.to_bool()); [INFO] [stdout] 64 + assert!(!b.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | assert_eq!(true, a.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 75 - assert_eq!(true, a.to_bool()); [INFO] [stdout] 75 + assert!(a.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | assert_eq!(true, b.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 76 - assert_eq!(true, b.to_bool()); [INFO] [stdout] 76 + assert!(b.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | assert_eq!(false, c.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 77 - assert_eq!(false, c.to_bool()); [INFO] [stdout] 77 + assert!(!c.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | assert_eq!(true, d.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 78 - assert_eq!(true, d.to_bool()); [INFO] [stdout] 78 + assert!(d.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | assert_eq!(false, e.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 79 - assert_eq!(false, e.to_bool()); [INFO] [stdout] 79 + assert!(!e.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | assert_eq!(true, a.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 88 - assert_eq!(true, a.to_bool()); [INFO] [stdout] 88 + assert!(a.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 89 | assert_eq!(true, b.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 89 - assert_eq!(true, b.to_bool()); [INFO] [stdout] 89 + assert!(b.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | assert_eq!(false, c.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 90 - assert_eq!(false, c.to_bool()); [INFO] [stdout] 90 + assert!(!c.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | assert_eq!(true, a.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 98 - assert_eq!(true, a.to_bool()); [INFO] [stdout] 98 + assert!(a.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | assert_eq!(false, b.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 99 - assert_eq!(false, b.to_bool()); [INFO] [stdout] 99 + assert!(!b.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | assert_eq!(true, a.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 110 - assert_eq!(true, a.to_bool()); [INFO] [stdout] 110 + assert!(a.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | assert_eq!(true, b.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 111 - assert_eq!(true, b.to_bool()); [INFO] [stdout] 111 + assert!(b.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | assert_eq!(false, c.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 112 - assert_eq!(false, c.to_bool()); [INFO] [stdout] 112 + assert!(!c.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | assert_eq!(true, d.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 113 - assert_eq!(true, d.to_bool()); [INFO] [stdout] 113 + assert!(d.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | assert_eq!(false, e.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 114 - assert_eq!(false, e.to_bool()); [INFO] [stdout] 114 + assert!(!e.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | assert_eq!(true, a.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 123 - assert_eq!(true, a.to_bool()); [INFO] [stdout] 123 + assert!(a.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | assert_eq!(true, b.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 124 - assert_eq!(true, b.to_bool()); [INFO] [stdout] 124 + assert!(b.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 125 | assert_eq!(false, c.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 125 - assert_eq!(false, c.to_bool()); [INFO] [stdout] 125 + assert!(!c.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | assert_eq!(true, a.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 133 - assert_eq!(true, a.to_bool()); [INFO] [stdout] 133 + assert!(a.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | assert_eq!(false, b.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 134 - assert_eq!(false, b.to_bool()); [INFO] [stdout] 134 + assert!(!b.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | assert_eq!(true, a.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 143 - assert_eq!(true, a.to_bool()); [INFO] [stdout] 143 + assert!(a.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | assert_eq!(false, b.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 144 - assert_eq!(false, b.to_bool()); [INFO] [stdout] 144 + assert!(!b.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/parse/boolean_impl.rs:145:5 [INFO] [stdout] | [INFO] [stdout] 145 | assert_eq!(false, c.to_bool()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 145 - assert_eq!(false, c.to_bool()); [INFO] [stdout] 145 + assert!(!c.to_bool()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:471:5 [INFO] [stdout] | [INFO] [stdout] 471 | assert_eq!(true, text.contains_all_chars(&chars1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 471 - assert_eq!(true, text.contains_all_chars(&chars1)); [INFO] [stdout] 471 + assert!(text.contains_all_chars(&chars1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:472:5 [INFO] [stdout] | [INFO] [stdout] 472 | assert_eq!(false, text.contains_all_chars(&chars2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 472 - assert_eq!(false, text.contains_all_chars(&chars2)); [INFO] [stdout] 472 + assert!(!text.contains_all_chars(&chars2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:473:5 [INFO] [stdout] | [INFO] [stdout] 473 | assert_eq!(false, text.contains_all_chars(&chars3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 473 - assert_eq!(false, text.contains_all_chars(&chars3)); [INFO] [stdout] 473 + assert!(!text.contains_all_chars(&chars3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:483:5 [INFO] [stdout] | [INFO] [stdout] 483 | assert_eq!(true, text.contains_all_strs(&strs1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 483 - assert_eq!(true, text.contains_all_strs(&strs1)); [INFO] [stdout] 483 + assert!(text.contains_all_strs(&strs1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:484:5 [INFO] [stdout] | [INFO] [stdout] 484 | assert_eq!(false, text.contains_all_strs(&strs2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 484 - assert_eq!(false, text.contains_all_strs(&strs2)); [INFO] [stdout] 484 + assert!(!text.contains_all_strs(&strs2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:485:5 [INFO] [stdout] | [INFO] [stdout] 485 | assert_eq!(false, text.contains_all_strs(&strs3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 485 - assert_eq!(false, text.contains_all_strs(&strs3)); [INFO] [stdout] 485 + assert!(!text.contains_all_strs(&strs3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:495:5 [INFO] [stdout] | [INFO] [stdout] 495 | assert_eq!(true, text.contains_any_char(&chars1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 495 - assert_eq!(true, text.contains_any_char(&chars1)); [INFO] [stdout] 495 + assert!(text.contains_any_char(&chars1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:496:5 [INFO] [stdout] | [INFO] [stdout] 496 | assert_eq!(true, text.contains_any_char(&chars2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 496 - assert_eq!(true, text.contains_any_char(&chars2)); [INFO] [stdout] 496 + assert!(text.contains_any_char(&chars2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:497:5 [INFO] [stdout] | [INFO] [stdout] 497 | assert_eq!(false, text.contains_any_char(&chars3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 497 - assert_eq!(false, text.contains_any_char(&chars3)); [INFO] [stdout] 497 + assert!(!text.contains_any_char(&chars3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:507:5 [INFO] [stdout] | [INFO] [stdout] 507 | assert_eq!(true, text.contains_any_str(&strs1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 507 - assert_eq!(true, text.contains_any_str(&strs1)); [INFO] [stdout] 507 + assert!(text.contains_any_str(&strs1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:508:5 [INFO] [stdout] | [INFO] [stdout] 508 | assert_eq!(true, text.contains_any_str(&strs2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 508 - assert_eq!(true, text.contains_any_str(&strs2)); [INFO] [stdout] 508 + assert!(text.contains_any_str(&strs2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:509:5 [INFO] [stdout] | [INFO] [stdout] 509 | assert_eq!(false, text.contains_any_str(&strs3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 509 - assert_eq!(false, text.contains_any_str(&strs3)); [INFO] [stdout] 509 + assert!(!text.contains_any_str(&strs3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:519:5 [INFO] [stdout] | [INFO] [stdout] 519 | assert_eq!(false, text.contains_none_char(&chars1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 519 - assert_eq!(false, text.contains_none_char(&chars1)); [INFO] [stdout] 519 + assert!(!text.contains_none_char(&chars1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:520:5 [INFO] [stdout] | [INFO] [stdout] 520 | assert_eq!(false, text.contains_none_char(&chars2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 520 - assert_eq!(false, text.contains_none_char(&chars2)); [INFO] [stdout] 520 + assert!(!text.contains_none_char(&chars2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:521:5 [INFO] [stdout] | [INFO] [stdout] 521 | assert_eq!(true, text.contains_none_char(&chars3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 521 - assert_eq!(true, text.contains_none_char(&chars3)); [INFO] [stdout] 521 + assert!(text.contains_none_char(&chars3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:531:5 [INFO] [stdout] | [INFO] [stdout] 531 | assert_eq!(false, text.contains_none_str(&strs1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 531 - assert_eq!(false, text.contains_none_str(&strs1)); [INFO] [stdout] 531 + assert!(!text.contains_none_str(&strs1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:532:5 [INFO] [stdout] | [INFO] [stdout] 532 | assert_eq!(false, text.contains_none_str(&strs2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 532 - assert_eq!(false, text.contains_none_str(&strs2)); [INFO] [stdout] 532 + assert!(!text.contains_none_str(&strs2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:533:5 [INFO] [stdout] | [INFO] [stdout] 533 | assert_eq!(true, text.contains_none_str(&strs3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 533 - assert_eq!(true, text.contains_none_str(&strs3)); [INFO] [stdout] 533 + assert!(text.contains_none_str(&strs3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:542:5 [INFO] [stdout] | [INFO] [stdout] 542 | assert_eq!(true, text1.cmp_ignore_case(&text2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 542 - assert_eq!(true, text1.cmp_ignore_case(&text2)); [INFO] [stdout] 542 + assert!(text1.cmp_ignore_case(&text2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:543:5 [INFO] [stdout] | [INFO] [stdout] 543 | assert_eq!(false, text1.cmp_ignore_case(&text3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 543 - assert_eq!(false, text1.cmp_ignore_case(&text3)); [INFO] [stdout] 543 + assert!(!text1.cmp_ignore_case(&text3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:596:5 [INFO] [stdout] | [INFO] [stdout] 596 | assert_eq!(true, text1.has_alpha()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 596 - assert_eq!(true, text1.has_alpha()); [INFO] [stdout] 596 + assert!(text1.has_alpha()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:597:5 [INFO] [stdout] | [INFO] [stdout] 597 | assert_eq!(false, text2.has_alpha()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 597 - assert_eq!(false, text2.has_alpha()); [INFO] [stdout] 597 + assert!(!text2.has_alpha()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:605:5 [INFO] [stdout] | [INFO] [stdout] 605 | assert_eq!(true, text1.has_alphanumeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 605 - assert_eq!(true, text1.has_alphanumeric()); [INFO] [stdout] 605 + assert!(text1.has_alphanumeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:606:5 [INFO] [stdout] | [INFO] [stdout] 606 | assert_eq!(false, text2.has_alphanumeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 606 - assert_eq!(false, text2.has_alphanumeric()); [INFO] [stdout] 606 + assert!(!text2.has_alphanumeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:614:5 [INFO] [stdout] | [INFO] [stdout] 614 | assert_eq!(true, text1.has_alphanumeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 614 - assert_eq!(true, text1.has_alphanumeric_space()); [INFO] [stdout] 614 + assert!(text1.has_alphanumeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:615:5 [INFO] [stdout] | [INFO] [stdout] 615 | assert_eq!(false, text2.has_alphanumeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 615 - assert_eq!(false, text2.has_alphanumeric_space()); [INFO] [stdout] 615 + assert!(!text2.has_alphanumeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:623:5 [INFO] [stdout] | [INFO] [stdout] 623 | assert_eq!(true, text1.has_alpha_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 623 - assert_eq!(true, text1.has_alpha_space()); [INFO] [stdout] 623 + assert!(text1.has_alpha_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:624:5 [INFO] [stdout] | [INFO] [stdout] 624 | assert_eq!(false, text2.has_alpha_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 624 - assert_eq!(false, text2.has_alpha_space()); [INFO] [stdout] 624 + assert!(!text2.has_alpha_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:632:5 [INFO] [stdout] | [INFO] [stdout] 632 | assert_eq!(true, text1.has_lowercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 632 - assert_eq!(true, text1.has_lowercase()); [INFO] [stdout] 632 + assert!(text1.has_lowercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:633:5 [INFO] [stdout] | [INFO] [stdout] 633 | assert_eq!(false, text2.has_lowercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 633 - assert_eq!(false, text2.has_lowercase()); [INFO] [stdout] 633 + assert!(!text2.has_lowercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:641:5 [INFO] [stdout] | [INFO] [stdout] 641 | assert_eq!(true, text1.has_numeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 641 - assert_eq!(true, text1.has_numeric()); [INFO] [stdout] 641 + assert!(text1.has_numeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:642:5 [INFO] [stdout] | [INFO] [stdout] 642 | assert_eq!(false, text2.has_numeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 642 - assert_eq!(false, text2.has_numeric()); [INFO] [stdout] 642 + assert!(!text2.has_numeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:650:5 [INFO] [stdout] | [INFO] [stdout] 650 | assert_eq!(true, text1.has_numeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 650 - assert_eq!(true, text1.has_numeric_space()); [INFO] [stdout] 650 + assert!(text1.has_numeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:651:5 [INFO] [stdout] | [INFO] [stdout] 651 | assert_eq!(false, text2.has_numeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 651 - assert_eq!(false, text2.has_numeric_space()); [INFO] [stdout] 651 + assert!(!text2.has_numeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:659:5 [INFO] [stdout] | [INFO] [stdout] 659 | assert_eq!(true, text1.has_uppercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 659 - assert_eq!(true, text1.has_uppercase()); [INFO] [stdout] 659 + assert!(text1.has_uppercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:660:5 [INFO] [stdout] | [INFO] [stdout] 660 | assert_eq!(false, text2.has_uppercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 660 - assert_eq!(false, text2.has_uppercase()); [INFO] [stdout] 660 + assert!(!text2.has_uppercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:668:5 [INFO] [stdout] | [INFO] [stdout] 668 | assert_eq!(true, text1.has_whitespace()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 668 - assert_eq!(true, text1.has_whitespace()); [INFO] [stdout] 668 + assert!(text1.has_whitespace()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:669:5 [INFO] [stdout] | [INFO] [stdout] 669 | assert_eq!(false, text2.has_whitespace()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 669 - assert_eq!(false, text2.has_whitespace()); [INFO] [stdout] 669 + assert!(!text2.has_whitespace()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:677:5 [INFO] [stdout] | [INFO] [stdout] 677 | assert_eq!(true, text1.is_alpha()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 677 - assert_eq!(true, text1.is_alpha()); [INFO] [stdout] 677 + assert!(text1.is_alpha()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:678:5 [INFO] [stdout] | [INFO] [stdout] 678 | assert_eq!(false, text2.is_alpha()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 678 - assert_eq!(false, text2.is_alpha()); [INFO] [stdout] 678 + assert!(!text2.is_alpha()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:686:5 [INFO] [stdout] | [INFO] [stdout] 686 | assert_eq!(true, text1.is_alphanumeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 686 - assert_eq!(true, text1.is_alphanumeric()); [INFO] [stdout] 686 + assert!(text1.is_alphanumeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:687:5 [INFO] [stdout] | [INFO] [stdout] 687 | assert_eq!(false, text2.is_alphanumeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 687 - assert_eq!(false, text2.is_alphanumeric()); [INFO] [stdout] 687 + assert!(!text2.is_alphanumeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:695:5 [INFO] [stdout] | [INFO] [stdout] 695 | assert_eq!(true, text1.is_alphanumeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 695 - assert_eq!(true, text1.is_alphanumeric_space()); [INFO] [stdout] 695 + assert!(text1.is_alphanumeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:696:5 [INFO] [stdout] | [INFO] [stdout] 696 | assert_eq!(false, text2.is_alphanumeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 696 - assert_eq!(false, text2.is_alphanumeric_space()); [INFO] [stdout] 696 + assert!(!text2.is_alphanumeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:704:5 [INFO] [stdout] | [INFO] [stdout] 704 | assert_eq!(true, text1.is_alpha_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 704 - assert_eq!(true, text1.is_alpha_space()); [INFO] [stdout] 704 + assert!(text1.is_alpha_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:705:5 [INFO] [stdout] | [INFO] [stdout] 705 | assert_eq!(false, text2.is_alpha_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 705 - assert_eq!(false, text2.is_alpha_space()); [INFO] [stdout] 705 + assert!(!text2.is_alpha_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:713:5 [INFO] [stdout] | [INFO] [stdout] 713 | assert_eq!(true, text1.is_lowercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 713 - assert_eq!(true, text1.is_lowercase()); [INFO] [stdout] 713 + assert!(text1.is_lowercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:714:5 [INFO] [stdout] | [INFO] [stdout] 714 | assert_eq!(false, text2.is_lowercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 714 - assert_eq!(false, text2.is_lowercase()); [INFO] [stdout] 714 + assert!(!text2.is_lowercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:722:5 [INFO] [stdout] | [INFO] [stdout] 722 | assert_eq!(true, text1.is_numeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 722 - assert_eq!(true, text1.is_numeric()); [INFO] [stdout] 722 + assert!(text1.is_numeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:723:5 [INFO] [stdout] | [INFO] [stdout] 723 | assert_eq!(false, text2.is_numeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 723 - assert_eq!(false, text2.is_numeric()); [INFO] [stdout] 723 + assert!(!text2.is_numeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:731:5 [INFO] [stdout] | [INFO] [stdout] 731 | assert_eq!(true, text1.is_numeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 731 - assert_eq!(true, text1.is_numeric_space()); [INFO] [stdout] 731 + assert!(text1.is_numeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:732:5 [INFO] [stdout] | [INFO] [stdout] 732 | assert_eq!(false, text2.is_numeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 732 - assert_eq!(false, text2.is_numeric_space()); [INFO] [stdout] 732 + assert!(!text2.is_numeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:740:5 [INFO] [stdout] | [INFO] [stdout] 740 | assert_eq!(true, text1.is_uppercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 740 - assert_eq!(true, text1.is_uppercase()); [INFO] [stdout] 740 + assert!(text1.is_uppercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:741:5 [INFO] [stdout] | [INFO] [stdout] 741 | assert_eq!(false, text2.is_uppercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 741 - assert_eq!(false, text2.is_uppercase()); [INFO] [stdout] 741 + assert!(!text2.is_uppercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:749:5 [INFO] [stdout] | [INFO] [stdout] 749 | assert_eq!(true, text1.is_whitespace()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 749 - assert_eq!(true, text1.is_whitespace()); [INFO] [stdout] 749 + assert!(text1.is_whitespace()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:750:5 [INFO] [stdout] | [INFO] [stdout] 750 | assert_eq!(false, text2.is_whitespace()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 750 - assert_eq!(false, text2.is_whitespace()); [INFO] [stdout] 750 + assert!(!text2.is_whitespace()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:799:5 [INFO] [stdout] | [INFO] [stdout] 799 | assert_eq!(true, text.remove_all_regex_mut(regex)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 799 - assert_eq!(true, text.remove_all_regex_mut(regex)); [INFO] [stdout] 799 + assert!(text.remove_all_regex_mut(regex)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:808:5 [INFO] [stdout] | [INFO] [stdout] 808 | assert_eq!(false, text.remove_all_regex_mut(regex)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 808 - assert_eq!(false, text.remove_all_regex_mut(regex)); [INFO] [stdout] 808 + assert!(!text.remove_all_regex_mut(regex)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:837:5 [INFO] [stdout] | [INFO] [stdout] 837 | assert_eq!(true, text.remove_regex_mut(regex)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 837 - assert_eq!(true, text.remove_regex_mut(regex)); [INFO] [stdout] 837 + assert!(text.remove_regex_mut(regex)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/string_impl.rs:846:5 [INFO] [stdout] | [INFO] [stdout] 846 | assert_eq!(false, text.remove_regex_mut(regex)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 846 - assert_eq!(false, text.remove_regex_mut(regex)); [INFO] [stdout] 846 + assert!(!text.remove_regex_mut(regex)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:471:5 [INFO] [stdout] | [INFO] [stdout] 471 | assert_eq!(true, text.contains_all_chars(&chars1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 471 - assert_eq!(true, text.contains_all_chars(&chars1)); [INFO] [stdout] 471 + assert!(text.contains_all_chars(&chars1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:472:5 [INFO] [stdout] | [INFO] [stdout] 472 | assert_eq!(false, text.contains_all_chars(&chars2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 472 - assert_eq!(false, text.contains_all_chars(&chars2)); [INFO] [stdout] 472 + assert!(!text.contains_all_chars(&chars2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:473:5 [INFO] [stdout] | [INFO] [stdout] 473 | assert_eq!(false, text.contains_all_chars(&chars3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 473 - assert_eq!(false, text.contains_all_chars(&chars3)); [INFO] [stdout] 473 + assert!(!text.contains_all_chars(&chars3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:483:5 [INFO] [stdout] | [INFO] [stdout] 483 | assert_eq!(true, text.contains_all_strs(&strs1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 483 - assert_eq!(true, text.contains_all_strs(&strs1)); [INFO] [stdout] 483 + assert!(text.contains_all_strs(&strs1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:484:5 [INFO] [stdout] | [INFO] [stdout] 484 | assert_eq!(false, text.contains_all_strs(&strs2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 484 - assert_eq!(false, text.contains_all_strs(&strs2)); [INFO] [stdout] 484 + assert!(!text.contains_all_strs(&strs2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:485:5 [INFO] [stdout] | [INFO] [stdout] 485 | assert_eq!(false, text.contains_all_strs(&strs3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 485 - assert_eq!(false, text.contains_all_strs(&strs3)); [INFO] [stdout] 485 + assert!(!text.contains_all_strs(&strs3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:495:5 [INFO] [stdout] | [INFO] [stdout] 495 | assert_eq!(true, text.contains_any_char(&chars1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 495 - assert_eq!(true, text.contains_any_char(&chars1)); [INFO] [stdout] 495 + assert!(text.contains_any_char(&chars1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:496:5 [INFO] [stdout] | [INFO] [stdout] 496 | assert_eq!(true, text.contains_any_char(&chars2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 496 - assert_eq!(true, text.contains_any_char(&chars2)); [INFO] [stdout] 496 + assert!(text.contains_any_char(&chars2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:497:5 [INFO] [stdout] | [INFO] [stdout] 497 | assert_eq!(false, text.contains_any_char(&chars3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 497 - assert_eq!(false, text.contains_any_char(&chars3)); [INFO] [stdout] 497 + assert!(!text.contains_any_char(&chars3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:507:5 [INFO] [stdout] | [INFO] [stdout] 507 | assert_eq!(true, text.contains_any_str(&strs1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 507 - assert_eq!(true, text.contains_any_str(&strs1)); [INFO] [stdout] 507 + assert!(text.contains_any_str(&strs1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:508:5 [INFO] [stdout] | [INFO] [stdout] 508 | assert_eq!(true, text.contains_any_str(&strs2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 508 - assert_eq!(true, text.contains_any_str(&strs2)); [INFO] [stdout] 508 + assert!(text.contains_any_str(&strs2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:509:5 [INFO] [stdout] | [INFO] [stdout] 509 | assert_eq!(false, text.contains_any_str(&strs3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 509 - assert_eq!(false, text.contains_any_str(&strs3)); [INFO] [stdout] 509 + assert!(!text.contains_any_str(&strs3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:519:5 [INFO] [stdout] | [INFO] [stdout] 519 | assert_eq!(false, text.contains_none_char(&chars1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 519 - assert_eq!(false, text.contains_none_char(&chars1)); [INFO] [stdout] 519 + assert!(!text.contains_none_char(&chars1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:520:5 [INFO] [stdout] | [INFO] [stdout] 520 | assert_eq!(false, text.contains_none_char(&chars2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 520 - assert_eq!(false, text.contains_none_char(&chars2)); [INFO] [stdout] 520 + assert!(!text.contains_none_char(&chars2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:521:5 [INFO] [stdout] | [INFO] [stdout] 521 | assert_eq!(true, text.contains_none_char(&chars3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 521 - assert_eq!(true, text.contains_none_char(&chars3)); [INFO] [stdout] 521 + assert!(text.contains_none_char(&chars3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:531:5 [INFO] [stdout] | [INFO] [stdout] 531 | assert_eq!(false, text.contains_none_str(&strs1)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 531 - assert_eq!(false, text.contains_none_str(&strs1)); [INFO] [stdout] 531 + assert!(!text.contains_none_str(&strs1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:532:5 [INFO] [stdout] | [INFO] [stdout] 532 | assert_eq!(false, text.contains_none_str(&strs2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 532 - assert_eq!(false, text.contains_none_str(&strs2)); [INFO] [stdout] 532 + assert!(!text.contains_none_str(&strs2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:533:5 [INFO] [stdout] | [INFO] [stdout] 533 | assert_eq!(true, text.contains_none_str(&strs3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 533 - assert_eq!(true, text.contains_none_str(&strs3)); [INFO] [stdout] 533 + assert!(text.contains_none_str(&strs3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:542:5 [INFO] [stdout] | [INFO] [stdout] 542 | assert_eq!(true, text1.cmp_ignore_case(&text2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 542 - assert_eq!(true, text1.cmp_ignore_case(&text2)); [INFO] [stdout] 542 + assert!(text1.cmp_ignore_case(&text2)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/str_impl.rs:542:44 [INFO] [stdout] | [INFO] [stdout] 542 | assert_eq!(true, text1.cmp_ignore_case(&text2)); [INFO] [stdout] | ^^^^^^ help: change this to: `text2` [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: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:543:5 [INFO] [stdout] | [INFO] [stdout] 543 | assert_eq!(false, text1.cmp_ignore_case(&text3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 543 - assert_eq!(false, text1.cmp_ignore_case(&text3)); [INFO] [stdout] 543 + assert!(!text1.cmp_ignore_case(&text3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> tests/str_impl.rs:543:45 [INFO] [stdout] | [INFO] [stdout] 543 | assert_eq!(false, text1.cmp_ignore_case(&text3)); [INFO] [stdout] | ^^^^^^ help: change this to: `text3` [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: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:596:5 [INFO] [stdout] | [INFO] [stdout] 596 | assert_eq!(true, text1.has_alpha()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 596 - assert_eq!(true, text1.has_alpha()); [INFO] [stdout] 596 + assert!(text1.has_alpha()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:597:5 [INFO] [stdout] | [INFO] [stdout] 597 | assert_eq!(false, text2.has_alpha()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 597 - assert_eq!(false, text2.has_alpha()); [INFO] [stdout] 597 + assert!(!text2.has_alpha()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:605:5 [INFO] [stdout] | [INFO] [stdout] 605 | assert_eq!(true, text1.has_alphanumeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 605 - assert_eq!(true, text1.has_alphanumeric()); [INFO] [stdout] 605 + assert!(text1.has_alphanumeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:606:5 [INFO] [stdout] | [INFO] [stdout] 606 | assert_eq!(false, text2.has_alphanumeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 606 - assert_eq!(false, text2.has_alphanumeric()); [INFO] [stdout] 606 + assert!(!text2.has_alphanumeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:614:5 [INFO] [stdout] | [INFO] [stdout] 614 | assert_eq!(true, text1.has_alphanumeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 614 - assert_eq!(true, text1.has_alphanumeric_space()); [INFO] [stdout] 614 + assert!(text1.has_alphanumeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:615:5 [INFO] [stdout] | [INFO] [stdout] 615 | assert_eq!(false, text2.has_alphanumeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 615 - assert_eq!(false, text2.has_alphanumeric_space()); [INFO] [stdout] 615 + assert!(!text2.has_alphanumeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:623:5 [INFO] [stdout] | [INFO] [stdout] 623 | assert_eq!(true, text1.has_alpha_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 623 - assert_eq!(true, text1.has_alpha_space()); [INFO] [stdout] 623 + assert!(text1.has_alpha_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:624:5 [INFO] [stdout] | [INFO] [stdout] 624 | assert_eq!(false, text2.has_alpha_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 624 - assert_eq!(false, text2.has_alpha_space()); [INFO] [stdout] 624 + assert!(!text2.has_alpha_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:632:5 [INFO] [stdout] | [INFO] [stdout] 632 | assert_eq!(true, text1.has_lowercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 632 - assert_eq!(true, text1.has_lowercase()); [INFO] [stdout] 632 + assert!(text1.has_lowercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:633:5 [INFO] [stdout] | [INFO] [stdout] 633 | assert_eq!(false, text2.has_lowercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 633 - assert_eq!(false, text2.has_lowercase()); [INFO] [stdout] 633 + assert!(!text2.has_lowercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:641:5 [INFO] [stdout] | [INFO] [stdout] 641 | assert_eq!(true, text1.has_numeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 641 - assert_eq!(true, text1.has_numeric()); [INFO] [stdout] 641 + assert!(text1.has_numeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:642:5 [INFO] [stdout] | [INFO] [stdout] 642 | assert_eq!(false, text2.has_numeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 642 - assert_eq!(false, text2.has_numeric()); [INFO] [stdout] 642 + assert!(!text2.has_numeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:650:5 [INFO] [stdout] | [INFO] [stdout] 650 | assert_eq!(true, text1.has_numeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 650 - assert_eq!(true, text1.has_numeric_space()); [INFO] [stdout] 650 + assert!(text1.has_numeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:651:5 [INFO] [stdout] | [INFO] [stdout] 651 | assert_eq!(false, text2.has_numeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 651 - assert_eq!(false, text2.has_numeric_space()); [INFO] [stdout] 651 + assert!(!text2.has_numeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:659:5 [INFO] [stdout] | [INFO] [stdout] 659 | assert_eq!(true, text1.has_uppercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 659 - assert_eq!(true, text1.has_uppercase()); [INFO] [stdout] 659 + assert!(text1.has_uppercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:660:5 [INFO] [stdout] | [INFO] [stdout] 660 | assert_eq!(false, text2.has_uppercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 660 - assert_eq!(false, text2.has_uppercase()); [INFO] [stdout] 660 + assert!(!text2.has_uppercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:668:5 [INFO] [stdout] | [INFO] [stdout] 668 | assert_eq!(true, text1.has_whitespace()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 668 - assert_eq!(true, text1.has_whitespace()); [INFO] [stdout] 668 + assert!(text1.has_whitespace()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:669:5 [INFO] [stdout] | [INFO] [stdout] 669 | assert_eq!(false, text2.has_whitespace()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 669 - assert_eq!(false, text2.has_whitespace()); [INFO] [stdout] 669 + assert!(!text2.has_whitespace()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:677:5 [INFO] [stdout] | [INFO] [stdout] 677 | assert_eq!(true, text1.is_alpha()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 677 - assert_eq!(true, text1.is_alpha()); [INFO] [stdout] 677 + assert!(text1.is_alpha()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:678:5 [INFO] [stdout] | [INFO] [stdout] 678 | assert_eq!(false, text2.is_alpha()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 678 - assert_eq!(false, text2.is_alpha()); [INFO] [stdout] 678 + assert!(!text2.is_alpha()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:686:5 [INFO] [stdout] | [INFO] [stdout] 686 | assert_eq!(true, text1.is_alphanumeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 686 - assert_eq!(true, text1.is_alphanumeric()); [INFO] [stdout] 686 + assert!(text1.is_alphanumeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:687:5 [INFO] [stdout] | [INFO] [stdout] 687 | assert_eq!(false, text2.is_alphanumeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 687 - assert_eq!(false, text2.is_alphanumeric()); [INFO] [stdout] 687 + assert!(!text2.is_alphanumeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:695:5 [INFO] [stdout] | [INFO] [stdout] 695 | assert_eq!(true, text1.is_alphanumeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 695 - assert_eq!(true, text1.is_alphanumeric_space()); [INFO] [stdout] 695 + assert!(text1.is_alphanumeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:696:5 [INFO] [stdout] | [INFO] [stdout] 696 | assert_eq!(false, text2.is_alphanumeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 696 - assert_eq!(false, text2.is_alphanumeric_space()); [INFO] [stdout] 696 + assert!(!text2.is_alphanumeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:704:5 [INFO] [stdout] | [INFO] [stdout] 704 | assert_eq!(true, text1.is_alpha_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 704 - assert_eq!(true, text1.is_alpha_space()); [INFO] [stdout] 704 + assert!(text1.is_alpha_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:705:5 [INFO] [stdout] | [INFO] [stdout] 705 | assert_eq!(false, text2.is_alpha_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 705 - assert_eq!(false, text2.is_alpha_space()); [INFO] [stdout] 705 + assert!(!text2.is_alpha_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:713:5 [INFO] [stdout] | [INFO] [stdout] 713 | assert_eq!(true, text1.is_lowercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 713 - assert_eq!(true, text1.is_lowercase()); [INFO] [stdout] 713 + assert!(text1.is_lowercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:714:5 [INFO] [stdout] | [INFO] [stdout] 714 | assert_eq!(false, text2.is_lowercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 714 - assert_eq!(false, text2.is_lowercase()); [INFO] [stdout] 714 + assert!(!text2.is_lowercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:722:5 [INFO] [stdout] | [INFO] [stdout] 722 | assert_eq!(true, text1.is_numeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 722 - assert_eq!(true, text1.is_numeric()); [INFO] [stdout] 722 + assert!(text1.is_numeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:723:5 [INFO] [stdout] | [INFO] [stdout] 723 | assert_eq!(false, text2.is_numeric()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 723 - assert_eq!(false, text2.is_numeric()); [INFO] [stdout] 723 + assert!(!text2.is_numeric()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:731:5 [INFO] [stdout] | [INFO] [stdout] 731 | assert_eq!(true, text1.is_numeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 731 - assert_eq!(true, text1.is_numeric_space()); [INFO] [stdout] 731 + assert!(text1.is_numeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:732:5 [INFO] [stdout] | [INFO] [stdout] 732 | assert_eq!(false, text2.is_numeric_space()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 732 - assert_eq!(false, text2.is_numeric_space()); [INFO] [stdout] 732 + assert!(!text2.is_numeric_space()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:740:5 [INFO] [stdout] | [INFO] [stdout] 740 | assert_eq!(true, text1.is_uppercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 740 - assert_eq!(true, text1.is_uppercase()); [INFO] [stdout] 740 + assert!(text1.is_uppercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:741:5 [INFO] [stdout] | [INFO] [stdout] 741 | assert_eq!(false, text2.is_uppercase()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 741 - assert_eq!(false, text2.is_uppercase()); [INFO] [stdout] 741 + assert!(!text2.is_uppercase()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:749:5 [INFO] [stdout] | [INFO] [stdout] 749 | assert_eq!(true, text1.is_whitespace()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 749 - assert_eq!(true, text1.is_whitespace()); [INFO] [stdout] 749 + assert!(text1.is_whitespace()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/str_impl.rs:750:5 [INFO] [stdout] | [INFO] [stdout] 750 | assert_eq!(false, text2.is_whitespace()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 750 - assert_eq!(false, text2.is_whitespace()); [INFO] [stdout] 750 + assert!(!text2.is_whitespace()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: importing a legacy numeric constant [INFO] [stdout] --> tests/array_impl.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::usize::MAX; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove this import and use the associated constant `usize::MAX` from the primitive type instead [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/array_impl.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | assert_eq!(true, ary.swaping(1, 3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 10 - assert_eq!(true, ary.swaping(1, 3)); [INFO] [stdout] 10 + assert!(ary.swaping(1, 3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/array_impl.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(false, ary.swaping(0, 4)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 13 - assert_eq!(false, ary.swaping(0, 4)); [INFO] [stdout] 13 + assert!(!ary.swaping(0, 4)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/array_impl.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(true, ary.swaping(1, 3)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 21 - assert_eq!(true, ary.swaping(1, 3)); [INFO] [stdout] 21 + assert!(ary.swaping(1, 3)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> tests/array_impl.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(false, ary.swaping(0, 4)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 24 - assert_eq!(false, ary.swaping(0, 4)); [INFO] [stdout] 24 + assert!(!ary.swaping(0, 4)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> tests/array_impl.rs:33:16 [INFO] [stdout] | [INFO] [stdout] 33 | assert_eq!(MAX, ary.index_of(&3)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 33 | assert_eq!(usize::MAX, ary.index_of(&3)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> tests/array_impl.rs:41:16 [INFO] [stdout] | [INFO] [stdout] 41 | assert_eq!(MAX, ary.index_of(&"three")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 41 | assert_eq!(usize::MAX, ary.index_of(&"three")); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.76s [INFO] running `Command { std: "docker" "inspect" "aad86b073a917084930dd201020aff80b278667216ec59b04455107243b820ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aad86b073a917084930dd201020aff80b278667216ec59b04455107243b820ea", kill_on_drop: false }` [INFO] [stdout] aad86b073a917084930dd201020aff80b278667216ec59b04455107243b820ea