[INFO] cloning repository https://github.com/Bas-Man/learning-rust-trust-dns-resolver [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Bas-Man/learning-rust-trust-dns-resolver" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBas-Man%2Flearning-rust-trust-dns-resolver", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBas-Man%2Flearning-rust-trust-dns-resolver'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2e10a614ed706d185c9d0804ef16fc40698a9fb8 [INFO] linting Bas-Man/learning-rust-trust-dns-resolver against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBas-Man%2Flearning-rust-trust-dns-resolver" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Bas-Man/learning-rust-trust-dns-resolver [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/Bas-Man/learning-rust-trust-dns-resolver [INFO] tweaked toml for git repo https://github.com/Bas-Man/learning-rust-trust-dns-resolver written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Bas-Man/learning-rust-trust-dns-resolver on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 101 packages to latest compatible versions [INFO] [stderr] Adding ipnetwork v0.18.0 (available: v0.21.1) [INFO] [stderr] Adding trust-dns-resolver v0.20.4 (available: v0.23.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ipnetwork v0.18.0 [INFO] [stderr] Downloaded enum-as-inner v0.3.4 [INFO] [stderr] Downloaded addr v0.15.6 [INFO] [stderr] Downloaded trust-dns-resolver v0.20.4 [INFO] [stderr] Downloaded psl v2.1.198 [INFO] [stderr] Downloaded trust-dns-proto v0.20.4 [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] 7d359cde0da9eccd9ddf7f868c712f725f711ec2c29268d85e6567c17e114952 [INFO] running `Command { std: "docker" "start" "-a" "7d359cde0da9eccd9ddf7f868c712f725f711ec2c29268d85e6567c17e114952", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7d359cde0da9eccd9ddf7f868c712f725f711ec2c29268d85e6567c17e114952", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d359cde0da9eccd9ddf7f868c712f725f711ec2c29268d85e6567c17e114952", kill_on_drop: false }` [INFO] [stdout] 7d359cde0da9eccd9ddf7f868c712f725f711ec2c29268d85e6567c17e114952 [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] e04d709aaedcd26ccc26bb6e5a4b254d611b8a96889cfb6d365b085162e2d9ac [INFO] running `Command { std: "docker" "start" "-a" "e04d709aaedcd26ccc26bb6e5a4b254d611b8a96889cfb6d365b085162e2d9ac", kill_on_drop: false }` [INFO] [stderr] Checking stable_deref_trait v1.2.1 [INFO] [stderr] Compiling libc v0.2.183 [INFO] [stderr] Checking writeable v0.6.2 [INFO] [stderr] Checking litemap v0.8.1 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling zerocopy v0.8.42 [INFO] [stderr] Checking tinyvec v1.11.0 [INFO] [stderr] Checking pin-project-lite v0.2.17 [INFO] [stderr] Checking futures-core v0.3.32 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking percent-encoding v2.3.2 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Checking futures-task v0.3.32 [INFO] [stderr] Checking regex-syntax v0.8.10 [INFO] [stderr] Checking slab v0.4.12 [INFO] [stderr] Checking futures-io v0.3.32 [INFO] [stderr] Checking ipnet v2.12.0 [INFO] [stderr] Checking data-encoding v2.10.0 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Checking futures-channel v0.3.32 [INFO] [stderr] Checking resolv-conf v0.7.6 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Checking futures-util v0.3.32 [INFO] [stderr] Checking unicode-normalization v0.1.25 [INFO] [stderr] Checking ipnetwork v0.18.0 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Checking socket2 v0.6.3 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking parking_lot_core v0.8.6 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking tokio v1.50.0 [INFO] [stderr] Compiling enum-as-inner v0.3.4 [INFO] [stderr] Checking regex v1.12.3 [INFO] [stderr] Checking decon-spf v0.2.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/mechanism/mod.rs:498:1 [INFO] [stdout] | [INFO] [stdout] 498 | / /// Provide to_string for Mechanism [INFO] [stdout] 499 | | [INFO] [stdout] | |_^ [INFO] [stdout] 500 | impl std::fmt::Display for Mechanism { [INFO] [stdout] | - the comment documents this implementation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ParsedMechanism` [INFO] [stdout] --> src/spf/mod.rs:11:39 [INFO] [stdout] | [INFO] [stdout] 11 | pub use crate::mechanism::{Mechanism, ParsedMechanism, Qualifier}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MECHANISM_ALL_PATTERN` is never used [INFO] [stdout] --> src/helpers.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) const MECHANISM_ALL_PATTERN: &str = r"^(?P[+?~-])?all(?P\s)?$"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | //! `ParsedMechanism`. By default `Mechanism`'s `rrdata` is not checked. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] = note: `#[warn(clippy::doc_lazy_continuation)]` on by default [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 25 | //! `ParsedMechanism`. By default `Mechanism`'s `rrdata` is not checked. [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/mechanism/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | //! or a `Mechanism` if the string is succesfully parsed. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 9 | //! or a `Mechanism` if the string is succesfully parsed. [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/mechanism/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | //! to be `parsed()` [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 11 | //! to be `parsed()` [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/mechanism/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | //! used with the `FromStr` trait. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 13 | //! used with the `FromStr` trait. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/mechanism/kind.rs:152:1 [INFO] [stdout] | [INFO] [stdout] 152 | / impl Default for Kind { [INFO] [stdout] 153 | | fn default() -> Self { [INFO] [stdout] 154 | | Self::A [INFO] [stdout] 155 | | } [INFO] [stdout] 156 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] = note: `#[warn(clippy::derivable_impls)]` on by default [INFO] [stdout] help: replace the manual implementation with a derive attribute and mark the default variant [INFO] [stdout] | [INFO] [stdout] 8 + #[derive(Default)] [INFO] [stdout] 9 | pub enum Kind { [INFO] [stdout] 10 | /// Represents a *Modifier* of type redirect= [INFO] [stdout] ... [INFO] [stdout] 20 | /// ``` [INFO] [stdout] 21 ~ #[default] [INFO] [stdout] 22 ~ A, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/mechanism/qualifier.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / impl Default for Qualifier { [INFO] [stdout] 18 | | fn default() -> Self { [INFO] [stdout] 19 | | Self::Pass [INFO] [stdout] 20 | | } [INFO] [stdout] 21 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] help: replace the manual implementation with a derive attribute and mark the default variant [INFO] [stdout] | [INFO] [stdout] 5 + #[derive(Default)] [INFO] [stdout] 6 | pub enum Qualifier { [INFO] [stdout] 7 | /// This is the default value for a qualifier if the value is not present in the SPF record. [INFO] [stdout] 8 | /// It is denoted by '+' (Plus Sign) [INFO] [stdout] 9 ~ #[default] [INFO] [stdout] 10 ~ Pass, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enclosing `Ok` and `?` operator are unneeded [INFO] [stdout] --> src/mechanism/mod.rs:257:9 [INFO] [stdout] | [INFO] [stdout] 257 | Ok(Mechanism::new(Kind::Redirect, qualifier).with_rrdata(rrdata)?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark [INFO] [stdout] = note: `#[warn(clippy::needless_question_mark)]` on by default [INFO] [stdout] help: remove the enclosing `Ok` and `?` operator [INFO] [stdout] | [INFO] [stdout] 257 - Ok(Mechanism::new(Kind::Redirect, qualifier).with_rrdata(rrdata)?) [INFO] [stdout] 257 + Mechanism::new(Kind::Redirect, qualifier).with_rrdata(rrdata) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enclosing `Ok` and `?` operator are unneeded [INFO] [stdout] --> src/mechanism/mod.rs:366:9 [INFO] [stdout] | [INFO] [stdout] 366 | Ok(Mechanism::new(Kind::Include, qualifier).with_rrdata(rrdata)?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark [INFO] [stdout] help: remove the enclosing `Ok` and `?` operator [INFO] [stdout] | [INFO] [stdout] 366 - Ok(Mechanism::new(Kind::Include, qualifier).with_rrdata(rrdata)?) [INFO] [stdout] 366 + Mechanism::new(Kind::Include, qualifier).with_rrdata(rrdata) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enclosing `Ok` and `?` operator are unneeded [INFO] [stdout] --> src/mechanism/mod.rs:409:9 [INFO] [stdout] | [INFO] [stdout] 409 | Ok(Mechanism::new(Kind::Exists, qualifier).with_rrdata(rrdata)?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark [INFO] [stdout] help: remove the enclosing `Ok` and `?` operator [INFO] [stdout] | [INFO] [stdout] 409 - Ok(Mechanism::new(Kind::Exists, qualifier).with_rrdata(rrdata)?) [INFO] [stdout] 409 + Mechanism::new(Kind::Exists, qualifier).with_rrdata(rrdata) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `self.rrdata` after checking its variant with `is_none` [INFO] [stdout] --> src/mechanism/mod.rs:461:13 [INFO] [stdout] | [INFO] [stdout] 458 | if self.rrdata.is_none() { [INFO] [stdout] | ------------------------ help: try: `if let Some() = &self.rrdata` [INFO] [stdout] ... [INFO] [stdout] 461 | self.rrdata.as_ref().unwrap().to_string() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/mechanism/mod.rs:480:17 [INFO] [stdout] | [INFO] [stdout] 480 | / if !tmp_mechanism_str.is_empty() && !tmp_mechanism_str.starts_with('/') { [INFO] [stdout] 481 | | mechanism_str.push(':') [INFO] [stdout] 482 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 478 ~ Kind::A | Kind::MX [INFO] [stdout] 479 | // This must be starting with 'domain.com' So prepend ':' [INFO] [stdout] 480 ~ if !tmp_mechanism_str.is_empty() && !tmp_mechanism_str.starts_with('/') => { [INFO] [stdout] 481 | mechanism_str.push(':') [INFO] [stdout] 482 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/mechanism/mod.rs:486:17 [INFO] [stdout] | [INFO] [stdout] 486 | / if !tmp_mechanism_str.is_empty() { [INFO] [stdout] 487 | | mechanism_str.push(':') [INFO] [stdout] 488 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 484 ~ Kind::Ptr [INFO] [stdout] 485 | // This Ptr has a domain. Prepend ':' [INFO] [stdout] 486 ~ if !tmp_mechanism_str.is_empty() => { [INFO] [stdout] 487 | mechanism_str.push(':') [INFO] [stdout] 488 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enclosing `Ok` and `?` operator are unneeded [INFO] [stdout] --> src/mechanism/mod.rs:528:9 [INFO] [stdout] | [INFO] [stdout] 528 | Ok(Mechanism::::from_str(string)?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark [INFO] [stdout] help: remove the enclosing `Ok` and `?` operator [INFO] [stdout] | [INFO] [stdout] 528 - Ok(Mechanism::::from_str(string)?) [INFO] [stdout] 528 + Mechanism::::from_str(string) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/spf/mod.rs:453:9 [INFO] [stdout] | [INFO] [stdout] 453 | /// [`SourceLengthExceeded`](SpfError::SourceLengthExceeded) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 453 | /// [`SourceLengthExceeded`](SpfError::SourceLengthExceeded) [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/spf/mod.rs:455:9 [INFO] [stdout] | [INFO] [stdout] 455 | /// , `Redirect`, and `Include` Mechanism. See: [`LookupLimitExceeded`](SpfError::LookupLimitExceeded) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 455 | /// , `Redirect`, and `Include` Mechanism. See: [`LookupLimitExceeded`](SpfError::LookupLimitExceeded) [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/spf/mod.rs:456:9 [INFO] [stdout] | [INFO] [stdout] 456 | /// (This will change given new information) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 456 | /// (This will change given new information) [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/spf/mod.rs:478:9 [INFO] [stdout] | [INFO] [stdout] 478 | / return match rfc { [INFO] [stdout] 479 | | SpfRfcStandard::Rfc4408 => validate::validate_rfc4408(self), [INFO] [stdout] 480 | | }; [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] 478 ~ match rfc { [INFO] [stdout] 479 + SpfRfcStandard::Rfc4408 => validate::validate_rfc4408(self), [INFO] [stdout] 480 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/spf/mod.rs:483:27 [INFO] [stdout] | [INFO] [stdout] 483 | fn validate_to_string(&mut self, rfc: SpfRfcStandard) -> SpfValidationResult { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 483 | fn validate_to_string(&mut self, rfc: SpfRfcStandard) -> SpfValidationResult<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking trust-dns-proto v0.20.4 [INFO] [stderr] Checking trust-dns-resolver v0.20.4 [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/invalid.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #[cfg(test)] [INFO] [stdout] 2 | | [INFO] [stdout] | |_^ [INFO] [stdout] 3 | mod general { [INFO] [stdout] | ----------- the attribute applies to this module [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the attribute should apply to the parent module use an inner attribute [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg(test)] [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/ipnetwork.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #[cfg(test)] [INFO] [stdout] 2 | | [INFO] [stdout] | |_^ [INFO] [stdout] 3 | mod valid_ip4 { [INFO] [stdout] | ------------- the attribute applies to this module [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the attribute should apply to the parent module use an inner attribute [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg(test)] [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/mechanism/mod.rs:498:1 [INFO] [stdout] | [INFO] [stdout] 498 | / /// Provide to_string for Mechanism [INFO] [stdout] 499 | | [INFO] [stdout] | |_^ [INFO] [stdout] 500 | impl std::fmt::Display for Mechanism { [INFO] [stdout] | - the comment documents this implementation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/spf/tests/a.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #[cfg(test)] [INFO] [stdout] 2 | | [INFO] [stdout] | |_^ [INFO] [stdout] 3 | mod parse { [INFO] [stdout] | --------- the attribute applies to this module [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the attribute should apply to the parent module use an inner attribute [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg(test)] [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/spf/tests/exists.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #[cfg(test)] [INFO] [stdout] 2 | | [INFO] [stdout] | |_^ [INFO] [stdout] 3 | mod parse { [INFO] [stdout] | --------- the attribute applies to this module [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the attribute should apply to the parent module use an inner attribute [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg(test)] [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/spf/tests/include.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #[cfg(test)] [INFO] [stdout] 2 | | [INFO] [stdout] | |_^ [INFO] [stdout] 3 | mod parse { [INFO] [stdout] | --------- the attribute applies to this module [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the attribute should apply to the parent module use an inner attribute [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg(test)] [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/spf/tests/ip4.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #[cfg(test)] [INFO] [stdout] 2 | | [INFO] [stdout] | |_^ [INFO] [stdout] 3 | mod parse { [INFO] [stdout] | --------- the attribute applies to this module [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the attribute should apply to the parent module use an inner attribute [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg(test)] [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/spf/tests/ip6.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #[cfg(test)] [INFO] [stdout] 2 | | [INFO] [stdout] | |_^ [INFO] [stdout] 3 | mod parse { [INFO] [stdout] | --------- the attribute applies to this module [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the attribute should apply to the parent module use an inner attribute [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg(test)] [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/spf/tests/mx.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #[cfg(test)] [INFO] [stdout] 2 | | [INFO] [stdout] | |_^ [INFO] [stdout] 3 | mod parse { [INFO] [stdout] | --------- the attribute applies to this module [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the attribute should apply to the parent module use an inner attribute [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg(test)] [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/spf/tests/parse.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #[cfg(test)] [INFO] [stdout] 2 | | [INFO] [stdout] | |_^ [INFO] [stdout] 3 | mod valid_spf_from_str { [INFO] [stdout] | ---------------------- the attribute applies to this module [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the attribute should apply to the parent module use an inner attribute [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg(test)] [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/spf/tests/ptr.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #[cfg(test)] [INFO] [stdout] 2 | | [INFO] [stdout] | |_^ [INFO] [stdout] 3 | mod parse { [INFO] [stdout] | --------- the attribute applies to this module [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the attribute should apply to the parent module use an inner attribute [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg(test)] [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ParsedMechanism` [INFO] [stdout] --> src/spf/mod.rs:11:39 [INFO] [stdout] | [INFO] [stdout] 11 | pub use crate::mechanism::{Mechanism, ParsedMechanism, Qualifier}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> examples/trust-dns-demo.rs:25:34 [INFO] [stdout] | [INFO] [stdout] 25 | let spf_record = display_txt(&query, &txt_response); [INFO] [stdout] | ^^^^^^ help: change this to: `query` [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: manual implementation of an assign operation [INFO] [stdout] --> examples/trust-dns-demo.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | 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] = note: `#[warn(clippy::assign_op_pattern)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MECHANISM_ALL_PATTERN` is never used [INFO] [stdout] --> src/helpers.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) const MECHANISM_ALL_PATTERN: &str = r"^(?P[+?~-])?all(?P\s)?$"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/lib.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | //! `ParsedMechanism`. By default `Mechanism`'s `rrdata` is not checked. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] = note: `#[warn(clippy::doc_lazy_continuation)]` on by default [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 25 | //! `ParsedMechanism`. By default `Mechanism`'s `rrdata` is not checked. [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/mechanism/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | //! or a `Mechanism` if the string is succesfully parsed. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 9 | //! or a `Mechanism` if the string is succesfully parsed. [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/mechanism/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | //! to be `parsed()` [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 11 | //! to be `parsed()` [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/mechanism/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | //! used with the `FromStr` trait. [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 13 | //! used with the `FromStr` trait. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/mechanism/kind.rs:152:1 [INFO] [stdout] | [INFO] [stdout] 152 | / impl Default for Kind { [INFO] [stdout] 153 | | fn default() -> Self { [INFO] [stdout] 154 | | Self::A [INFO] [stdout] 155 | | } [INFO] [stdout] 156 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] = note: `#[warn(clippy::derivable_impls)]` on by default [INFO] [stdout] help: replace the manual implementation with a derive attribute and mark the default variant [INFO] [stdout] | [INFO] [stdout] 8 + #[derive(Default)] [INFO] [stdout] 9 | pub enum Kind { [INFO] [stdout] 10 | /// Represents a *Modifier* of type redirect= [INFO] [stdout] ... [INFO] [stdout] 20 | /// ``` [INFO] [stdout] 21 ~ #[default] [INFO] [stdout] 22 ~ A, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/mechanism/qualifier.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / impl Default for Qualifier { [INFO] [stdout] 18 | | fn default() -> Self { [INFO] [stdout] 19 | | Self::Pass [INFO] [stdout] 20 | | } [INFO] [stdout] 21 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] help: replace the manual implementation with a derive attribute and mark the default variant [INFO] [stdout] | [INFO] [stdout] 5 + #[derive(Default)] [INFO] [stdout] 6 | pub enum Qualifier { [INFO] [stdout] 7 | /// This is the default value for a qualifier if the value is not present in the SPF record. [INFO] [stdout] 8 | /// It is denoted by '+' (Plus Sign) [INFO] [stdout] 9 ~ #[default] [INFO] [stdout] 10 ~ Pass, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/qualifier.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | assert_eq!(q.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] 67 - assert_eq!(q.is_pass(), true); [INFO] [stdout] 67 + assert!(q.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/qualifier.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | assert_eq!(q.is_fail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 72 - assert_eq!(q.is_fail(), true); [INFO] [stdout] 72 + assert!(q.is_fail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/qualifier.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | assert_eq!(q.is_softfail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(q.is_softfail(), true); [INFO] [stdout] 77 + assert!(q.is_softfail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/qualifier.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | assert_eq!(q.is_neutral(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 82 - assert_eq!(q.is_neutral(), true); [INFO] [stdout] 82 + assert!(q.is_neutral()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | assert_eq!(a_mechanism.is_fail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(a_mechanism.is_fail(), true); [INFO] [stdout] 10 + assert!(a_mechanism.is_fail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | assert_eq!(a_mechanism.is_fail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 20 - assert_eq!(a_mechanism.is_fail(), true); [INFO] [stdout] 20 + assert!(a_mechanism.is_fail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | assert_eq!(mx.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 36 - assert_eq!(mx.is_pass(), true); [INFO] [stdout] 36 + assert!(mx.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | assert_eq!(mx.is_softfail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(mx.is_softfail(), true); [INFO] [stdout] 43 + assert!(mx.is_softfail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | assert_eq!(mx.is_neutral(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 50 - assert_eq!(mx.is_neutral(), true); [INFO] [stdout] 50 + assert!(mx.is_neutral()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | assert_eq!(exists.is_neutral(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 65 - assert_eq!(exists.is_neutral(), true); [INFO] [stdout] 65 + assert!(exists.is_neutral()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | assert_eq!(include.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 80 - assert_eq!(include.is_pass(), true); [INFO] [stdout] 80 + assert!(include.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | assert_eq!(include.is_fail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(include.is_fail(), true); [INFO] [stdout] 88 + assert!(include.is_fail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | assert_eq!(include.is_softfail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 94 - assert_eq!(include.is_softfail(), true); [INFO] [stdout] 94 + assert!(include.is_softfail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | assert_eq!(include.is_neutral(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 100 - assert_eq!(include.is_neutral(), true); [INFO] [stdout] 100 + assert!(include.is_neutral()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | assert_eq!(ptr.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(ptr.is_pass(), true); [INFO] [stdout] 114 + assert!(ptr.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | assert_eq!(ptr.is_neutral(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 122 - assert_eq!(ptr.is_neutral(), true); [INFO] [stdout] 122 + assert!(ptr.is_neutral()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | assert_eq!(redirect.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 137 - assert_eq!(redirect.is_pass(), true); [INFO] [stdout] 137 + assert!(redirect.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | assert_eq!(ip4_pass.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 154 - assert_eq!(ip4_pass.is_pass(), true); [INFO] [stdout] 154 + assert!(ip4_pass.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | assert_eq!(ip4_fail.is_fail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 164 - assert_eq!(ip4_fail.is_fail(), true); [INFO] [stdout] 164 + assert!(ip4_fail.is_fail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | assert_eq!(ip4_softfail.is_softfail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 171 - assert_eq!(ip4_softfail.is_softfail(), true); [INFO] [stdout] 171 + assert!(ip4_softfail.is_softfail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | assert_eq!(ip4_neutral.is_neutral(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 178 - assert_eq!(ip4_neutral.is_neutral(), true); [INFO] [stdout] 178 + assert!(ip4_neutral.is_neutral()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:186:9 [INFO] [stdout] | [INFO] [stdout] 186 | assert_eq!(unwrapped.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 186 - assert_eq!(unwrapped.is_pass(), true); [INFO] [stdout] 186 + assert!(unwrapped.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | assert_eq!(ip_pass.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 213 - assert_eq!(ip_pass.is_pass(), true); [INFO] [stdout] 213 + assert!(ip_pass.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | assert_eq!(ip_fail.is_fail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 220 - assert_eq!(ip_fail.is_fail(), true); [INFO] [stdout] 220 + assert!(ip_fail.is_fail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:227:9 [INFO] [stdout] | [INFO] [stdout] 227 | assert_eq!(ip_softfail.is_softfail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 227 - assert_eq!(ip_softfail.is_softfail(), true); [INFO] [stdout] 227 + assert!(ip_softfail.is_softfail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:234:9 [INFO] [stdout] | [INFO] [stdout] 234 | assert_eq!(ip_neutral.is_neutral(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 234 - assert_eq!(ip_neutral.is_neutral(), true); [INFO] [stdout] 234 + assert!(ip_neutral.is_neutral()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:242:9 [INFO] [stdout] | [INFO] [stdout] 242 | assert_eq!(unwrapped.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 242 - assert_eq!(unwrapped.is_pass(), true); [INFO] [stdout] 242 + assert!(unwrapped.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/build.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | assert_eq!(a_mechanism.is_fail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 266 - assert_eq!(a_mechanism.is_fail(), true); [INFO] [stdout] 266 + assert!(a_mechanism.is_fail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/a.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | let option_test: Option>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ created here [INFO] [stdout] 12 | [INFO] [stdout] 13 | option_test = helpers::capture_matches(&string, Kind::A); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ initialised here [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] = note: `#[warn(clippy::needless_late_init)]` on by default [INFO] [stdout] help: move the declaration `option_test` here [INFO] [stdout] | [INFO] [stdout] 11 ~ [INFO] [stdout] 12 | [INFO] [stdout] 13 ~ let option_test: Option> = helpers::capture_matches(&string, Kind::A); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/a.rs:13:44 [INFO] [stdout] | [INFO] [stdout] 13 | option_test = helpers::capture_matches(&string, Kind::A); [INFO] [stdout] | ^^^^^^^ help: change this to: `string` [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] --> src/mechanism/tests/mechanism/capture/a.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | assert_eq!(test.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 16 - assert_eq!(test.is_pass(), true); [INFO] [stdout] 16 + assert!(test.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/a.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | let option_test: Option>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ created here [INFO] [stdout] 24 | [INFO] [stdout] 25 | option_test = helpers::capture_matches(&string, Kind::A); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ initialised here [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `option_test` here [INFO] [stdout] | [INFO] [stdout] 23 ~ [INFO] [stdout] 24 | [INFO] [stdout] 25 ~ let option_test: Option> = helpers::capture_matches(&string, Kind::A); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/a.rs:25:44 [INFO] [stdout] | [INFO] [stdout] 25 | option_test = helpers::capture_matches(&string, Kind::A); [INFO] [stdout] | ^^^^^^^ help: change this to: `string` [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] --> src/mechanism/tests/mechanism/capture/a.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | assert_eq!(test.is_fail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 28 - assert_eq!(test.is_fail(), true); [INFO] [stdout] 28 + assert!(test.is_fail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/a.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | let option_test: Option>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ created here [INFO] [stdout] 36 | [INFO] [stdout] 37 | option_test = helpers::capture_matches(&string, Kind::A); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ initialised here [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `option_test` here [INFO] [stdout] | [INFO] [stdout] 35 ~ [INFO] [stdout] 36 | [INFO] [stdout] 37 ~ let option_test: Option> = helpers::capture_matches(&string, Kind::A); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/a.rs:37:44 [INFO] [stdout] | [INFO] [stdout] 37 | option_test = helpers::capture_matches(&string, Kind::A); [INFO] [stdout] | ^^^^^^^ help: change this to: `string` [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] --> src/mechanism/tests/mechanism/capture/a.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | assert_eq!(test.is_softfail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 40 - assert_eq!(test.is_softfail(), true); [INFO] [stdout] 40 + assert!(test.is_softfail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/a.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | let option_test: Option>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ created here [INFO] [stdout] 48 | [INFO] [stdout] 49 | option_test = helpers::capture_matches(&string, Kind::A); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ initialised here [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `option_test` here [INFO] [stdout] | [INFO] [stdout] 47 ~ [INFO] [stdout] 48 | [INFO] [stdout] 49 ~ let option_test: Option> = helpers::capture_matches(&string, Kind::A); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/a.rs:49:44 [INFO] [stdout] | [INFO] [stdout] 49 | option_test = helpers::capture_matches(&string, Kind::A); [INFO] [stdout] | ^^^^^^^ help: change this to: `string` [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] --> src/mechanism/tests/mechanism/capture/a.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | assert_eq!(test.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 52 - assert_eq!(test.is_pass(), true); [INFO] [stdout] 52 + assert!(test.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/exists.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | let option_test: Option>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ created here [INFO] [stdout] 12 | [INFO] [stdout] 13 | option_test = helpers::capture_matches(&string, Kind::Exists); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ initialised here [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `option_test` here [INFO] [stdout] | [INFO] [stdout] 11 ~ [INFO] [stdout] 12 | [INFO] [stdout] 13 ~ let option_test: Option> = helpers::capture_matches(&string, Kind::Exists); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/exists.rs:13:44 [INFO] [stdout] | [INFO] [stdout] 13 | option_test = helpers::capture_matches(&string, Kind::Exists); [INFO] [stdout] | ^^^^^^^ help: change this to: `string` [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] --> src/mechanism/tests/mechanism/capture/exists.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | assert_eq!(test.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 16 - assert_eq!(test.is_pass(), true); [INFO] [stdout] 16 + assert!(test.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/mx.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | let option_test: Option>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ created here [INFO] [stdout] 12 | [INFO] [stdout] 13 | option_test = helpers::capture_matches(&string, Kind::MX); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ initialised here [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `option_test` here [INFO] [stdout] | [INFO] [stdout] 11 ~ [INFO] [stdout] 12 | [INFO] [stdout] 13 ~ let option_test: Option> = helpers::capture_matches(&string, Kind::MX); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/mx.rs:13:44 [INFO] [stdout] | [INFO] [stdout] 13 | option_test = helpers::capture_matches(&string, Kind::MX); [INFO] [stdout] | ^^^^^^^ help: change this to: `string` [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] --> src/mechanism/tests/mechanism/capture/mx.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | assert_eq!(test.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 16 - assert_eq!(test.is_pass(), true); [INFO] [stdout] 16 + assert!(test.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/mx.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | let option_test: Option>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ created here [INFO] [stdout] 24 | [INFO] [stdout] 25 | option_test = helpers::capture_matches(&string, Kind::MX); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ initialised here [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `option_test` here [INFO] [stdout] | [INFO] [stdout] 23 ~ [INFO] [stdout] 24 | [INFO] [stdout] 25 ~ let option_test: Option> = helpers::capture_matches(&string, Kind::MX); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/mx.rs:25:44 [INFO] [stdout] | [INFO] [stdout] 25 | option_test = helpers::capture_matches(&string, Kind::MX); [INFO] [stdout] | ^^^^^^^ help: change this to: `string` [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] --> src/mechanism/tests/mechanism/capture/mx.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | assert_eq!(test.is_fail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 28 - assert_eq!(test.is_fail(), true); [INFO] [stdout] 28 + assert!(test.is_fail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/mx.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | let option_test: Option>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ created here [INFO] [stdout] 36 | [INFO] [stdout] 37 | option_test = helpers::capture_matches(&string, Kind::MX); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ initialised here [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `option_test` here [INFO] [stdout] | [INFO] [stdout] 35 ~ [INFO] [stdout] 36 | [INFO] [stdout] 37 ~ let option_test: Option> = helpers::capture_matches(&string, Kind::MX); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/mx.rs:37:44 [INFO] [stdout] | [INFO] [stdout] 37 | option_test = helpers::capture_matches(&string, Kind::MX); [INFO] [stdout] | ^^^^^^^ help: change this to: `string` [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] --> src/mechanism/tests/mechanism/capture/mx.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | assert_eq!(test.is_softfail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 40 - assert_eq!(test.is_softfail(), true); [INFO] [stdout] 40 + assert!(test.is_softfail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/mx.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | let option_test: Option>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ created here [INFO] [stdout] 48 | [INFO] [stdout] 49 | option_test = helpers::capture_matches(&string, Kind::MX); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ initialised here [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `option_test` here [INFO] [stdout] | [INFO] [stdout] 47 ~ [INFO] [stdout] 48 | [INFO] [stdout] 49 ~ let option_test: Option> = helpers::capture_matches(&string, Kind::MX); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/mx.rs:49:44 [INFO] [stdout] | [INFO] [stdout] 49 | option_test = helpers::capture_matches(&string, Kind::MX); [INFO] [stdout] | ^^^^^^^ help: change this to: `string` [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] --> src/mechanism/tests/mechanism/capture/mx.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | assert_eq!(test.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 52 - assert_eq!(test.is_pass(), true); [INFO] [stdout] 52 + assert!(test.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/ptr.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | let option_test: Option>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ created here [INFO] [stdout] 12 | [INFO] [stdout] 13 | option_test = helpers::capture_matches(&string, Kind::Ptr); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ initialised here [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `option_test` here [INFO] [stdout] | [INFO] [stdout] 11 ~ [INFO] [stdout] 12 | [INFO] [stdout] 13 ~ let option_test: Option> = helpers::capture_matches(&string, Kind::Ptr); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/ptr.rs:13:44 [INFO] [stdout] | [INFO] [stdout] 13 | option_test = helpers::capture_matches(&string, Kind::Ptr); [INFO] [stdout] | ^^^^^^^ help: change this to: `string` [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] --> src/mechanism/tests/mechanism/capture/ptr.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | assert_eq!(test.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 17 - assert_eq!(test.is_pass(), true); [INFO] [stdout] 17 + assert!(test.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/ptr.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | let option_test: Option>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ created here [INFO] [stdout] 25 | [INFO] [stdout] 26 | option_test = helpers::capture_matches(&string, Kind::Ptr); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ initialised here [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `option_test` here [INFO] [stdout] | [INFO] [stdout] 24 ~ [INFO] [stdout] 25 | [INFO] [stdout] 26 ~ let option_test: Option> = helpers::capture_matches(&string, Kind::Ptr); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/mechanism/tests/mechanism/capture/ptr.rs:26:44 [INFO] [stdout] | [INFO] [stdout] 26 | option_test = helpers::capture_matches(&string, Kind::Ptr); [INFO] [stdout] | ^^^^^^^ help: change this to: `string` [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] --> src/mechanism/tests/mechanism/capture/ptr.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | assert_eq!(test.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 30 - assert_eq!(test.is_pass(), true); [INFO] [stdout] 30 + assert!(test.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/create.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(a_mechanism.is_fail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 9 - assert_eq!(a_mechanism.is_fail(), true); [INFO] [stdout] 9 + assert!(a_mechanism.is_fail()); [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/mechanism/tests/mechanism/create.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | / match a_mechanism { [INFO] [stdout] 19 | | Ok(m) => { [INFO] [stdout] 20 | | assert_eq!(m.is_fail(), true); [INFO] [stdout] 21 | | assert_eq!(m.kind(), &Kind::A); [INFO] [stdout] ... | [INFO] [stdout] 25 | | Err(_) => {} [INFO] [stdout] 26 | | } [INFO] [stdout] | |_________^ [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] help: try [INFO] [stdout] | [INFO] [stdout] 18 ~ if let Ok(m) = a_mechanism { [INFO] [stdout] 19 + assert_eq!(m.is_fail(), true); [INFO] [stdout] 20 + assert_eq!(m.kind(), &Kind::A); [INFO] [stdout] 21 + assert_eq!(m.raw(), string); [INFO] [stdout] 22 + assert_eq!(m.to_string(), "-a:example.com"); [INFO] [stdout] 23 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/create.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | assert_eq!(m.is_fail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 20 - assert_eq!(m.is_fail(), true); [INFO] [stdout] 20 + assert!(m.is_fail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/create.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | assert_eq!(mx.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(mx.is_pass(), true); [INFO] [stdout] 64 + assert!(mx.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/create.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | assert_eq!(mx.is_neutral(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 73 - assert_eq!(mx.is_neutral(), true); [INFO] [stdout] 73 + assert!(mx.is_neutral()); [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/mechanism/tests/mechanism/create.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | / match mx { [INFO] [stdout] 81 | | Ok(mx) => { [INFO] [stdout] 82 | | assert_eq!(mx.is_neutral(), true); [INFO] [stdout] 83 | | assert_eq!(mx.raw(), "example.com"); [INFO] [stdout] ... | [INFO] [stdout] 86 | | Err(_) => {} [INFO] [stdout] 87 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 80 ~ if let Ok(mx) = mx { [INFO] [stdout] 81 + assert_eq!(mx.is_neutral(), true); [INFO] [stdout] 82 + assert_eq!(mx.raw(), "example.com"); [INFO] [stdout] 83 + assert_eq!(mx.to_string(), "?mx:example.com"); [INFO] [stdout] 84 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/create.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | assert_eq!(mx.is_neutral(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 82 - assert_eq!(mx.is_neutral(), true); [INFO] [stdout] 82 + assert!(mx.is_neutral()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/create.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | assert_eq!(mx.is_neutral(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 106 - assert_eq!(mx.is_neutral(), true); [INFO] [stdout] 106 + assert!(mx.is_neutral()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/create.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | assert_eq!(exists.is_neutral(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 140 - assert_eq!(exists.is_neutral(), true); [INFO] [stdout] 140 + assert!(exists.is_neutral()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/create.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | assert_eq!(include.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 154 - assert_eq!(include.is_pass(), true); [INFO] [stdout] 154 + assert!(include.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/create.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | assert_eq!(include.is_fail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 162 - assert_eq!(include.is_fail(), true); [INFO] [stdout] 162 + assert!(include.is_fail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/create.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | assert_eq!(include.is_softfail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 168 - assert_eq!(include.is_softfail(), true); [INFO] [stdout] 168 + assert!(include.is_softfail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/create.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | assert_eq!(include.is_neutral(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 174 - assert_eq!(include.is_neutral(), true); [INFO] [stdout] 174 + assert!(include.is_neutral()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/create.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | assert_eq!(ptr.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 187 - assert_eq!(ptr.is_pass(), true); [INFO] [stdout] 187 + assert!(ptr.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/create.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | assert_eq!(ptr.is_neutral(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 196 - assert_eq!(ptr.is_neutral(), true); [INFO] [stdout] 196 + assert!(ptr.is_neutral()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/create.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 211 | assert_eq!(redirect.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 211 - assert_eq!(redirect.is_pass(), true); [INFO] [stdout] 211 + assert!(redirect.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/create.rs:234:9 [INFO] [stdout] | [INFO] [stdout] 234 | assert_eq!(a_mechanism.is_fail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 234 - assert_eq!(a_mechanism.is_fail(), true); [INFO] [stdout] 234 + assert!(a_mechanism.is_fail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/create.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 243 | assert_eq!(a_mechanism.is_fail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 243 - assert_eq!(a_mechanism.is_fail(), true); [INFO] [stdout] 243 + assert!(a_mechanism.is_fail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/a.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | assert_eq!(m.kind().is_a(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 19 - assert_eq!(m.kind().is_a(), true); [INFO] [stdout] 19 + assert!(m.kind().is_a()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/a.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | assert_eq!(m.kind().is_a(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 28 - assert_eq!(m.kind().is_a(), true); [INFO] [stdout] 28 + assert!(m.kind().is_a()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/a.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | assert_eq!(m.kind().is_a(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 37 - assert_eq!(m.kind().is_a(), true); [INFO] [stdout] 37 + assert!(m.kind().is_a()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/a.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | assert_eq!(m.kind().is_a(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 46 - assert_eq!(m.kind().is_a(), true); [INFO] [stdout] 46 + assert!(m.kind().is_a()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/a.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | assert_eq!(m.kind().is_a(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(m.kind().is_a(), true); [INFO] [stdout] 55 + assert!(m.kind().is_a()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/a.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | assert_eq!(m.kind().is_a(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(m.kind().is_a(), true); [INFO] [stdout] 64 + assert!(m.kind().is_a()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/all.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(m.kind().is_all(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 9 - assert_eq!(m.kind().is_all(), true); [INFO] [stdout] 9 + assert!(m.kind().is_all()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/all.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | assert_eq!(m.kind().is_all(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 18 - assert_eq!(m.kind().is_all(), true); [INFO] [stdout] 18 + assert!(m.kind().is_all()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/all.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | assert_eq!(m.kind().is_all(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 27 - assert_eq!(m.kind().is_all(), true); [INFO] [stdout] 27 + assert!(m.kind().is_all()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/all.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | assert_eq!(m.kind().is_all(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 36 - assert_eq!(m.kind().is_all(), true); [INFO] [stdout] 36 + assert!(m.kind().is_all()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/exists.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(m.kind().is_exists(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 9 - assert_eq!(m.kind().is_exists(), true); [INFO] [stdout] 9 + assert!(m.kind().is_exists()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/exists.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | assert_eq!(m.kind().is_exists(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 18 - assert_eq!(m.kind().is_exists(), true); [INFO] [stdout] 18 + assert!(m.kind().is_exists()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/exists.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | assert_eq!(m.kind().is_exists(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 27 - assert_eq!(m.kind().is_exists(), true); [INFO] [stdout] 27 + assert!(m.kind().is_exists()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/include.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(m.kind().is_include(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 9 - assert_eq!(m.kind().is_include(), true); [INFO] [stdout] 9 + assert!(m.kind().is_include()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/include.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | assert_eq!(m.kind().is_include(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 18 - assert_eq!(m.kind().is_include(), true); [INFO] [stdout] 18 + assert!(m.kind().is_include()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/include.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | assert_eq!(m.kind().is_include(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 27 - assert_eq!(m.kind().is_include(), true); [INFO] [stdout] 27 + assert!(m.kind().is_include()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/invalid.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | assert_eq!(m.is_err(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 12 - assert_eq!(m.is_err(), true); [INFO] [stdout] 12 + assert!(m.is_err()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/invalid.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | assert_eq!(err.is_invalid_format(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 18 - assert_eq!(err.is_invalid_format(), true); [INFO] [stdout] 18 + assert!(err.is_invalid_format()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/invalid.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | assert_eq!(m.is_err(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 25 - assert_eq!(m.is_err(), true); [INFO] [stdout] 25 + assert!(m.is_err()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/invalid.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | assert_eq!(err.is_invalid_format(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 27 - assert_eq!(err.is_invalid_format(), true); [INFO] [stdout] 27 + assert!(err.is_invalid_format()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/invalid.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | assert_eq!(m.is_err(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 38 - assert_eq!(m.is_err(), true); [INFO] [stdout] 38 + assert!(m.is_err()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/invalid.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | assert_eq!(err.is_invalid_format(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 40 - assert_eq!(err.is_invalid_format(), true); [INFO] [stdout] 40 + assert!(err.is_invalid_format()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/invalid.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | assert_eq!(m.is_err(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 51 - assert_eq!(m.is_err(), true); [INFO] [stdout] 51 + assert!(m.is_err()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/invalid.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | assert_eq!(err.is_invalid_format(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(err.is_invalid_format(), true); [INFO] [stdout] 53 + assert!(err.is_invalid_format()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/invalid.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | assert_eq!(m.is_err(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(m.is_err(), true); [INFO] [stdout] 64 + assert!(m.is_err()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/invalid.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | assert_eq!(err.is_invalid_format(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 66 - assert_eq!(err.is_invalid_format(), true); [INFO] [stdout] 66 + assert!(err.is_invalid_format()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/invalid.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | assert_eq!(m.is_err(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(m.is_err(), true); [INFO] [stdout] 77 + assert!(m.is_err()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/invalid.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | assert_eq!(err.is_invalid_format(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(err.is_invalid_format(), true); [INFO] [stdout] 79 + assert!(err.is_invalid_format()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/invalid.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | assert_eq!(m.is_err(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(m.is_err(), true); [INFO] [stdout] 90 + assert!(m.is_err()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/invalid.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | assert_eq!(err.is_invalid_format(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 92 - assert_eq!(err.is_invalid_format(), true); [INFO] [stdout] 92 + assert!(err.is_invalid_format()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/invalid.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | assert_eq!(m.is_err(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 103 - assert_eq!(m.is_err(), true); [INFO] [stdout] 103 + assert!(m.is_err()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/invalid.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | assert_eq!(err.is_invalid_format(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 105 - assert_eq!(err.is_invalid_format(), true); [INFO] [stdout] 105 + assert!(err.is_invalid_format()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/ipnetwork.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(m.kind().is_ip_v4(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(m.kind().is_ip_v4(), true); [INFO] [stdout] 13 + assert!(m.kind().is_ip_v4()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/ipnetwork.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | assert_eq!(m.kind().is_ip_v4(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(m.kind().is_ip_v4(), true); [INFO] [stdout] 23 + assert!(m.kind().is_ip_v4()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/ipnetwork.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(m.qualifier().is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(m.qualifier().is_pass(), true); [INFO] [stdout] 24 + assert!(m.qualifier().is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/ipnetwork.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | assert_eq!(m.kind().is_ip_v4(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(m.kind().is_ip_v4(), true); [INFO] [stdout] 33 + assert!(m.kind().is_ip_v4()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/ipnetwork.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | assert_eq!(m.qualifier().is_fail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(m.qualifier().is_fail(), true); [INFO] [stdout] 34 + assert!(m.qualifier().is_fail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/ipnetwork.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | assert_eq!(m.is_err(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 51 - assert_eq!(m.is_err(), true); [INFO] [stdout] 51 + assert!(m.is_err()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/ipnetwork.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | assert_eq!(m.is_err(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 62 - assert_eq!(m.is_err(), true); [INFO] [stdout] 62 + assert!(m.is_err()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/ipnetwork.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | assert_eq!(m.is_err(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 73 - assert_eq!(m.is_err(), true); [INFO] [stdout] 73 + assert!(m.is_err()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/ipnetwork.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | assert_eq!(m.kind().is_ip_v6(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 92 - assert_eq!(m.kind().is_ip_v6(), true); [INFO] [stdout] 92 + assert!(m.kind().is_ip_v6()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/ipnetwork.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | assert_eq!(m.qualifier().is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 93 - assert_eq!(m.qualifier().is_pass(), true); [INFO] [stdout] 93 + assert!(m.qualifier().is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/ipnetwork.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | assert_eq!(m.kind().is_ip_v6(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 102 - assert_eq!(m.kind().is_ip_v6(), true); [INFO] [stdout] 102 + assert!(m.kind().is_ip_v6()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/ipnetwork.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | assert_eq!(m.qualifier().is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 103 - assert_eq!(m.qualifier().is_pass(), true); [INFO] [stdout] 103 + assert!(m.qualifier().is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/ipnetwork.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 112 | assert_eq!(m.kind().is_ip_v6(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(m.kind().is_ip_v6(), true); [INFO] [stdout] 112 + assert!(m.kind().is_ip_v6()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/ipnetwork.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | assert_eq!(m.is_err(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 128 - assert_eq!(m.is_err(), true); [INFO] [stdout] 128 + assert!(m.is_err()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/ipnetwork.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | assert_eq!(m.is_err(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 140 - assert_eq!(m.is_err(), true); [INFO] [stdout] 140 + assert!(m.is_err()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/ipnetwork.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | assert_eq!(m.is_err(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 151 - assert_eq!(m.is_err(), true); [INFO] [stdout] 151 + assert!(m.is_err()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/mx.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(m.kind().is_mx(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 9 - assert_eq!(m.kind().is_mx(), true); [INFO] [stdout] 9 + assert!(m.kind().is_mx()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/mx.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | assert_eq!(m.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(m.is_pass(), true); [INFO] [stdout] 10 + assert!(m.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/mx.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | assert_eq!(m.kind().is_mx(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 19 - assert_eq!(m.kind().is_mx(), true); [INFO] [stdout] 19 + assert!(m.kind().is_mx()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/ptr.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(m.kind().is_ptr(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 9 - assert_eq!(m.kind().is_ptr(), true); [INFO] [stdout] 9 + assert!(m.kind().is_ptr()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/ptr.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | assert_eq!(m.is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(m.is_pass(), true); [INFO] [stdout] 10 + assert!(m.is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/ptr.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | assert_eq!(m.kind().is_ptr(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 19 - assert_eq!(m.kind().is_ptr(), true); [INFO] [stdout] 19 + assert!(m.kind().is_ptr()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/mechanism/fromstr/redirect.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(m.kind().is_redirect(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 9 - assert_eq!(m.kind().is_redirect(), true); [INFO] [stdout] 9 + assert!(m.kind().is_redirect()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/parsedmechanism/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | assert_eq!(m.network().kind().is_ip(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 8 - assert_eq!(m.network().kind().is_ip(), true); [INFO] [stdout] 8 + assert!(m.network().kind().is_ip()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/parsedmechanism/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(m.network().qualifier().is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 9 - assert_eq!(m.network().qualifier().is_pass(), true); [INFO] [stdout] 9 + assert!(m.network().qualifier().is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/parsedmechanism/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | assert_eq!(m.is_network(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 12 - assert_eq!(m.is_network(), true); [INFO] [stdout] 12 + assert!(m.is_network()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/parsedmechanism/mod.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | assert_eq!(m.txt().kind().is_a(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 19 - assert_eq!(m.txt().kind().is_a(), true); [INFO] [stdout] 19 + assert!(m.txt().kind().is_a()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/parsedmechanism/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | assert_eq!(m.txt().qualifier().is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 20 - assert_eq!(m.txt().qualifier().is_pass(), true); [INFO] [stdout] 20 + assert!(m.txt().qualifier().is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/parsedmechanism/mod.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | assert_eq!(m.txt().kind().is_a(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 27 - assert_eq!(m.txt().kind().is_a(), true); [INFO] [stdout] 27 + assert!(m.txt().kind().is_a()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/parsedmechanism/mod.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | assert_eq!(m.txt().qualifier().is_neutral(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 28 - assert_eq!(m.txt().qualifier().is_neutral(), true); [INFO] [stdout] 28 + assert!(m.txt().qualifier().is_neutral()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/parsedmechanism/mod.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | assert_eq!(m.txt().kind().is_a(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(m.txt().kind().is_a(), true); [INFO] [stdout] 35 + assert!(m.txt().kind().is_a()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/parsedmechanism/mod.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | assert_eq!(m.txt().qualifier().is_neutral(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 36 - assert_eq!(m.txt().qualifier().is_neutral(), true); [INFO] [stdout] 36 + assert!(m.txt().qualifier().is_neutral()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/parsedmechanism/mod.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | assert_eq!(m.txt().kind().is_a(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(m.txt().kind().is_a(), true); [INFO] [stdout] 43 + assert!(m.txt().kind().is_a()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/parsedmechanism/mod.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | assert_eq!(m.txt().qualifier().is_neutral(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(m.txt().qualifier().is_neutral(), true); [INFO] [stdout] 44 + assert!(m.txt().qualifier().is_neutral()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/parsedmechanism/mod.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | assert_eq!(m.is_err(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 51 - assert_eq!(m.is_err(), true); [INFO] [stdout] 51 + assert!(m.is_err()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mechanism/tests/parsedmechanism/mod.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | assert_eq!(m.txt().kind().is_redirect(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 72 - assert_eq!(m.txt().kind().is_redirect(), true); [INFO] [stdout] 72 + assert!(m.txt().kind().is_redirect()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enclosing `Ok` and `?` operator are unneeded [INFO] [stdout] --> src/mechanism/mod.rs:257:9 [INFO] [stdout] | [INFO] [stdout] 257 | Ok(Mechanism::new(Kind::Redirect, qualifier).with_rrdata(rrdata)?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark [INFO] [stdout] = note: `#[warn(clippy::needless_question_mark)]` on by default [INFO] [stdout] help: remove the enclosing `Ok` and `?` operator [INFO] [stdout] | [INFO] [stdout] 257 - Ok(Mechanism::new(Kind::Redirect, qualifier).with_rrdata(rrdata)?) [INFO] [stdout] 257 + Mechanism::new(Kind::Redirect, qualifier).with_rrdata(rrdata) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enclosing `Ok` and `?` operator are unneeded [INFO] [stdout] --> src/mechanism/mod.rs:366:9 [INFO] [stdout] | [INFO] [stdout] 366 | Ok(Mechanism::new(Kind::Include, qualifier).with_rrdata(rrdata)?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark [INFO] [stdout] help: remove the enclosing `Ok` and `?` operator [INFO] [stdout] | [INFO] [stdout] 366 - Ok(Mechanism::new(Kind::Include, qualifier).with_rrdata(rrdata)?) [INFO] [stdout] 366 + Mechanism::new(Kind::Include, qualifier).with_rrdata(rrdata) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enclosing `Ok` and `?` operator are unneeded [INFO] [stdout] --> src/mechanism/mod.rs:409:9 [INFO] [stdout] | [INFO] [stdout] 409 | Ok(Mechanism::new(Kind::Exists, qualifier).with_rrdata(rrdata)?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark [INFO] [stdout] help: remove the enclosing `Ok` and `?` operator [INFO] [stdout] | [INFO] [stdout] 409 - Ok(Mechanism::new(Kind::Exists, qualifier).with_rrdata(rrdata)?) [INFO] [stdout] 409 + Mechanism::new(Kind::Exists, qualifier).with_rrdata(rrdata) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `self.rrdata` after checking its variant with `is_none` [INFO] [stdout] --> src/mechanism/mod.rs:461:13 [INFO] [stdout] | [INFO] [stdout] 458 | if self.rrdata.is_none() { [INFO] [stdout] | ------------------------ help: try: `if let Some() = &self.rrdata` [INFO] [stdout] ... [INFO] [stdout] 461 | self.rrdata.as_ref().unwrap().to_string() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/mechanism/mod.rs:480:17 [INFO] [stdout] | [INFO] [stdout] 480 | / if !tmp_mechanism_str.is_empty() && !tmp_mechanism_str.starts_with('/') { [INFO] [stdout] 481 | | mechanism_str.push(':') [INFO] [stdout] 482 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 478 ~ Kind::A | Kind::MX [INFO] [stdout] 479 | // This must be starting with 'domain.com' So prepend ':' [INFO] [stdout] 480 ~ if !tmp_mechanism_str.is_empty() && !tmp_mechanism_str.starts_with('/') => { [INFO] [stdout] 481 | mechanism_str.push(':') [INFO] [stdout] 482 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/mechanism/mod.rs:486:17 [INFO] [stdout] | [INFO] [stdout] 486 | / if !tmp_mechanism_str.is_empty() { [INFO] [stdout] 487 | | mechanism_str.push(':') [INFO] [stdout] 488 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 484 ~ Kind::Ptr [INFO] [stdout] 485 | // This Ptr has a domain. Prepend ':' [INFO] [stdout] 486 ~ if !tmp_mechanism_str.is_empty() => { [INFO] [stdout] 487 | mechanism_str.push(':') [INFO] [stdout] 488 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enclosing `Ok` and `?` operator are unneeded [INFO] [stdout] --> src/mechanism/mod.rs:528:9 [INFO] [stdout] | [INFO] [stdout] 528 | Ok(Mechanism::::from_str(string)?) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark [INFO] [stdout] help: remove the enclosing `Ok` and `?` operator [INFO] [stdout] | [INFO] [stdout] 528 - Ok(Mechanism::::from_str(string)?) [INFO] [stdout] 528 + Mechanism::::from_str(string) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/errors.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | assert_eq!(err.is_spf_error(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(err.is_spf_error(), true); [INFO] [stdout] 113 + assert!(err.is_spf_error()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/errors.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | assert_eq!(err.is_invalid_source(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 118 - assert_eq!(err.is_invalid_source(), true); [INFO] [stdout] 118 + assert!(err.is_invalid_source()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/errors.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | assert_eq!(err.is_source_length_exceeded(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(err.is_source_length_exceeded(), true); [INFO] [stdout] 123 + assert!(err.is_source_length_exceeded()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/errors.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | assert_eq!(err.is_lookup_limit_exceeded(), true) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 128 - assert_eq!(err.is_lookup_limit_exceeded(), true) [INFO] [stdout] 128 + assert!(err.is_lookup_limit_exceeded()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/errors.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | assert_eq!(err.is_has_not_been_parsed(), true) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(err.is_has_not_been_parsed(), true) [INFO] [stdout] 133 + assert!(err.is_has_not_been_parsed()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/errors.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | assert_eq!(err.is_invalid_spf(), true) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 138 - assert_eq!(err.is_invalid_spf(), true) [INFO] [stdout] 138 + assert!(err.is_invalid_spf()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/errors.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | assert_eq!(err.is_redirect_with_all_mechanism(), true) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(err.is_redirect_with_all_mechanism(), true) [INFO] [stdout] 143 + assert!(err.is_redirect_with_all_mechanism()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/errors.rs:151:5 [INFO] [stdout] | [INFO] [stdout] 151 | assert_eq!(err.is_invalid_ip_addr(), true) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 151 - assert_eq!(err.is_invalid_ip_addr(), true) [INFO] [stdout] 151 + assert!(err.is_invalid_ip_addr()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/a.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | assert_eq!(spf.is_valid(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 12 - assert_eq!(spf.is_valid(), true); [INFO] [stdout] 12 + assert!(spf.is_valid()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/a.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | assert_eq!(spf.a().unwrap()[0].qualifier().is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(spf.a().unwrap()[0].qualifier().is_pass(), true); [INFO] [stdout] 15 + assert!(spf.a().unwrap()[0].qualifier().is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/a.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | assert_eq!(spf.all().unwrap().qualifier().is_softfail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 17 - assert_eq!(spf.all().unwrap().qualifier().is_softfail(), true); [INFO] [stdout] 17 + assert!(spf.all().unwrap().qualifier().is_softfail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/a.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | assert_eq!(spf.a().unwrap()[0].qualifier().is_fail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 26 - assert_eq!(spf.a().unwrap()[0].qualifier().is_fail(), true); [INFO] [stdout] 26 + assert!(spf.a().unwrap()[0].qualifier().is_fail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/a.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | assert_eq!(spf.a().unwrap()[0].qualifier().is_neutral(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(spf.a().unwrap()[0].qualifier().is_neutral(), true); [INFO] [stdout] 35 + assert!(spf.a().unwrap()[0].qualifier().is_neutral()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/a.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | assert_eq!(spf.a().unwrap()[0].qualifier().is_softfail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(spf.a().unwrap()[0].qualifier().is_softfail(), true); [INFO] [stdout] 44 + assert!(spf.a().unwrap()[0].qualifier().is_softfail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | assert_eq!(spf.is_v1(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 12 - assert_eq!(spf.is_v1(), true); [INFO] [stdout] 12 + assert!(spf.is_v1()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | assert_eq!(spf.is_v2(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 25 - assert_eq!(spf.is_v2(), true); [INFO] [stdout] 25 + assert!(spf.is_v2()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | assert_eq!(spf.is_v2(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(spf.is_v2(), true); [INFO] [stdout] 33 + assert!(spf.is_v2()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | assert_eq!(spf.is_v2(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 40 - assert_eq!(spf.is_v2(), true); [INFO] [stdout] 40 + assert!(spf.is_v2()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | assert_eq!(spf.is_v2(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 47 - assert_eq!(spf.is_v2(), true); [INFO] [stdout] 47 + assert!(spf.is_v2()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | assert_eq!(spf.is_redirect(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 70 - assert_eq!(spf.is_redirect(), true); [INFO] [stdout] 70 + assert!(spf.is_redirect()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | assert_eq!(spf.all().is_none(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 72 - assert_eq!(spf.all().is_none(), true); [INFO] [stdout] 72 + assert!(spf.all().is_none()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | assert_eq!(spf.is_redirect(), false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 74 - assert_eq!(spf.is_redirect(), false); [INFO] [stdout] 74 + assert!(!spf.is_redirect()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | assert_eq!(spf.redirect.is_none(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(spf.redirect.is_none(), true); [INFO] [stdout] 75 + assert!(spf.redirect.is_none()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | assert_eq!(spf.is_v1(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 83 - assert_eq!(spf.is_v1(), true); [INFO] [stdout] 83 + assert!(spf.is_v1()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | assert_eq!(spf.is_v1(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 95 - assert_eq!(spf.is_v1(), true); [INFO] [stdout] 95 + assert!(spf.is_v1()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | assert_eq!(spf.is_v1(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 108 - assert_eq!(spf.is_v1(), true); [INFO] [stdout] 108 + assert!(spf.is_v1()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | assert_eq!(spf.is_v1(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(spf.is_v1(), true); [INFO] [stdout] 124 + assert!(spf.is_v1()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:145:9 [INFO] [stdout] | [INFO] [stdout] 145 | assert_eq!(spf.is_v1(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(spf.is_v1(), true); [INFO] [stdout] 145 + assert!(spf.is_v1()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | assert_eq!(spf.is_v1(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 158 - assert_eq!(spf.is_v1(), true); [INFO] [stdout] 158 + assert!(spf.is_v1()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | assert_eq!(spf.is_v1(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 178 - assert_eq!(spf.is_v1(), true); [INFO] [stdout] 178 + assert!(spf.is_v1()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | assert_eq!(spf.is_v1(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 194 - assert_eq!(spf.is_v1(), true); [INFO] [stdout] 194 + assert!(spf.is_v1()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 214 | assert_eq!(spf.is_v1(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 214 - assert_eq!(spf.is_v1(), true); [INFO] [stdout] 214 + assert!(spf.is_v1()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | assert_eq!(spf.is_v1(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 230 - assert_eq!(spf.is_v1(), true); [INFO] [stdout] 230 + assert!(spf.is_v1()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | assert_eq!(spf.is_v1(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 250 - assert_eq!(spf.is_v1(), true); [INFO] [stdout] 250 + assert!(spf.is_v1()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:263:9 [INFO] [stdout] | [INFO] [stdout] 263 | assert_eq!(spf.is_v1(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 263 - assert_eq!(spf.is_v1(), true); [INFO] [stdout] 263 + assert!(spf.is_v1()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:283:9 [INFO] [stdout] | [INFO] [stdout] 283 | assert_eq!(spf.is_v1(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 283 - assert_eq!(spf.is_v1(), true); [INFO] [stdout] 283 + assert!(spf.is_v1()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:292:9 [INFO] [stdout] | [INFO] [stdout] 292 | assert_eq!(spf.is_v1(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 292 - assert_eq!(spf.is_v1(), true); [INFO] [stdout] 292 + assert!(spf.is_v1()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:304:9 [INFO] [stdout] | [INFO] [stdout] 304 | assert_eq!(spf.is_v1(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 304 - assert_eq!(spf.is_v1(), true); [INFO] [stdout] 304 + assert!(spf.is_v1()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:316:9 [INFO] [stdout] | [INFO] [stdout] 316 | assert_eq!(spf.is_v1(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 316 - assert_eq!(spf.is_v1(), true); [INFO] [stdout] 316 + assert!(spf.is_v1()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/construct.rs:335:9 [INFO] [stdout] | [INFO] [stdout] 335 | assert_eq!(spf.is_v1(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 335 - assert_eq!(spf.is_v1(), true); [INFO] [stdout] 335 + assert!(spf.is_v1()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/exists.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(spf.exists().unwrap()[0].qualifier().is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(spf.exists().unwrap()[0].qualifier().is_pass(), true); [INFO] [stdout] 13 + assert!(spf.exists().unwrap()[0].qualifier().is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/include.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(spf.includes().unwrap()[0].qualifier().is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(spf.includes().unwrap()[0].qualifier().is_pass(), true); [INFO] [stdout] 13 + assert!(spf.includes().unwrap()[0].qualifier().is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/ip4.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(spf.ip4().unwrap()[0].qualifier().is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(spf.ip4().unwrap()[0].qualifier().is_pass(), true); [INFO] [stdout] 13 + assert!(spf.ip4().unwrap()[0].qualifier().is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/ip6.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(spf.ip6().unwrap()[0].qualifier().is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(spf.ip6().unwrap()[0].qualifier().is_pass(), true); [INFO] [stdout] 13 + assert!(spf.ip6().unwrap()[0].qualifier().is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/mx.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | assert_eq!(spf.mx().unwrap()[0].qualifier().is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(spf.mx().unwrap()[0].qualifier().is_pass(), true); [INFO] [stdout] 14 + assert!(spf.mx().unwrap()[0].qualifier().is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/mx.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(spf.mx().unwrap()[0].qualifier().is_fail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(spf.mx().unwrap()[0].qualifier().is_fail(), true); [INFO] [stdout] 24 + assert!(spf.mx().unwrap()[0].qualifier().is_fail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/mx.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | assert_eq!(spf.mx().unwrap()[0].qualifier().is_neutral(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(spf.mx().unwrap()[0].qualifier().is_neutral(), true); [INFO] [stdout] 34 + assert!(spf.mx().unwrap()[0].qualifier().is_neutral()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/mx.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | assert_eq!(spf.mx().unwrap()[0].qualifier().is_softfail(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(spf.mx().unwrap()[0].qualifier().is_softfail(), true); [INFO] [stdout] 44 + assert!(spf.mx().unwrap()[0].qualifier().is_softfail()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | assert_eq!(spf.is_redirect(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(spf.is_redirect(), true); [INFO] [stdout] 15 + assert!(spf.is_redirect()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | assert_eq!(spf.include.is_none(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 16 - assert_eq!(spf.include.is_none(), true); [INFO] [stdout] 16 + assert!(spf.include.is_none()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | assert_eq!(spf.a.is_none(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 17 - assert_eq!(spf.a.is_none(), true); [INFO] [stdout] 17 + assert!(spf.a.is_none()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | assert_eq!(spf.mx.is_none(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 18 - assert_eq!(spf.mx.is_none(), true); [INFO] [stdout] 18 + assert!(spf.mx.is_none()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | assert_eq!(spf.ip4.is_none(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 19 - assert_eq!(spf.ip4.is_none(), true); [INFO] [stdout] 19 + assert!(spf.ip4.is_none()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | assert_eq!(spf.ip6.is_none(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 20 - assert_eq!(spf.ip6.is_none(), true); [INFO] [stdout] 20 + assert!(spf.ip6.is_none()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(spf.ptr.is_none(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(spf.ptr.is_none(), true); [INFO] [stdout] 21 + assert!(spf.ptr.is_none()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | assert_eq!(spf.exists.is_none(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 22 - assert_eq!(spf.exists.is_none(), true); [INFO] [stdout] 22 + assert!(spf.exists.is_none()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | assert_eq!(spf.all.is_none(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(spf.all.is_none(), true); [INFO] [stdout] 23 + assert!(spf.all.is_none()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | assert_eq!(spf.is_redirect(), false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(spf.is_redirect(), false); [INFO] [stdout] 43 + assert!(!spf.is_redirect()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | assert_eq!(!spf.includes().unwrap().is_empty(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(!spf.includes().unwrap().is_empty(), true); [INFO] [stdout] 44 + assert!(!spf.includes().unwrap().is_empty()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/spf/tests/parse.rs:63:20 [INFO] [stdout] | [INFO] [stdout] 63 | assert_eq!(!spf.ip6().is_none(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: try: `spf.ip6().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: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | assert_eq!(spf.includes().is_none(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 61 - assert_eq!(spf.includes().is_none(), true); [INFO] [stdout] 61 + assert!(spf.includes().is_none()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | assert_eq!(spf.ip4().is_none(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 62 - assert_eq!(spf.ip4().is_none(), true); [INFO] [stdout] 62 + assert!(spf.ip4().is_none()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | assert_eq!(!spf.ip6().is_none(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(!spf.ip6().is_none(), true); [INFO] [stdout] 63 + assert!(!spf.ip6().is_none()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | assert_eq!(spf.is_ok(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(spf.is_ok(), true); [INFO] [stdout] 76 + assert!(spf.is_ok()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | assert_eq!(spf.is_err(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 97 - assert_eq!(spf.is_err(), true); [INFO] [stdout] 97 + assert!(spf.is_err()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | assert_eq!(err.is_spf_error(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(err.is_spf_error(), true); [INFO] [stdout] 99 + assert!(err.is_spf_error()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | assert_eq!(err.is_invalid_source(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 100 - assert_eq!(err.is_invalid_source(), true); [INFO] [stdout] 100 + assert!(err.is_invalid_source()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | assert_eq!(spf.is_err(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 108 - assert_eq!(spf.is_err(), true); [INFO] [stdout] 108 + assert!(spf.is_err()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:114:9 [INFO] [stdout] | [INFO] [stdout] 114 | assert_eq!(spf.is_ok(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(spf.is_ok(), true); [INFO] [stdout] 114 + assert!(spf.is_ok()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | assert_eq!(spf.is_ok(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 120 - assert_eq!(spf.is_ok(), true); [INFO] [stdout] 120 + assert!(spf.is_ok()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | assert_eq!(spf.is_ok(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 126 - assert_eq!(spf.is_ok(), true); [INFO] [stdout] 126 + assert!(spf.is_ok()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | assert_eq!(spf.is_ok(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 132 - assert_eq!(spf.is_ok(), true); [INFO] [stdout] 132 + assert!(spf.is_ok()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | assert_eq!(spf.is_err(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 146 - assert_eq!(spf.is_err(), true); [INFO] [stdout] 146 + assert!(spf.is_err()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | assert_eq!(error.is_invalid_ip_addr(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 148 - assert_eq!(error.is_invalid_ip_addr(), true); [INFO] [stdout] 148 + assert!(error.is_invalid_ip_addr()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/parse.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | assert_eq!(spf.is_err(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 156 - assert_eq!(spf.is_err(), true); [INFO] [stdout] 156 + assert!(spf.is_err()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/ptr.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | assert_eq!(spf.ptr().unwrap().qualifier().is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 12 - assert_eq!(spf.ptr().unwrap().qualifier().is_pass(), true); [INFO] [stdout] 12 + assert!(spf.ptr().unwrap().qualifier().is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/tests/ptr.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | assert_eq!(spf.ptr().unwrap().qualifier().is_pass(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 20 - assert_eq!(spf.ptr().unwrap().qualifier().is_pass(), true); [INFO] [stdout] 20 + assert!(spf.ptr().unwrap().qualifier().is_pass()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/validate/tests/mod.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(res.is_ok(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit 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!(res.is_ok(), true); [INFO] [stdout] 24 + assert!(res.is_ok()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/validate/tests/mod.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | assert_eq!(res2.is_valid(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 26 - assert_eq!(res2.is_valid(), true); [INFO] [stdout] 26 + assert!(res2.is_valid()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/spf/validate/tests/mod.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | assert_eq!(res.is_err(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 49 - assert_eq!(res.is_err(), true); [INFO] [stdout] 49 + assert!(res.is_err()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/spf/mod.rs:453:9 [INFO] [stdout] | [INFO] [stdout] 453 | /// [`SourceLengthExceeded`](SpfError::SourceLengthExceeded) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 453 | /// [`SourceLengthExceeded`](SpfError::SourceLengthExceeded) [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/spf/mod.rs:455:9 [INFO] [stdout] | [INFO] [stdout] 455 | /// , `Redirect`, and `Include` Mechanism. See: [`LookupLimitExceeded`](SpfError::LookupLimitExceeded) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 455 | /// , `Redirect`, and `Include` Mechanism. See: [`LookupLimitExceeded`](SpfError::LookupLimitExceeded) [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/spf/mod.rs:456:9 [INFO] [stdout] | [INFO] [stdout] 456 | /// (This will change given new information) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: if this is supposed to be its own paragraph, add a blank line [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation [INFO] [stdout] help: indent this line [INFO] [stdout] | [INFO] [stdout] 456 | /// (This will change given new information) [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/spf/mod.rs:478:9 [INFO] [stdout] | [INFO] [stdout] 478 | / return match rfc { [INFO] [stdout] 479 | | SpfRfcStandard::Rfc4408 => validate::validate_rfc4408(self), [INFO] [stdout] 480 | | }; [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] 478 ~ match rfc { [INFO] [stdout] 479 + SpfRfcStandard::Rfc4408 => validate::validate_rfc4408(self), [INFO] [stdout] 480 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/spf/mod.rs:483:27 [INFO] [stdout] | [INFO] [stdout] 483 | fn validate_to_string(&mut self, rfc: SpfRfcStandard) -> SpfValidationResult { [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 483 | fn validate_to_string(&mut self, rfc: SpfRfcStandard) -> SpfValidationResult<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.06s [INFO] running `Command { std: "docker" "inspect" "e04d709aaedcd26ccc26bb6e5a4b254d611b8a96889cfb6d365b085162e2d9ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e04d709aaedcd26ccc26bb6e5a4b254d611b8a96889cfb6d365b085162e2d9ac", kill_on_drop: false }` [INFO] [stdout] e04d709aaedcd26ccc26bb6e5a4b254d611b8a96889cfb6d365b085162e2d9ac