[INFO] cloning repository https://github.com/openkylin/rust-nom [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/openkylin/rust-nom" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fopenkylin%2Frust-nom", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fopenkylin%2Frust-nom'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fe05c16b150b442bde53e7eca91d661b391d1db3 [INFO] linting openkylin/rust-nom against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fopenkylin%2Frust-nom" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/openkylin/rust-nom [INFO] removed 0 missing tests [INFO] finished tweaking git repo https://github.com/openkylin/rust-nom [INFO] tweaked toml for git repo https://github.com/openkylin/rust-nom written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/openkylin/rust-nom on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/openkylin/rust-nom already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rand_xorshift v0.3.0 [INFO] [stderr] Downloaded quick-error v2.0.1 [INFO] [stderr] Downloaded quick-error v1.2.3 [INFO] [stderr] Downloaded doc-comment v0.3.3 [INFO] [stderr] Downloaded rusty-fork v0.3.0 [INFO] [stderr] Downloaded bit-set v0.5.2 [INFO] [stderr] Downloaded ppv-lite86 v0.2.15 [INFO] [stderr] Downloaded wait-timeout v0.2.0 [INFO] [stderr] Downloaded memchr v2.4.1 [INFO] [stderr] Downloaded proptest v1.0.0 [INFO] [stderr] Downloaded regex-syntax v0.6.25 [INFO] [stderr] Downloaded libc v0.2.106 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 299bcebf586a03b3ae50d5ef66ac705e73906e116a2e7fbeb49de5abdb8ae551 [INFO] running `Command { std: "docker" "start" "-a" "299bcebf586a03b3ae50d5ef66ac705e73906e116a2e7fbeb49de5abdb8ae551", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "299bcebf586a03b3ae50d5ef66ac705e73906e116a2e7fbeb49de5abdb8ae551", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "299bcebf586a03b3ae50d5ef66ac705e73906e116a2e7fbeb49de5abdb8ae551", kill_on_drop: false }` [INFO] [stdout] 299bcebf586a03b3ae50d5ef66ac705e73906e116a2e7fbeb49de5abdb8ae551 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1d39132fe466563a376ed57e6b11b0c6c123575cd475e7c15fe7e636134190ab [INFO] running `Command { std: "docker" "start" "-a" "1d39132fe466563a376ed57e6b11b0c6c123575cd475e7c15fe7e636134190ab", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.106 [INFO] [stderr] Checking ppv-lite86 v0.2.15 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking bit-set v0.5.2 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking quick-error v2.0.1 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking nom v7.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: `feature = "cargo-clippy"` was replaced by `clippy` [INFO] [stdout] --> src/lib.rs:375:13 [INFO] [stdout] | [INFO] [stdout] 375 | #![cfg_attr(feature = "cargo-clippy", allow(clippy::doc_markdown))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `clippy` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_clippy_cfg_attr [INFO] [stdout] = note: `#[warn(clippy::deprecated_clippy_cfg_attr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/lib.rs:375:13 [INFO] [stdout] | [INFO] [stdout] 375 | #![cfg_attr(feature = "cargo-clippy", allow(clippy::doc_markdown))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `alloc`, `default`, `docsrs`, and `std` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/lib.rs:379:12 [INFO] [stdout] | [INFO] [stdout] 379 | #[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/lib.rs:391:12 [INFO] [stdout] | [INFO] [stdout] 391 | #[cfg_attr(nightly, allow(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/lib.rs:418:14 [INFO] [stdout] | [INFO] [stdout] 418 | #[cfg_attr(nightly, allow(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/internal.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | #[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/internal.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | #[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/internal.rs:340:12 [INFO] [stdout] | [INFO] [stdout] 340 | #[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/internal.rs:357:12 [INFO] [stdout] | [INFO] [stdout] 357 | #[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/internal.rs:374:12 [INFO] [stdout] | [INFO] [stdout] 374 | #[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/internal.rs:392:12 [INFO] [stdout] | [INFO] [stdout] 392 | #[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/internal.rs:409:12 [INFO] [stdout] | [INFO] [stdout] 409 | #[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/internal.rs:430:12 [INFO] [stdout] | [INFO] [stdout] 430 | #[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::str::*` [INFO] [stdout] --> src/lib.rs:439:9 [INFO] [stdout] | [INFO] [stdout] 439 | pub use self::str::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/bytes/complete.rs:509:20 [INFO] [stdout] | [INFO] [stdout] 509 | pub fn escaped<'a, Input: 'a, Error, F, G, O1, O2>( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 515 | Input: Clone [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] = note: `#[warn(clippy::multiple_bound_locations)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_xorshift v0.3.0 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking tempfile v3.2.0 [INFO] [stderr] Checking rusty-fork v0.3.0 [INFO] [stderr] Checking proptest v1.0.0 [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/combinator/mod.rs:730:6 [INFO] [stdout] | [INFO] [stdout] 730 | impl<'a, Input, Output, Error, F> core::iter::Iterator for &'a mut ParserIterator [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 730 - impl<'a, Input, Output, Error, F> core::iter::Iterator for &'a mut ParserIterator [INFO] [stdout] 730 + impl core::iter::Iterator for &mut ParserIterator [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/internal.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | /// for the parser to decide, and you should gather more data before parsing again. [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] 29 | /// for the parser to decide, and you should gather more data before parsing again. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/internal.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | /// Once the parser returns either `Ok(_)`, `Err(Err::Error(_))` or `Err(Err::Failure(_))`, [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] 30 | /// Once the parser returns either `Ok(_)`, `Err(Err::Error(_))` or `Err(Err::Failure(_))`, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/internal.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | /// you can get out of the parsing loop and call `finish()` on the parser's result [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] 31 | /// you can get out of the parsing loop and call `finish()` on the parser's result [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/internal.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | /// can contain how many additional bytes are necessary. If you are sure your parser [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] 86 | /// can contain how many additional bytes are necessary. If you are sure your parser [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/internal.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | /// is working on full data, you can wrap your parser with the `complete` combinator [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] 87 | /// is working on full data, you can wrap your parser with the `complete` combinator [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/internal.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | /// to transform that case in `Error` [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] 88 | /// to transform that case in `Error` [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/internal.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | /// when testing different branches of an `alt` combinator) [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] 90 | /// when testing different branches of an `alt` combinator) [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/internal.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | /// to decide on the next parser to apply, and that parser fails, you know there's no need [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] 92 | /// to decide on the next parser to apply, and that parser fails, you know there's no need [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/internal.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | /// to try other parsers, you were already in the right branch, so the data is invalid [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] 93 | /// to try other parsers, you were already in the right branch, so the data is invalid [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let .. else` expression looks like `matches!` macro [INFO] [stdout] --> src/internal.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | / if let Err::Incomplete(_) = self { [INFO] [stdout] 112 | | true [INFO] [stdout] 113 | | } else { [INFO] [stdout] 114 | | false [INFO] [stdout] 115 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro [INFO] [stdout] = note: `#[warn(clippy::match_like_matches_macro)]` on by default [INFO] [stdout] help: use `matches!` directly [INFO] [stdout] | [INFO] [stdout] 111 - if let Err::Incomplete(_) = self { [INFO] [stdout] 112 - true [INFO] [stdout] 113 - } else { [INFO] [stdout] 114 - false [INFO] [stdout] 115 - } [INFO] [stdout] 111 + matches!(self, Err::Incomplete(_)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the impl [INFO] [stdout] --> src/internal.rs:320:6 [INFO] [stdout] | [INFO] [stdout] 320 | impl<'a, I, O, E, F> Parser for F [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the impl [INFO] [stdout] --> src/internal.rs:347:6 [INFO] [stdout] | [INFO] [stdout] 347 | impl<'a, I, O1, O2, E, F: Parser, G: Fn(O1) -> O2> Parser for Map { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the impl [INFO] [stdout] --> src/internal.rs:364:6 [INFO] [stdout] | [INFO] [stdout] 364 | impl<'a, I, O1, O2, E, F: Parser, G: Fn(O1) -> H, H: Parser> Parser [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the impl [INFO] [stdout] --> src/internal.rs:381:6 [INFO] [stdout] | [INFO] [stdout] 381 | impl<'a, I, O1, O2, E, F: Parser, G: Parser> Parser [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the impl [INFO] [stdout] --> src/internal.rs:398:6 [INFO] [stdout] | [INFO] [stdout] 398 | impl<'a, I, O1, O2, E, F: Parser, G: Parser> Parser [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the impl [INFO] [stdout] --> src/internal.rs:415:6 [INFO] [stdout] | [INFO] [stdout] 415 | impl<'a, I: Clone, O, E: crate::error::ParseError, F: Parser, G: Parser> [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the impl [INFO] [stdout] --> src/internal.rs:440:5 [INFO] [stdout] | [INFO] [stdout] 440 | 'a, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/multi/mod.rs:663:5 [INFO] [stdout] | [INFO] [stdout] 663 | /// the current accumulator. [INFO] [stdout] | ^^^^^^ help: try using ` ` (2 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] = note: `#[warn(clippy::doc_overindented_list_items)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/multi/mod.rs:738:5 [INFO] [stdout] | [INFO] [stdout] 738 | /// the current accumulator. [INFO] [stdout] | ^^^^^^ help: try using ` ` (2 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/multi/mod.rs:824:5 [INFO] [stdout] | [INFO] [stdout] 824 | /// the current accumulator. [INFO] [stdout] | ^^^^^^ help: try using ` ` (2 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | impl<'a, T> InputLength for &'a [T] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 24 - impl<'a, T> InputLength for &'a [T] { [INFO] [stdout] 24 + impl InputLength for &[T] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:31:6 [INFO] [stdout] | [INFO] [stdout] 31 | impl<'a> InputLength for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 31 - impl<'a> InputLength for &'a str { [INFO] [stdout] 31 + impl InputLength for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:38:6 [INFO] [stdout] | [INFO] [stdout] 38 | impl<'a> InputLength for (&'a [u8], usize) { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 38 - impl<'a> InputLength for (&'a [u8], usize) { [INFO] [stdout] 38 + impl InputLength for (&[u8], usize) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:62:6 [INFO] [stdout] | [INFO] [stdout] 62 | impl<'a> Offset for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 62 - impl<'a> Offset for &'a [u8] { [INFO] [stdout] 62 + impl Offset for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:80:6 [INFO] [stdout] | [INFO] [stdout] 80 | impl<'a> Offset for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 80 - impl<'a> Offset for &'a str { [INFO] [stdout] 80 + impl Offset for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:95:6 [INFO] [stdout] | [INFO] [stdout] 95 | impl<'a> AsBytes for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 95 - impl<'a> AsBytes for &'a str { [INFO] [stdout] 95 + impl AsBytes for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:109:6 [INFO] [stdout] | [INFO] [stdout] 109 | impl<'a> AsBytes for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 109 - impl<'a> AsBytes for &'a [u8] { [INFO] [stdout] 109 + impl AsBytes for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/traits.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | *self [INFO] [stdout] | ^^^^^ help: try: `self` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] = note: `#[warn(clippy::explicit_auto_deref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AsChar` has a `len` method but no (possibly inherited) `is_empty` method [INFO] [stdout] --> src/traits.rs:151:1 [INFO] [stdout] | [INFO] [stdout] 151 | / pub trait AsChar { [INFO] [stdout] 152 | | /// makes a char from self [INFO] [stdout] 153 | | fn as_char(self) -> char; [INFO] [stdout] ... | [INFO] [stdout] 171 | | fn len(self) -> usize; [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty [INFO] [stdout] = note: `#[warn(clippy::len_without_is_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `as_*` usually take `self` by reference or `self` by mutable reference [INFO] [stdout] --> src/traits.rs:153:14 [INFO] [stdout] | [INFO] [stdout] 153 | fn as_char(self) -> char; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] = note: `#[warn(clippy::wrong_self_convention)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `is_*` usually take `self` by mutable reference or `self` by reference or no `self` [INFO] [stdout] --> src/traits.rs:159:15 [INFO] [stdout] | [INFO] [stdout] 159 | fn is_alpha(self) -> bool; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `is_*` usually take `self` by mutable reference or `self` by reference or no `self` [INFO] [stdout] --> src/traits.rs:163:18 [INFO] [stdout] | [INFO] [stdout] 163 | fn is_alphanum(self) -> bool; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `is_*` usually take `self` by mutable reference or `self` by reference or no `self` [INFO] [stdout] --> src/traits.rs:165:19 [INFO] [stdout] | [INFO] [stdout] 165 | fn is_dec_digit(self) -> bool; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `is_*` usually take `self` by mutable reference or `self` by reference or no `self` [INFO] [stdout] --> src/traits.rs:167:19 [INFO] [stdout] | [INFO] [stdout] 167 | fn is_hex_digit(self) -> bool; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `is_*` usually take `self` by mutable reference or `self` by reference or no `self` [INFO] [stdout] --> src/traits.rs:169:19 [INFO] [stdout] | [INFO] [stdout] 169 | fn is_oct_digit(self) -> bool; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/traits.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 181 | (self >= 0x41 && self <= 0x5A) || (self >= 0x61 && self <= 0x7A) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x41..=0x5A).contains(&self)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] = note: `#[warn(clippy::manual_range_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/traits.rs:181:39 [INFO] [stdout] | [INFO] [stdout] 181 | (self >= 0x41 && self <= 0x5A) || (self >= 0x61 && self <= 0x7A) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x61..=0x7A).contains(&self)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/traits.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | self >= 0x30 && self <= 0x39 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x30..=0x39).contains(&self)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/traits.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 193 | (self >= 0x30 && self <= 0x39) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x30..=0x39).contains(&self)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/traits.rs:194:10 [INFO] [stdout] | [INFO] [stdout] 194 | || (self >= 0x41 && self <= 0x46) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x41..=0x46).contains(&self)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/traits.rs:195:10 [INFO] [stdout] | [INFO] [stdout] 195 | || (self >= 0x61 && self <= 0x66) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x61..=0x66).contains(&self)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/traits.rs:199:5 [INFO] [stdout] | [INFO] [stdout] 199 | self >= 0x30 && self <= 0x37 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x30..=0x37).contains(&self)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:206:6 [INFO] [stdout] | [INFO] [stdout] 206 | impl<'a> AsChar for &'a u8 { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 206 - impl<'a> AsChar for &'a u8 { [INFO] [stdout] 206 + impl AsChar for &u8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:270:6 [INFO] [stdout] | [INFO] [stdout] 270 | impl<'a> AsChar for &'a char { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 270 - impl<'a> AsChar for &'a char { [INFO] [stdout] 270 + impl AsChar for &char { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:365:6 [INFO] [stdout] | [INFO] [stdout] 365 | impl<'a> InputTake for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 365 - impl<'a> InputTake for &'a [u8] { [INFO] [stdout] 365 + impl InputTake for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:416:6 [INFO] [stdout] | [INFO] [stdout] 416 | impl<'a> InputTake for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 416 - impl<'a> InputTake for &'a str { [INFO] [stdout] 416 + impl InputTake for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:562:6 [INFO] [stdout] | [INFO] [stdout] 562 | impl<'a> InputTakeAtPosition for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 562 - impl<'a> InputTakeAtPosition for &'a [u8] { [INFO] [stdout] 562 + impl InputTakeAtPosition for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:625:6 [INFO] [stdout] | [INFO] [stdout] 625 | impl<'a> InputTakeAtPosition for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 625 - impl<'a> InputTakeAtPosition for &'a str { [INFO] [stdout] 625 + impl InputTakeAtPosition for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:737:6 [INFO] [stdout] | [INFO] [stdout] 737 | impl<'a, 'b> Compare<&'b [u8]> for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 737 - impl<'a, 'b> Compare<&'b [u8]> for &'a [u8] { [INFO] [stdout] 737 + impl<'b> Compare<&'b [u8]> for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:826:6 [INFO] [stdout] | [INFO] [stdout] 826 | impl<'a, 'b> Compare<&'b str> for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 826 - impl<'a, 'b> Compare<&'b str> for &'a [u8] { [INFO] [stdout] 826 + impl<'b> Compare<&'b str> for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:837:6 [INFO] [stdout] | [INFO] [stdout] 837 | impl<'a, 'b> Compare<&'b str> for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 837 - impl<'a, 'b> Compare<&'b str> for &'a str { [INFO] [stdout] 837 + impl<'b> Compare<&'b str> for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:864:6 [INFO] [stdout] | [INFO] [stdout] 864 | impl<'a, 'b> Compare<&'b [u8]> for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 864 - impl<'a, 'b> Compare<&'b [u8]> for &'a str { [INFO] [stdout] 864 + impl<'b> Compare<&'b [u8]> for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:881:6 [INFO] [stdout] | [INFO] [stdout] 881 | impl<'a> FindToken for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 881 - impl<'a> FindToken for &'a [u8] { [INFO] [stdout] 881 + impl FindToken for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:887:6 [INFO] [stdout] | [INFO] [stdout] 887 | impl<'a> FindToken for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 887 - impl<'a> FindToken for &'a str { [INFO] [stdout] 887 + impl FindToken for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a, 'b [INFO] [stdout] --> src/traits.rs:893:6 [INFO] [stdout] | [INFO] [stdout] 893 | impl<'a, 'b> FindToken<&'a u8> for &'b [u8] { [INFO] [stdout] | ^^ ^^ ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 893 - impl<'a, 'b> FindToken<&'a u8> for &'b [u8] { [INFO] [stdout] 893 + impl FindToken<&u8> for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a, 'b [INFO] [stdout] --> src/traits.rs:899:6 [INFO] [stdout] | [INFO] [stdout] 899 | impl<'a, 'b> FindToken<&'a u8> for &'b str { [INFO] [stdout] | ^^ ^^ ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 899 - impl<'a, 'b> FindToken<&'a u8> for &'b str { [INFO] [stdout] 899 + impl FindToken<&u8> for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:905:6 [INFO] [stdout] | [INFO] [stdout] 905 | impl<'a> FindToken for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 905 - impl<'a> FindToken for &'a [u8] { [INFO] [stdout] 905 + impl FindToken for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `contains()` instead of `iter().any()` is more efficient [INFO] [stdout] --> src/traits.rs:907:5 [INFO] [stdout] | [INFO] [stdout] 907 | self.iter().any(|i| *i == token as u8) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.contains(&(token as u8))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_contains [INFO] [stdout] = note: `#[warn(clippy::manual_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:911:6 [INFO] [stdout] | [INFO] [stdout] 911 | impl<'a> FindToken for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 911 - impl<'a> FindToken for &'a str { [INFO] [stdout] 911 + impl FindToken for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:917:6 [INFO] [stdout] | [INFO] [stdout] 917 | impl<'a> FindToken for &'a [char] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 917 - impl<'a> FindToken for &'a [char] { [INFO] [stdout] 917 + impl FindToken for &[char] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `contains()` instead of `iter().any()` is more efficient [INFO] [stdout] --> src/traits.rs:919:5 [INFO] [stdout] | [INFO] [stdout] 919 | self.iter().any(|i| *i == token) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.contains(&token)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a, 'b [INFO] [stdout] --> src/traits.rs:923:6 [INFO] [stdout] | [INFO] [stdout] 923 | impl<'a, 'b> FindToken<&'a char> for &'b [char] { [INFO] [stdout] | ^^ ^^ ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 923 - impl<'a, 'b> FindToken<&'a char> for &'b [char] { [INFO] [stdout] 923 + impl FindToken<&char> for &[char] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:935:6 [INFO] [stdout] | [INFO] [stdout] 935 | impl<'a, 'b> FindSubstring<&'b [u8]> for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 935 - impl<'a, 'b> FindSubstring<&'b [u8]> for &'a [u8] { [INFO] [stdout] 935 + impl<'b> FindSubstring<&'b [u8]> for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:969:6 [INFO] [stdout] | [INFO] [stdout] 969 | impl<'a, 'b> FindSubstring<&'b str> for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 969 - impl<'a, 'b> FindSubstring<&'b str> for &'a [u8] { [INFO] [stdout] 969 + impl<'b> FindSubstring<&'b str> for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:975:6 [INFO] [stdout] | [INFO] [stdout] 975 | impl<'a, 'b> FindSubstring<&'b str> for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 975 - impl<'a, 'b> FindSubstring<&'b str> for &'a str { [INFO] [stdout] 975 + impl<'b> FindSubstring<&'b str> for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:989:6 [INFO] [stdout] | [INFO] [stdout] 989 | impl<'a, R: FromStr> ParseTo for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 989 - impl<'a, R: FromStr> ParseTo for &'a [u8] { [INFO] [stdout] 989 + impl ParseTo for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:995:6 [INFO] [stdout] | [INFO] [stdout] 995 | impl<'a, R: FromStr> ParseTo for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 995 - impl<'a, R: FromStr> ParseTo for &'a str { [INFO] [stdout] 995 + impl ParseTo for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/traits.rs:1388:12 [INFO] [stdout] | [INFO] [stdout] 1388 | if (byte >= 32 && byte <= 126) || byte >= 128 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(32..=126).contains(&byte)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u8` -> `u8`) [INFO] [stdout] --> src/bits/complete.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | ((byte << offset) as u8 >> offset).into() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `(byte << offset)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`usize` -> `usize`) [INFO] [stdout] --> src/bits/streaming.rs:25:41 [INFO] [stdout] | [INFO] [stdout] 25 | Err(Err::Incomplete(Needed::new(count as usize))) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `count` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u8` -> `u8`) [INFO] [stdout] --> src/bits/streaming.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | ((byte << offset) as u8 >> offset).into() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `(byte << offset)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/bytes/complete.rs:337:48 [INFO] [stdout] | [INFO] [stdout] 337 | move |i: Input| i.split_at_position_complete(|c| cond(c)) [INFO] [stdout] | ^^^^^^^^^^^ help: replace the closure with the function itself: `&cond` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/bytes/complete.rs:370:35 [INFO] [stdout] | [INFO] [stdout] 370 | i.split_at_position1_complete(|c| cond(c), e) [INFO] [stdout] | ^^^^^^^^^^^ help: replace the closure with the function itself: `&cond` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/bytes/streaming.rs:350:39 [INFO] [stdout] | [INFO] [stdout] 350 | move |i: Input| i.split_at_position(|c| cond(c)) [INFO] [stdout] | ^^^^^^^^^^^ help: replace the closure with the function itself: `&cond` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/bytes/streaming.rs:384:26 [INFO] [stdout] | [INFO] [stdout] 384 | i.split_at_position1(|c| cond(c), e) [INFO] [stdout] | ^^^^^^^^^^^ help: replace the closure with the function itself: `&cond` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/character/mod.rs:22:3 [INFO] [stdout] | [INFO] [stdout] 22 | (chr >= 0x41 && chr <= 0x5A) || (chr >= 0x61 && chr <= 0x7A) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x41..=0x5A).contains(&chr)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/character/mod.rs:22:35 [INFO] [stdout] | [INFO] [stdout] 22 | (chr >= 0x41 && chr <= 0x5A) || (chr >= 0x61 && chr <= 0x7A) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x61..=0x7A).contains(&chr)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/character/mod.rs:36:3 [INFO] [stdout] | [INFO] [stdout] 36 | chr >= 0x30 && chr <= 0x39 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x30..=0x39).contains(&chr)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/character/mod.rs:52:3 [INFO] [stdout] | [INFO] [stdout] 52 | (chr >= 0x30 && chr <= 0x39) || (chr >= 0x41 && chr <= 0x46) || (chr >= 0x61 && chr <= 0x66) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x30..=0x39).contains(&chr)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/character/mod.rs:52:35 [INFO] [stdout] | [INFO] [stdout] 52 | (chr >= 0x30 && chr <= 0x39) || (chr >= 0x41 && chr <= 0x46) || (chr >= 0x61 && chr <= 0x66) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x41..=0x46).contains(&chr)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/character/mod.rs:52:67 [INFO] [stdout] | [INFO] [stdout] 52 | (chr >= 0x30 && chr <= 0x39) || (chr >= 0x41 && chr <= 0x46) || (chr >= 0x61 && chr <= 0x66) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x61..=0x66).contains(&chr)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/character/mod.rs:67:3 [INFO] [stdout] | [INFO] [stdout] 67 | chr >= 0x30 && chr <= 0x37 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x30..=0x37).contains(&chr)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `feature = "cargo-clippy"` was replaced by `clippy` [INFO] [stdout] --> tests/overflow.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `clippy` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_clippy_cfg_attr [INFO] [stdout] = note: `#[warn(clippy::deprecated_clippy_cfg_attr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> tests/overflow.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `alloc`, `default`, `docsrs`, and `std` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> tests/overflow.rs:76:25 [INFO] [stdout] | [INFO] [stdout] 76 | fn multi(i: &[u8]) -> IResult<&[u8], (Vec<&[u8]>, &[u8])> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] = note: `#[warn(clippy::type_complexity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `feature = "cargo-clippy"` was replaced by `clippy` [INFO] [stdout] --> tests/issues.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | #![cfg_attr(feature = "cargo-clippy", allow(redundant_closure))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `clippy` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_clippy_cfg_attr [INFO] [stdout] = note: `#[warn(clippy::deprecated_clippy_cfg_attr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> tests/ini_str.rs:57:38 [INFO] [stdout] | [INFO] [stdout] 57 | fn categories_aggregator(i: &str) -> IResult<&str, Vec<(&str, HashMap<&str, &str>)>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] = note: `#[warn(clippy::type_complexity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> tests/issues.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | #![cfg_attr(feature = "cargo-clippy", allow(redundant_closure))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `alloc`, `default`, `docsrs`, and `std` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `feature = "cargo-clippy"` was replaced by `clippy` [INFO] [stdout] --> src/lib.rs:375:13 [INFO] [stdout] | [INFO] [stdout] 375 | #![cfg_attr(feature = "cargo-clippy", allow(clippy::doc_markdown))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `clippy` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_clippy_cfg_attr [INFO] [stdout] = note: `#[warn(clippy::deprecated_clippy_cfg_attr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `char::is_digit` with literal radix of 16 [INFO] [stdout] --> tests/css.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 18 | c.is_digit(16) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `c.is_ascii_hexdigit()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#is_digit_ascii_radix [INFO] [stdout] = note: `#[warn(clippy::is_digit_ascii_radix)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `cfg_attr` is deprecated for rustfmt and got replaced by tool attributes [INFO] [stdout] --> tests/mp4.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | #[cfg_attr(rustfmt, rustfmt_skip)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `#[rustfmt::skip]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_cfg_attr [INFO] [stdout] = note: `#[warn(clippy::deprecated_cfg_attr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `cfg_attr` is deprecated for rustfmt and got replaced by tool attributes [INFO] [stdout] --> tests/mp4.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[cfg_attr(rustfmt, rustfmt_skip)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `#[rustfmt::skip]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_cfg_attr [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `cfg_attr` is deprecated for rustfmt and got replaced by tool attributes [INFO] [stdout] --> tests/mp4.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | #[cfg_attr(rustfmt, rustfmt_skip)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `#[rustfmt::skip]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_cfg_attr [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `cfg_attr` is deprecated for rustfmt and got replaced by tool attributes [INFO] [stdout] --> tests/mp4.rs:97:1 [INFO] [stdout] | [INFO] [stdout] 97 | #[cfg_attr(rustfmt, rustfmt_skip)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `#[rustfmt::skip]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_cfg_attr [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `cfg_attr` is deprecated for rustfmt and got replaced by tool attributes [INFO] [stdout] --> tests/mp4.rs:149:1 [INFO] [stdout] | [INFO] [stdout] 149 | #[cfg_attr(rustfmt, rustfmt_skip)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `#[rustfmt::skip]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_cfg_attr [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'b [INFO] [stdout] --> tests/issues.rs:123:15 [INFO] [stdout] | [INFO] [stdout] 123 | fn list<'a, 'b>( [INFO] [stdout] | ^^ [INFO] [stdout] 124 | input: Input<'a>, [INFO] [stdout] 125 | _cs: &'b f64, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 123 ~ fn list<'a>( [INFO] [stdout] 124 | input: Input<'a>, [INFO] [stdout] 125 ~ _cs: &f64, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> tests/issues.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | ) -> Result<(Input<'a>, Vec), Err>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] = note: `#[warn(clippy::type_complexity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/lib.rs:375:13 [INFO] [stdout] | [INFO] [stdout] 375 | #![cfg_attr(feature = "cargo-clippy", allow(clippy::doc_markdown))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `alloc`, `default`, `docsrs`, and `std` [INFO] [stdout] = help: consider adding `cargo-clippy` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/lib.rs:379:12 [INFO] [stdout] | [INFO] [stdout] 379 | #[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/lib.rs:391:12 [INFO] [stdout] | [INFO] [stdout] 391 | #[cfg_attr(nightly, allow(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/lib.rs:418:14 [INFO] [stdout] | [INFO] [stdout] 418 | #[cfg_attr(nightly, allow(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/internal.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | #[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/internal.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | #[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/internal.rs:340:12 [INFO] [stdout] | [INFO] [stdout] 340 | #[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/internal.rs:357:12 [INFO] [stdout] | [INFO] [stdout] 357 | #[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/internal.rs:374:12 [INFO] [stdout] | [INFO] [stdout] 374 | #[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/internal.rs:392:12 [INFO] [stdout] | [INFO] [stdout] 392 | #[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/internal.rs:409:12 [INFO] [stdout] | [INFO] [stdout] 409 | #[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly` [INFO] [stdout] --> src/internal.rs:430:12 [INFO] [stdout] | [INFO] [stdout] 430 | #[cfg_attr(nightly, warn(rustdoc::missing_doc_code_examples))] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::str::*` [INFO] [stdout] --> src/lib.rs:439:9 [INFO] [stdout] | [INFO] [stdout] 439 | pub use self::str::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `crate` references the macro call's crate [INFO] [stdout] --> src/internal.rs:468:18 [INFO] [stdout] | [INFO] [stdout] 468 | assert_eq!(crate::lib::std::mem::size_of::<$t>(), $sz); [INFO] [stdout] | ^^^^^ help: to reference the macro definition's crate, use: `$crate` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#crate_in_macro_def [INFO] [stdout] = note: `#[warn(clippy::crate_in_macro_def)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: bound is defined in more than one place [INFO] [stdout] --> src/bytes/complete.rs:509:20 [INFO] [stdout] | [INFO] [stdout] 509 | pub fn escaped<'a, Input: 'a, Error, F, G, O1, O2>( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 515 | Input: Clone [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations [INFO] [stdout] = note: `#[warn(clippy::multiple_bound_locations)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NilError` is never constructed [INFO] [stdout] --> src/multi/tests.rs:305:12 [INFO] [stdout] | [INFO] [stdout] 305 | pub struct NilError; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `B` is never constructed [INFO] [stdout] --> src/sequence/tests.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct B { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `C` is never constructed [INFO] [stdout] --> src/sequence/tests.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | struct C { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/branch/tests.rs:117:24 [INFO] [stdout] | [INFO] [stdout] 117 | fn perm(i: &[u8]) -> IResult<&[u8], (&[u8], &[u8], &[u8])> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] = note: `#[warn(clippy::type_complexity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/combinator/tests.rs:186:52 [INFO] [stdout] | [INFO] [stdout] 186 | assert_eq!(parser1(&b"abcd"[..]), Ok((&b"d"[..], (&b"abc").to_vec()))); [INFO] [stdout] | ^^^^^^^^^ help: change this to: `b"abc"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/combinator/mod.rs:730:6 [INFO] [stdout] | [INFO] [stdout] 730 | impl<'a, Input, Output, Error, F> core::iter::Iterator for &'a mut ParserIterator [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 730 - impl<'a, Input, Output, Error, F> core::iter::Iterator for &'a mut ParserIterator [INFO] [stdout] 730 + impl core::iter::Iterator for &mut ParserIterator [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/internal.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | /// for the parser to decide, and you should gather more data before parsing again. [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] 29 | /// for the parser to decide, and you should gather more data before parsing again. [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/internal.rs:30:7 [INFO] [stdout] | [INFO] [stdout] 30 | /// Once the parser returns either `Ok(_)`, `Err(Err::Error(_))` or `Err(Err::Failure(_))`, [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] 30 | /// Once the parser returns either `Ok(_)`, `Err(Err::Error(_))` or `Err(Err::Failure(_))`, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/internal.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | /// you can get out of the parsing loop and call `finish()` on the parser's result [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] 31 | /// you can get out of the parsing loop and call `finish()` on the parser's result [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/internal.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | /// can contain how many additional bytes are necessary. If you are sure your parser [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] 86 | /// can contain how many additional bytes are necessary. If you are sure your parser [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/internal.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | /// is working on full data, you can wrap your parser with the `complete` combinator [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] 87 | /// is working on full data, you can wrap your parser with the `complete` combinator [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/internal.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | /// to transform that case in `Error` [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] 88 | /// to transform that case in `Error` [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/internal.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | /// when testing different branches of an `alt` combinator) [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] 90 | /// when testing different branches of an `alt` combinator) [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/internal.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | /// to decide on the next parser to apply, and that parser fails, you know there's no need [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] 92 | /// to decide on the next parser to apply, and that parser fails, you know there's no need [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item without indentation [INFO] [stdout] --> src/internal.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | /// to try other parsers, you were already in the right branch, so the data is invalid [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] 93 | /// to try other parsers, you were already in the right branch, so the data is invalid [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let .. else` expression looks like `matches!` macro [INFO] [stdout] --> src/internal.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | / if let Err::Incomplete(_) = self { [INFO] [stdout] 112 | | true [INFO] [stdout] 113 | | } else { [INFO] [stdout] 114 | | false [INFO] [stdout] 115 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro [INFO] [stdout] = note: `#[warn(clippy::match_like_matches_macro)]` on by default [INFO] [stdout] help: use `matches!` directly [INFO] [stdout] | [INFO] [stdout] 111 - if let Err::Incomplete(_) = self { [INFO] [stdout] 112 - true [INFO] [stdout] 113 - } else { [INFO] [stdout] 114 - false [INFO] [stdout] 115 - } [INFO] [stdout] 111 + matches!(self, Err::Incomplete(_)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the impl [INFO] [stdout] --> src/internal.rs:320:6 [INFO] [stdout] | [INFO] [stdout] 320 | impl<'a, I, O, E, F> Parser for F [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the impl [INFO] [stdout] --> src/internal.rs:347:6 [INFO] [stdout] | [INFO] [stdout] 347 | impl<'a, I, O1, O2, E, F: Parser, G: Fn(O1) -> O2> Parser for Map { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the impl [INFO] [stdout] --> src/internal.rs:364:6 [INFO] [stdout] | [INFO] [stdout] 364 | impl<'a, I, O1, O2, E, F: Parser, G: Fn(O1) -> H, H: Parser> Parser [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the impl [INFO] [stdout] --> src/internal.rs:381:6 [INFO] [stdout] | [INFO] [stdout] 381 | impl<'a, I, O1, O2, E, F: Parser, G: Parser> Parser [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the impl [INFO] [stdout] --> src/internal.rs:398:6 [INFO] [stdout] | [INFO] [stdout] 398 | impl<'a, I, O1, O2, E, F: Parser, G: Parser> Parser [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the impl [INFO] [stdout] --> src/internal.rs:415:6 [INFO] [stdout] | [INFO] [stdout] 415 | impl<'a, I: Clone, O, E: crate::error::ParseError, F: Parser, G: Parser> [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the impl [INFO] [stdout] --> src/internal.rs:440:5 [INFO] [stdout] | [INFO] [stdout] 440 | 'a, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/multi/tests.rs:158:25 [INFO] [stdout] | [INFO] [stdout] 158 | fn multi(i: &[u8]) -> IResult<&[u8], (Vec<&[u8]>, &[u8])> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/multi/mod.rs:663:5 [INFO] [stdout] | [INFO] [stdout] 663 | /// the current accumulator. [INFO] [stdout] | ^^^^^^ help: try using ` ` (2 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] = note: `#[warn(clippy::doc_overindented_list_items)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/multi/mod.rs:738:5 [INFO] [stdout] | [INFO] [stdout] 738 | /// the current accumulator. [INFO] [stdout] | ^^^^^^ help: try using ` ` (2 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: doc list item overindented [INFO] [stdout] --> src/multi/mod.rs:824:5 [INFO] [stdout] | [INFO] [stdout] 824 | /// the current accumulator. [INFO] [stdout] | ^^^^^^ help: try using ` ` (2 spaces) [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/sequence/tests.rs:260:27 [INFO] [stdout] | [INFO] [stdout] 260 | fn tuple_3(i: &[u8]) -> IResult<&[u8], (u16, &[u8], &[u8])> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:24:6 [INFO] [stdout] | [INFO] [stdout] 24 | impl<'a, T> InputLength for &'a [T] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 24 - impl<'a, T> InputLength for &'a [T] { [INFO] [stdout] 24 + impl InputLength for &[T] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:31:6 [INFO] [stdout] | [INFO] [stdout] 31 | impl<'a> InputLength for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 31 - impl<'a> InputLength for &'a str { [INFO] [stdout] 31 + impl InputLength for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:38:6 [INFO] [stdout] | [INFO] [stdout] 38 | impl<'a> InputLength for (&'a [u8], usize) { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 38 - impl<'a> InputLength for (&'a [u8], usize) { [INFO] [stdout] 38 + impl InputLength for (&[u8], usize) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:62:6 [INFO] [stdout] | [INFO] [stdout] 62 | impl<'a> Offset for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 62 - impl<'a> Offset for &'a [u8] { [INFO] [stdout] 62 + impl Offset for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:80:6 [INFO] [stdout] | [INFO] [stdout] 80 | impl<'a> Offset for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 80 - impl<'a> Offset for &'a str { [INFO] [stdout] 80 + impl Offset for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:95:6 [INFO] [stdout] | [INFO] [stdout] 95 | impl<'a> AsBytes for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 95 - impl<'a> AsBytes for &'a str { [INFO] [stdout] 95 + impl AsBytes for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:109:6 [INFO] [stdout] | [INFO] [stdout] 109 | impl<'a> AsBytes for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 109 - impl<'a> AsBytes for &'a [u8] { [INFO] [stdout] 109 + impl AsBytes for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: deref which would be done by auto-deref [INFO] [stdout] --> src/traits.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 112 | *self [INFO] [stdout] | ^^^^^ help: try: `self` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref [INFO] [stdout] = note: `#[warn(clippy::explicit_auto_deref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AsChar` has a `len` method but no (possibly inherited) `is_empty` method [INFO] [stdout] --> src/traits.rs:151:1 [INFO] [stdout] | [INFO] [stdout] 151 | / pub trait AsChar { [INFO] [stdout] 152 | | /// makes a char from self [INFO] [stdout] 153 | | fn as_char(self) -> char; [INFO] [stdout] ... | [INFO] [stdout] 171 | | fn len(self) -> usize; [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty [INFO] [stdout] = note: `#[warn(clippy::len_without_is_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `as_*` usually take `self` by reference or `self` by mutable reference [INFO] [stdout] --> src/traits.rs:153:14 [INFO] [stdout] | [INFO] [stdout] 153 | fn as_char(self) -> char; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] = note: `#[warn(clippy::wrong_self_convention)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `is_*` usually take `self` by mutable reference or `self` by reference or no `self` [INFO] [stdout] --> src/traits.rs:159:15 [INFO] [stdout] | [INFO] [stdout] 159 | fn is_alpha(self) -> bool; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `is_*` usually take `self` by mutable reference or `self` by reference or no `self` [INFO] [stdout] --> src/traits.rs:163:18 [INFO] [stdout] | [INFO] [stdout] 163 | fn is_alphanum(self) -> bool; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `is_*` usually take `self` by mutable reference or `self` by reference or no `self` [INFO] [stdout] --> src/traits.rs:165:19 [INFO] [stdout] | [INFO] [stdout] 165 | fn is_dec_digit(self) -> bool; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `is_*` usually take `self` by mutable reference or `self` by reference or no `self` [INFO] [stdout] --> src/traits.rs:167:19 [INFO] [stdout] | [INFO] [stdout] 167 | fn is_hex_digit(self) -> bool; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods called `is_*` usually take `self` by mutable reference or `self` by reference or no `self` [INFO] [stdout] --> src/traits.rs:169:19 [INFO] [stdout] | [INFO] [stdout] 169 | fn is_oct_digit(self) -> bool; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/traits.rs:181:5 [INFO] [stdout] | [INFO] [stdout] 181 | (self >= 0x41 && self <= 0x5A) || (self >= 0x61 && self <= 0x7A) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x41..=0x5A).contains(&self)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] = note: `#[warn(clippy::manual_range_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/traits.rs:181:39 [INFO] [stdout] | [INFO] [stdout] 181 | (self >= 0x41 && self <= 0x5A) || (self >= 0x61 && self <= 0x7A) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x61..=0x7A).contains(&self)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/traits.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | self >= 0x30 && self <= 0x39 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x30..=0x39).contains(&self)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/traits.rs:193:5 [INFO] [stdout] | [INFO] [stdout] 193 | (self >= 0x30 && self <= 0x39) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x30..=0x39).contains(&self)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/traits.rs:194:10 [INFO] [stdout] | [INFO] [stdout] 194 | || (self >= 0x41 && self <= 0x46) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x41..=0x46).contains(&self)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/traits.rs:195:10 [INFO] [stdout] | [INFO] [stdout] 195 | || (self >= 0x61 && self <= 0x66) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x61..=0x66).contains(&self)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/traits.rs:199:5 [INFO] [stdout] | [INFO] [stdout] 199 | self >= 0x30 && self <= 0x37 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x30..=0x37).contains(&self)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:206:6 [INFO] [stdout] | [INFO] [stdout] 206 | impl<'a> AsChar for &'a u8 { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 206 - impl<'a> AsChar for &'a u8 { [INFO] [stdout] 206 + impl AsChar for &u8 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:270:6 [INFO] [stdout] | [INFO] [stdout] 270 | impl<'a> AsChar for &'a char { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 270 - impl<'a> AsChar for &'a char { [INFO] [stdout] 270 + impl AsChar for &char { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:365:6 [INFO] [stdout] | [INFO] [stdout] 365 | impl<'a> InputTake for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 365 - impl<'a> InputTake for &'a [u8] { [INFO] [stdout] 365 + impl InputTake for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:416:6 [INFO] [stdout] | [INFO] [stdout] 416 | impl<'a> InputTake for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 416 - impl<'a> InputTake for &'a str { [INFO] [stdout] 416 + impl InputTake for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:562:6 [INFO] [stdout] | [INFO] [stdout] 562 | impl<'a> InputTakeAtPosition for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 562 - impl<'a> InputTakeAtPosition for &'a [u8] { [INFO] [stdout] 562 + impl InputTakeAtPosition for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:625:6 [INFO] [stdout] | [INFO] [stdout] 625 | impl<'a> InputTakeAtPosition for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 625 - impl<'a> InputTakeAtPosition for &'a str { [INFO] [stdout] 625 + impl InputTakeAtPosition for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:737:6 [INFO] [stdout] | [INFO] [stdout] 737 | impl<'a, 'b> Compare<&'b [u8]> for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 737 - impl<'a, 'b> Compare<&'b [u8]> for &'a [u8] { [INFO] [stdout] 737 + impl<'b> Compare<&'b [u8]> for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:826:6 [INFO] [stdout] | [INFO] [stdout] 826 | impl<'a, 'b> Compare<&'b str> for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 826 - impl<'a, 'b> Compare<&'b str> for &'a [u8] { [INFO] [stdout] 826 + impl<'b> Compare<&'b str> for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:837:6 [INFO] [stdout] | [INFO] [stdout] 837 | impl<'a, 'b> Compare<&'b str> for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 837 - impl<'a, 'b> Compare<&'b str> for &'a str { [INFO] [stdout] 837 + impl<'b> Compare<&'b str> for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:864:6 [INFO] [stdout] | [INFO] [stdout] 864 | impl<'a, 'b> Compare<&'b [u8]> for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 864 - impl<'a, 'b> Compare<&'b [u8]> for &'a str { [INFO] [stdout] 864 + impl<'b> Compare<&'b [u8]> for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:881:6 [INFO] [stdout] | [INFO] [stdout] 881 | impl<'a> FindToken for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 881 - impl<'a> FindToken for &'a [u8] { [INFO] [stdout] 881 + impl FindToken for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:887:6 [INFO] [stdout] | [INFO] [stdout] 887 | impl<'a> FindToken for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 887 - impl<'a> FindToken for &'a str { [INFO] [stdout] 887 + impl FindToken for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a, 'b [INFO] [stdout] --> src/traits.rs:893:6 [INFO] [stdout] | [INFO] [stdout] 893 | impl<'a, 'b> FindToken<&'a u8> for &'b [u8] { [INFO] [stdout] | ^^ ^^ ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 893 - impl<'a, 'b> FindToken<&'a u8> for &'b [u8] { [INFO] [stdout] 893 + impl FindToken<&u8> for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a, 'b [INFO] [stdout] --> src/traits.rs:899:6 [INFO] [stdout] | [INFO] [stdout] 899 | impl<'a, 'b> FindToken<&'a u8> for &'b str { [INFO] [stdout] | ^^ ^^ ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 899 - impl<'a, 'b> FindToken<&'a u8> for &'b str { [INFO] [stdout] 899 + impl FindToken<&u8> for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:905:6 [INFO] [stdout] | [INFO] [stdout] 905 | impl<'a> FindToken for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 905 - impl<'a> FindToken for &'a [u8] { [INFO] [stdout] 905 + impl FindToken for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `contains()` instead of `iter().any()` is more efficient [INFO] [stdout] --> src/traits.rs:907:5 [INFO] [stdout] | [INFO] [stdout] 907 | self.iter().any(|i| *i == token as u8) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.contains(&(token as u8))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_contains [INFO] [stdout] = note: `#[warn(clippy::manual_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:911:6 [INFO] [stdout] | [INFO] [stdout] 911 | impl<'a> FindToken for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 911 - impl<'a> FindToken for &'a str { [INFO] [stdout] 911 + impl FindToken for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:917:6 [INFO] [stdout] | [INFO] [stdout] 917 | impl<'a> FindToken for &'a [char] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 917 - impl<'a> FindToken for &'a [char] { [INFO] [stdout] 917 + impl FindToken for &[char] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `contains()` instead of `iter().any()` is more efficient [INFO] [stdout] --> src/traits.rs:919:5 [INFO] [stdout] | [INFO] [stdout] 919 | self.iter().any(|i| *i == token) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.contains(&token)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a, 'b [INFO] [stdout] --> src/traits.rs:923:6 [INFO] [stdout] | [INFO] [stdout] 923 | impl<'a, 'b> FindToken<&'a char> for &'b [char] { [INFO] [stdout] | ^^ ^^ ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 923 - impl<'a, 'b> FindToken<&'a char> for &'b [char] { [INFO] [stdout] 923 + impl FindToken<&char> for &[char] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:935:6 [INFO] [stdout] | [INFO] [stdout] 935 | impl<'a, 'b> FindSubstring<&'b [u8]> for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 935 - impl<'a, 'b> FindSubstring<&'b [u8]> for &'a [u8] { [INFO] [stdout] 935 + impl<'b> FindSubstring<&'b [u8]> for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:969:6 [INFO] [stdout] | [INFO] [stdout] 969 | impl<'a, 'b> FindSubstring<&'b str> for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 969 - impl<'a, 'b> FindSubstring<&'b str> for &'a [u8] { [INFO] [stdout] 969 + impl<'b> FindSubstring<&'b str> for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:975:6 [INFO] [stdout] | [INFO] [stdout] 975 | impl<'a, 'b> FindSubstring<&'b str> for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 975 - impl<'a, 'b> FindSubstring<&'b str> for &'a str { [INFO] [stdout] 975 + impl<'b> FindSubstring<&'b str> for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:989:6 [INFO] [stdout] | [INFO] [stdout] 989 | impl<'a, R: FromStr> ParseTo for &'a [u8] { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 989 - impl<'a, R: FromStr> ParseTo for &'a [u8] { [INFO] [stdout] 989 + impl ParseTo for &[u8] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/traits.rs:995:6 [INFO] [stdout] | [INFO] [stdout] 995 | impl<'a, R: FromStr> ParseTo for &'a str { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 995 - impl<'a, R: FromStr> ParseTo for &'a str { [INFO] [stdout] 995 + impl ParseTo for &str { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/traits.rs:1388:12 [INFO] [stdout] | [INFO] [stdout] 1388 | if (byte >= 32 && byte <= 126) || byte >= 128 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(32..=126).contains(&byte)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/traits.rs:1433:13 [INFO] [stdout] | [INFO] [stdout] 1433 | let a = &s[..]; [INFO] [stdout] | ^^^^^^ help: use the original value instead: `s` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] = note: `#[warn(clippy::redundant_slicing)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u8` -> `u8`) [INFO] [stdout] --> src/bits/complete.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | ((byte << offset) as u8 >> offset).into() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `(byte << offset)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`usize` -> `usize`) [INFO] [stdout] --> src/bits/streaming.rs:25:41 [INFO] [stdout] | [INFO] [stdout] 25 | Err(Err::Incomplete(Needed::new(count as usize))) [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `count` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u8` -> `u8`) [INFO] [stdout] --> src/bits/streaming.rs:39:14 [INFO] [stdout] | [INFO] [stdout] 39 | ((byte << offset) as u8 >> offset).into() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `(byte << offset)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/bytes/complete.rs:337:48 [INFO] [stdout] | [INFO] [stdout] 337 | move |i: Input| i.split_at_position_complete(|c| cond(c)) [INFO] [stdout] | ^^^^^^^^^^^ help: replace the closure with the function itself: `&cond` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] = note: `#[warn(clippy::redundant_closure)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/bytes/complete.rs:370:35 [INFO] [stdout] | [INFO] [stdout] 370 | i.split_at_position1_complete(|c| cond(c), e) [INFO] [stdout] | ^^^^^^^^^^^ help: replace the closure with the function itself: `&cond` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/bytes/complete.rs:739:14 [INFO] [stdout] | [INFO] [stdout] 739 | fn unquote<'a>(input: &'a str) -> IResult<&'a str, &'a str> { [INFO] [stdout] | ^^ ^^ ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 739 - fn unquote<'a>(input: &'a str) -> IResult<&'a str, &'a str> { [INFO] [stdout] 739 + fn unquote(input: &str) -> IResult<&str, &str> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/bytes/streaming.rs:350:39 [INFO] [stdout] | [INFO] [stdout] 350 | move |i: Input| i.split_at_position(|c| cond(c)) [INFO] [stdout] | ^^^^^^^^^^^ help: replace the closure with the function itself: `&cond` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant closure [INFO] [stdout] --> src/bytes/streaming.rs:384:26 [INFO] [stdout] | [INFO] [stdout] 384 | i.split_at_position1(|c| cond(c), e) [INFO] [stdout] | ^^^^^^^^^^^ help: replace the closure with the function itself: `&cond` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/bytes/tests.rs:615:36 [INFO] [stdout] | [INFO] [stdout] 615 | Err(Err::Error(error_position!(&"Hello"[..], ErrorKind::Tag))) [INFO] [stdout] | ^^^^^^^^^^^^ help: use the original value instead: `"Hello"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/bytes/tests.rs:619:36 [INFO] [stdout] | [INFO] [stdout] 619 | Err(Err::Error(error_position!(&"Hel"[..], ErrorKind::Tag))) [INFO] [stdout] | ^^^^^^^^^^ help: use the original value instead: `"Hel"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/character/tests.rs:57:11 [INFO] [stdout] | [INFO] [stdout] 57 | let a = &"abcd"[..]; [INFO] [stdout] | ^^^^^^^^^^^ help: use the original value instead: `"abcd"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/character/tests.rs:60:11 [INFO] [stdout] | [INFO] [stdout] 60 | let b = &"cde"[..]; [INFO] [stdout] | ^^^^^^^^^^ help: use the original value instead: `"cde"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/character/tests.rs:61:24 [INFO] [stdout] | [INFO] [stdout] 61 | assert_eq!(f(b), Ok((&"de"[..], 'c'))); [INFO] [stdout] | ^^^^^^^^^ help: use the original value instead: `"de"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/character/complete.rs:900:61 [INFO] [stdout] | [INFO] [stdout] 900 | assert_eq!(alpha1::<_, (_, ErrorKind)>(c), Ok((&c[1..], &"a"[..]))); [INFO] [stdout] | ^^^^^^^^ help: use the original value instead: `"a"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/character/complete.rs:901:59 [INFO] [stdout] | [INFO] [stdout] 901 | assert_eq!(alpha1::<_, (_, ErrorKind)>(d), Ok(("é12", &"az"[..]))); [INFO] [stdout] | ^^^^^^^^^ help: use the original value instead: `"az"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/character/complete.rs:909:64 [INFO] [stdout] | [INFO] [stdout] 909 | assert_eq!(hex_digit1::<_, (_, ErrorKind)>(d), Ok(("zé12", &"a"[..]))); [INFO] [stdout] | ^^^^^^^^ help: use the original value instead: `"a"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/character/complete.rs:999:20 [INFO] [stdout] | [INFO] [stdout] 999 | Ok((&[][..], &d[..])) [INFO] [stdout] | ^^^^^^ help: use the original value instead: `d` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/character/complete.rs:1134:38 [INFO] [stdout] | [INFO] [stdout] 1134 | Err(Err::Error(error_position!(&"\r"[..], ErrorKind::CrLf))) [INFO] [stdout] | ^^^^^^^^^ help: use the original value instead: `"\r"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/character/complete.rs:1159:38 [INFO] [stdout] | [INFO] [stdout] 1159 | Err(Err::Error(error_position!(&"\r"[..], ErrorKind::CrLf))) [INFO] [stdout] | ^^^^^^^^^ help: use the original value instead: `"\r"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/character/streaming.rs:839:61 [INFO] [stdout] | [INFO] [stdout] 839 | assert_eq!(alpha1::<_, (_, ErrorKind)>(c), Ok((&c[1..], &"a"[..]))); [INFO] [stdout] | ^^^^^^^^ help: use the original value instead: `"a"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/character/streaming.rs:840:59 [INFO] [stdout] | [INFO] [stdout] 840 | assert_eq!(alpha1::<_, (_, ErrorKind)>(d), Ok(("é12", &"az"[..]))); [INFO] [stdout] | ^^^^^^^^^ help: use the original value instead: `"az"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/character/streaming.rs:860:64 [INFO] [stdout] | [INFO] [stdout] 860 | assert_eq!(hex_digit1::<_, (_, ErrorKind)>(d), Ok(("zé12", &"a"[..]))); [INFO] [stdout] | ^^^^^^^^ help: use the original value instead: `"a"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/character/mod.rs:22:3 [INFO] [stdout] | [INFO] [stdout] 22 | (chr >= 0x41 && chr <= 0x5A) || (chr >= 0x61 && chr <= 0x7A) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x41..=0x5A).contains(&chr)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/character/mod.rs:22:35 [INFO] [stdout] | [INFO] [stdout] 22 | (chr >= 0x41 && chr <= 0x5A) || (chr >= 0x61 && chr <= 0x7A) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x61..=0x7A).contains(&chr)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/character/mod.rs:36:3 [INFO] [stdout] | [INFO] [stdout] 36 | chr >= 0x30 && chr <= 0x39 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x30..=0x39).contains(&chr)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/character/mod.rs:52:3 [INFO] [stdout] | [INFO] [stdout] 52 | (chr >= 0x30 && chr <= 0x39) || (chr >= 0x41 && chr <= 0x46) || (chr >= 0x61 && chr <= 0x66) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x30..=0x39).contains(&chr)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/character/mod.rs:52:35 [INFO] [stdout] | [INFO] [stdout] 52 | (chr >= 0x30 && chr <= 0x39) || (chr >= 0x41 && chr <= 0x46) || (chr >= 0x61 && chr <= 0x66) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x41..=0x46).contains(&chr)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/character/mod.rs:52:67 [INFO] [stdout] | [INFO] [stdout] 52 | (chr >= 0x30 && chr <= 0x39) || (chr >= 0x41 && chr <= 0x46) || (chr >= 0x61 && chr <= 0x66) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x61..=0x66).contains(&chr)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual `RangeInclusive::contains` implementation [INFO] [stdout] --> src/character/mod.rs:67:3 [INFO] [stdout] | [INFO] [stdout] 67 | chr >= 0x30 && chr <= 0x37 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(0x30..=0x37).contains(&chr)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/str.rs:171:18 [INFO] [stdout] | [INFO] [stdout] 171 | assert_eq!(f(&a[..]), Err(Err::Incomplete(Needed::new(1)))); [INFO] [stdout] | ^^^^^^ help: use the original value instead: `a` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/str.rs:172:18 [INFO] [stdout] | [INFO] [stdout] 172 | assert_eq!(f(&b[..]), Err(Err::Incomplete(Needed::new(1)))); [INFO] [stdout] | ^^^^^^ help: use the original value instead: `b` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/str.rs:173:18 [INFO] [stdout] | [INFO] [stdout] 173 | assert_eq!(f(&c[..]), Ok((&d[..], &b[..]))); [INFO] [stdout] | ^^^^^^ help: use the original value instead: `c` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/str.rs:173:31 [INFO] [stdout] | [INFO] [stdout] 173 | assert_eq!(f(&c[..]), Ok((&d[..], &b[..]))); [INFO] [stdout] | ^^^^^^ help: use the original value instead: `d` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/str.rs:173:39 [INFO] [stdout] | [INFO] [stdout] 173 | assert_eq!(f(&c[..]), Ok((&d[..], &b[..]))); [INFO] [stdout] | ^^^^^^ help: use the original value instead: `b` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/str.rs:174:18 [INFO] [stdout] | [INFO] [stdout] 174 | assert_eq!(f(&d[..]), Ok((&d[..], &a[..]))); [INFO] [stdout] | ^^^^^^ help: use the original value instead: `d` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/str.rs:174:31 [INFO] [stdout] | [INFO] [stdout] 174 | assert_eq!(f(&d[..]), Ok((&d[..], &a[..]))); [INFO] [stdout] | ^^^^^^ help: use the original value instead: `d` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/str.rs:174:39 [INFO] [stdout] | [INFO] [stdout] 174 | assert_eq!(f(&d[..]), Ok((&d[..], &a[..]))); [INFO] [stdout] | ^^^^^^ help: use the original value instead: `a` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/str.rs:189:18 [INFO] [stdout] | [INFO] [stdout] 189 | assert_eq!(f(&a[..]), Err(Err::Incomplete(Needed::new(1)))); [INFO] [stdout] | ^^^^^^ help: use the original value instead: `a` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/str.rs:190:18 [INFO] [stdout] | [INFO] [stdout] 190 | assert_eq!(f(&b[..]), Err(Err::Incomplete(Needed::new(1)))); [INFO] [stdout] | ^^^^^^ help: use the original value instead: `b` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/str.rs:191:18 [INFO] [stdout] | [INFO] [stdout] 191 | assert_eq!(f(&c[..]), Ok((&"123"[..], &b[..]))); [INFO] [stdout] | ^^^^^^ help: use the original value instead: `c` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/str.rs:191:31 [INFO] [stdout] | [INFO] [stdout] 191 | assert_eq!(f(&c[..]), Ok((&"123"[..], &b[..]))); [INFO] [stdout] | ^^^^^^^^^^ help: use the original value instead: `"123"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/str.rs:191:43 [INFO] [stdout] | [INFO] [stdout] 191 | assert_eq!(f(&c[..]), Ok((&"123"[..], &b[..]))); [INFO] [stdout] | ^^^^^^ help: use the original value instead: `b` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/str.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | f(&d[..]), [INFO] [stdout] | ^^^^^^ help: use the original value instead: `d` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/str.rs:194:38 [INFO] [stdout] | [INFO] [stdout] 194 | Err(Err::Error(error_position!(&d[..], ErrorKind::TakeWhile1))) [INFO] [stdout] | ^^^^^^ help: use the original value instead: `d` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/str.rs:305:7 [INFO] [stdout] | [INFO] [stdout] 305 | / c == 'β' [INFO] [stdout] 306 | | || c == 'è' [INFO] [stdout] 307 | | || c == 'ƒ' [INFO] [stdout] 308 | | || c == 'ô' [INFO] [stdout] ... | [INFO] [stdout] 311 | | || c == 'Â' [INFO] [stdout] 312 | | || c == 'ß' [INFO] [stdout] | |___________________^ [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] help: try [INFO] [stdout] | [INFO] [stdout] 305 - c == 'β' [INFO] [stdout] 306 - || c == 'è' [INFO] [stdout] 307 - || c == 'ƒ' [INFO] [stdout] 308 - || c == 'ô' [INFO] [stdout] 309 - || c == 'ř' [INFO] [stdout] 310 - || c == 'è' [INFO] [stdout] 311 - || c == 'Â' [INFO] [stdout] 312 - || c == 'ß' [INFO] [stdout] 305 + !(c != 'β' && c != 'è' && c != 'ƒ' && c != 'ô' && c != 'ř' && c != 'Â' && c != 'ß') [INFO] [stdout] | [INFO] [stdout] 305 - c == 'β' [INFO] [stdout] 306 - || c == 'è' [INFO] [stdout] 307 - || c == 'ƒ' [INFO] [stdout] 308 - || c == 'ô' [INFO] [stdout] 309 - || c == 'ř' [INFO] [stdout] 310 - || c == 'è' [INFO] [stdout] 311 - || c == 'Â' [INFO] [stdout] 312 - || c == 'ß' [INFO] [stdout] 305 + c == 'β' || c == 'è' || c == 'ƒ' || c == 'ô' || c == 'ř' || c == 'Â' || c == 'ß' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/str.rs:305:7 [INFO] [stdout] | [INFO] [stdout] 305 | / c == 'β' [INFO] [stdout] 306 | | || c == 'è' [INFO] [stdout] 307 | | || c == 'ƒ' [INFO] [stdout] 308 | | || c == 'ô' [INFO] [stdout] 309 | | || c == 'ř' [INFO] [stdout] 310 | | || c == 'è' [INFO] [stdout] 311 | | || c == 'Â' [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 305 - c == 'β' [INFO] [stdout] 306 - || c == 'è' [INFO] [stdout] 307 - || c == 'ƒ' [INFO] [stdout] 308 - || c == 'ô' [INFO] [stdout] 309 - || c == 'ř' [INFO] [stdout] 310 - || c == 'è' [INFO] [stdout] 311 - || c == 'Â' [INFO] [stdout] 305 + !(c != 'β' && c != 'è' && c != 'ƒ' && c != 'ô' && c != 'ř' && c != 'Â') [INFO] [stdout] | [INFO] [stdout] 305 - c == 'β' [INFO] [stdout] 306 - || c == 'è' [INFO] [stdout] 307 - || c == 'ƒ' [INFO] [stdout] 308 - || c == 'ô' [INFO] [stdout] 309 - || c == 'ř' [INFO] [stdout] 310 - || c == 'è' [INFO] [stdout] 311 - || c == 'Â' [INFO] [stdout] 305 + c == 'β' || c == 'è' || c == 'ƒ' || c == 'ô' || c == 'ř' || c == 'Â' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/str.rs:305:7 [INFO] [stdout] | [INFO] [stdout] 305 | / c == 'β' [INFO] [stdout] 306 | | || c == 'è' [INFO] [stdout] 307 | | || c == 'ƒ' [INFO] [stdout] 308 | | || c == 'ô' [INFO] [stdout] 309 | | || c == 'ř' [INFO] [stdout] 310 | | || c == 'è' [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 305 - c == 'β' [INFO] [stdout] 306 - || c == 'è' [INFO] [stdout] 307 - || c == 'ƒ' [INFO] [stdout] 308 - || c == 'ô' [INFO] [stdout] 309 - || c == 'ř' [INFO] [stdout] 310 - || c == 'è' [INFO] [stdout] 305 + !(c != 'β' && c != 'è' && c != 'ƒ' && c != 'ô' && c != 'ř') [INFO] [stdout] | [INFO] [stdout] 305 - c == 'β' [INFO] [stdout] 306 - || c == 'è' [INFO] [stdout] 307 - || c == 'ƒ' [INFO] [stdout] 308 - || c == 'ô' [INFO] [stdout] 309 - || c == 'ř' [INFO] [stdout] 310 - || c == 'è' [INFO] [stdout] 305 + c == 'β' || c == 'è' || c == 'ƒ' || c == 'ô' || c == 'ř' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/str.rs:364:7 [INFO] [stdout] | [INFO] [stdout] 364 | / c == 'β' [INFO] [stdout] 365 | | || c == 'è' [INFO] [stdout] 366 | | || c == 'ƒ' [INFO] [stdout] 367 | | || c == 'ô' [INFO] [stdout] ... | [INFO] [stdout] 370 | | || c == 'Â' [INFO] [stdout] 371 | | || c == 'ß' [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 364 - c == 'β' [INFO] [stdout] 365 - || c == 'è' [INFO] [stdout] 366 - || c == 'ƒ' [INFO] [stdout] 367 - || c == 'ô' [INFO] [stdout] 368 - || c == 'ř' [INFO] [stdout] 369 - || c == 'è' [INFO] [stdout] 370 - || c == 'Â' [INFO] [stdout] 371 - || c == 'ß' [INFO] [stdout] 364 + !(c != 'β' && c != 'è' && c != 'ƒ' && c != 'ô' && c != 'ř' && c != 'Â' && c != 'ß') [INFO] [stdout] | [INFO] [stdout] 364 - c == 'β' [INFO] [stdout] 365 - || c == 'è' [INFO] [stdout] 366 - || c == 'ƒ' [INFO] [stdout] 367 - || c == 'ô' [INFO] [stdout] 368 - || c == 'ř' [INFO] [stdout] 369 - || c == 'è' [INFO] [stdout] 370 - || c == 'Â' [INFO] [stdout] 371 - || c == 'ß' [INFO] [stdout] 364 + c == 'β' || c == 'è' || c == 'ƒ' || c == 'ô' || c == 'ř' || c == 'Â' || c == 'ß' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/str.rs:364:7 [INFO] [stdout] | [INFO] [stdout] 364 | / c == 'β' [INFO] [stdout] 365 | | || c == 'è' [INFO] [stdout] 366 | | || c == 'ƒ' [INFO] [stdout] 367 | | || c == 'ô' [INFO] [stdout] 368 | | || c == 'ř' [INFO] [stdout] 369 | | || c == 'è' [INFO] [stdout] 370 | | || c == 'Â' [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 364 - c == 'β' [INFO] [stdout] 365 - || c == 'è' [INFO] [stdout] 366 - || c == 'ƒ' [INFO] [stdout] 367 - || c == 'ô' [INFO] [stdout] 368 - || c == 'ř' [INFO] [stdout] 369 - || c == 'è' [INFO] [stdout] 370 - || c == 'Â' [INFO] [stdout] 364 + !(c != 'β' && c != 'è' && c != 'ƒ' && c != 'ô' && c != 'ř' && c != 'Â') [INFO] [stdout] | [INFO] [stdout] 364 - c == 'β' [INFO] [stdout] 365 - || c == 'è' [INFO] [stdout] 366 - || c == 'ƒ' [INFO] [stdout] 367 - || c == 'ô' [INFO] [stdout] 368 - || c == 'ř' [INFO] [stdout] 369 - || c == 'è' [INFO] [stdout] 370 - || c == 'Â' [INFO] [stdout] 364 + c == 'β' || c == 'è' || c == 'ƒ' || c == 'ô' || c == 'ř' || c == 'Â' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/str.rs:364:7 [INFO] [stdout] | [INFO] [stdout] 364 | / c == 'β' [INFO] [stdout] 365 | | || c == 'è' [INFO] [stdout] 366 | | || c == 'ƒ' [INFO] [stdout] 367 | | || c == 'ô' [INFO] [stdout] 368 | | || c == 'ř' [INFO] [stdout] 369 | | || c == 'è' [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 364 - c == 'β' [INFO] [stdout] 365 - || c == 'è' [INFO] [stdout] 366 - || c == 'ƒ' [INFO] [stdout] 367 - || c == 'ô' [INFO] [stdout] 368 - || c == 'ř' [INFO] [stdout] 369 - || c == 'è' [INFO] [stdout] 364 + !(c != 'β' && c != 'è' && c != 'ƒ' && c != 'ô' && c != 'ř') [INFO] [stdout] | [INFO] [stdout] 364 - c == 'β' [INFO] [stdout] 365 - || c == 'è' [INFO] [stdout] 366 - || c == 'ƒ' [INFO] [stdout] 367 - || c == 'ô' [INFO] [stdout] 368 - || c == 'ř' [INFO] [stdout] 369 - || c == 'è' [INFO] [stdout] 364 + c == 'β' || c == 'è' || c == 'ƒ' || c == 'ô' || c == 'ř' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/str.rs:513:18 [INFO] [stdout] | [INFO] [stdout] 513 | assert_eq!(f(&a[..]), Ok((&a[6..], &a[..]))); [INFO] [stdout] | ^^^^^^ help: use the original value instead: `a` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/str.rs:513:40 [INFO] [stdout] | [INFO] [stdout] 513 | assert_eq!(f(&a[..]), Ok((&a[6..], &a[..]))); [INFO] [stdout] | ^^^^^^ help: use the original value instead: `a` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant slicing of the whole range [INFO] [stdout] --> src/str.rs:514:18 [INFO] [stdout] | [INFO] [stdout] 514 | assert_eq!(f(&b[..]), Ok((&b[4..], &b[..4]))); [INFO] [stdout] | ^^^^^^ help: use the original value instead: `b` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `format!` [INFO] [stdout] --> src/number/complete.rs:1992:20 [INFO] [stdout] | [INFO] [stdout] 1992 | let larger = format!("{}", test); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `test.to_string()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stdout] = note: `#[warn(clippy::useless_format)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.57s [INFO] running `Command { std: "docker" "inspect" "1d39132fe466563a376ed57e6b11b0c6c123575cd475e7c15fe7e636134190ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d39132fe466563a376ed57e6b11b0c6c123575cd475e7c15fe7e636134190ab", kill_on_drop: false }` [INFO] [stdout] 1d39132fe466563a376ed57e6b11b0c6c123575cd475e7c15fe7e636134190ab