[INFO] fetching crate jsonic 0.2.14... [INFO] linting jsonic-0.2.14 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate jsonic 0.2.14 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate jsonic 0.2.14 [INFO] finished tweaking crates.io crate jsonic 0.2.14 [INFO] tweaked toml for crates.io crate jsonic 0.2.14 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate jsonic 0.2.14 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate jsonic 0.2.14 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sonic-number v0.1.0 [INFO] [stderr] Downloaded halfbrown v0.3.0 [INFO] [stderr] Downloaded sonic-simd v0.1.0 [INFO] [stderr] Downloaded value-trait v0.11.0 [INFO] [stderr] Downloaded divan v0.1.17 [INFO] [stderr] Downloaded sonic-rs v0.4.0 [INFO] [stderr] Downloaded simd-json v0.15.0 [INFO] [stderr] Downloaded faststr v0.2.18 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 5d4fa9c5fe12797052e474345e683c3e5c93027f35dabf0b944fb04529611c9d [INFO] running `Command { std: "docker" "start" "-a" "5d4fa9c5fe12797052e474345e683c3e5c93027f35dabf0b944fb04529611c9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5d4fa9c5fe12797052e474345e683c3e5c93027f35dabf0b944fb04529611c9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d4fa9c5fe12797052e474345e683c3e5c93027f35dabf0b944fb04529611c9d", kill_on_drop: false }` [INFO] [stdout] 5d4fa9c5fe12797052e474345e683c3e5c93027f35dabf0b944fb04529611c9d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] b57e5aae6e87b0e88b6185d1848cec2328088bc0e493106ce02feab1824abcf9 [INFO] running `Command { std: "docker" "start" "-a" "b57e5aae6e87b0e88b6185d1848cec2328088bc0e493106ce02feab1824abcf9", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling rustix v0.38.31 [INFO] [stderr] Checking bitflags v2.4.2 [INFO] [stderr] Checking linux-raw-sys v0.4.13 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling ref-cast v1.0.22 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking allocator-api2 v0.2.16 [INFO] [stderr] Checking simdutf8 v0.1.4 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking float-cmp v0.10.0 [INFO] [stderr] Checking zerocopy v0.7.32 [INFO] [stderr] Checking sonic-number v0.1.0 [INFO] [stderr] Checking sonic-simd v0.1.0 [INFO] [stderr] Checking regex-lite v0.1.5 [INFO] [stderr] Checking condtype v1.3.0 [INFO] [stderr] Checking bumpalo v3.17.0 [INFO] [stderr] Checking json v0.12.4 [INFO] [stderr] Checking jsonic v0.2.14 (/opt/rustwide/workdir) [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stdout] warning: unnecessary map of the identity function [INFO] [stdout] --> src/json_item.rs:43:45 [INFO] [stdout] | [INFO] [stdout] 43 | MapBTree(map.into_iter().map(|(k, v)| (k, v)).collect()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the call to `map` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_identity [INFO] [stdout] = note: `#[warn(clippy::map_identity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> src/json_item.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | / if let Array(array) = container { [INFO] [stdout] 147 | | return array.get(index).unwrap_or(&EMPTY_ITEM); [INFO] [stdout] 148 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/json_item.rs:145:21 [INFO] [stdout] | [INFO] [stdout] 145 | if let Some(container) = &self.container { [INFO] [stdout] | ^^^^^^^^^ replace this binding [INFO] [stdout] 146 | if let Array(array) = container { [INFO] [stdout] | ^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant name starts with the enum's name [INFO] [stdout] --> src/generics.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | IterMapEmpty(), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] = note: `#[warn(clippy::enum_variant_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant name starts with the enum's name [INFO] [stdout] --> src/generics.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | IterMapVec(Iter<'a, (K, V)>), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant name starts with the enum's name [INFO] [stdout] --> src/generics.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | IterMapBTree(btree_map::Iter<'a, K, V>), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: all variants have the same prefix: `IterMap` [INFO] [stdout] --> src/generics.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | / pub(crate) enum IterMap<'a, K, V> { [INFO] [stdout] 47 | | IterMapEmpty(), [INFO] [stdout] 48 | | IterMapVec(Iter<'a, (K, V)>), [INFO] [stdout] 49 | | IterMapBTree(btree_map::Iter<'a, K, V>), [INFO] [stdout] 50 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: remove the prefixes and use full paths to the variants instead of glob imports [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/lib.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | / if index + 3 < bytes.len() { [INFO] [stdout] 41 | | if bytes[index + 1] == b'u' && bytes[index + 2] == b'l' && bytes[index + 3] == b'l' { [INFO] [stdout] 42 | | return Ok(JsonItem::new(Slice::from_bytes(bytes, index, index + 4), JsonNull)); [INFO] [stdout] 43 | | } [INFO] [stdout] 44 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 40 ~ if index + 3 < bytes.len() [INFO] [stdout] 41 ~ && bytes[index + 1] == b'u' && bytes[index + 2] == b'l' && bytes[index + 3] == b'l' { [INFO] [stdout] 42 | return Ok(JsonItem::new(Slice::from_bytes(bytes, index, index + 4), JsonNull)); [INFO] [stdout] 43 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/lib.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / if index + 3 < bytes.len() { [INFO] [stdout] 51 | | if bytes[index + 1] == b'r' && bytes[index + 2] == b'u' && bytes[index + 3] == b'e' { [INFO] [stdout] 52 | | return Ok(JsonItem::new(Slice::from_bytes(bytes, index, index + 4), JsonTrue)); [INFO] [stdout] 53 | | } [INFO] [stdout] 54 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 50 ~ if index + 3 < bytes.len() [INFO] [stdout] 51 ~ && bytes[index + 1] == b'r' && bytes[index + 2] == b'u' && bytes[index + 3] == b'e' { [INFO] [stdout] 52 | return Ok(JsonItem::new(Slice::from_bytes(bytes, index, index + 4), JsonTrue)); [INFO] [stdout] 53 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/lib.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | / if index + 4 < bytes.len() { [INFO] [stdout] 61 | | if bytes[index + 1] == b'a' && bytes[index + 2] == b'l' && bytes[index + 3] == b's' && bytes[index + 4] == b'e' { [INFO] [stdout] 62 | | return Ok(JsonItem::new(Slice::from_bytes(bytes, index, index + 5), JsonFalse)); [INFO] [stdout] 63 | | } [INFO] [stdout] 64 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 60 ~ if index + 4 < bytes.len() [INFO] [stdout] 61 ~ && bytes[index + 1] == b'a' && bytes[index + 2] == b'l' && bytes[index + 3] == b's' && bytes[index + 4] == b'e' { [INFO] [stdout] 62 | return Ok(JsonItem::new(Slice::from_bytes(bytes, index, index + 5), JsonFalse)); [INFO] [stdout] 63 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/lib.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | / if b == b'"' { [INFO] [stdout] 93 | | if p != b'\\' { [INFO] [stdout] 94 | | return Ok(JsonItem::new(Slice::from_bytes(bytes, mark, index), JsonString)); [INFO] [stdout] 95 | | } [INFO] [stdout] 96 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 92 ~ if b == b'"' [INFO] [stdout] 93 ~ && p != b'\\' { [INFO] [stdout] 94 | return Ok(JsonItem::new(Slice::from_bytes(bytes, mark, index), JsonString)); [INFO] [stdout] 95 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:136:20 [INFO] [stdout] | [INFO] [stdout] 136 | if !map.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `map.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:187:20 [INFO] [stdout] | [INFO] [stdout] 187 | if !array.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try: `array.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needless `fn main` in doctest [INFO] [stdout] --> src/lib.rs:216:5 [INFO] [stdout] | [INFO] [stdout] 216 | /// fn main() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main [INFO] [stdout] = note: `#[warn(clippy::needless_doctest_main)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/json_item.rs:110:21 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn elements(&self) -> Option> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 110 | pub fn elements(&self) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/json_item.rs:125:20 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn entries(&self) -> Option> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 125 | pub fn entries(&self) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Checking terminal_size v0.3.0 [INFO] [stderr] Checking clap_builder v4.5.2 [INFO] [stderr] Checking clap v4.5.2 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling ref-cast-impl v1.0.22 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling divan-macros v0.1.17 [INFO] [stderr] Checking divan v0.1.17 [INFO] [stderr] Checking thiserror v2.0.12 [INFO] [stderr] Checking halfbrown v0.3.0 [INFO] [stderr] Checking faststr v0.2.18 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking sonic-rs v0.4.0 [INFO] [stderr] Checking value-trait v0.11.0 [INFO] [stderr] Checking simd-json v0.15.0 [INFO] [stdout] warning: unnecessary map of the identity function [INFO] [stdout] --> src/json_item.rs:43:45 [INFO] [stdout] | [INFO] [stdout] 43 | MapBTree(map.into_iter().map(|(k, v)| (k, v)).collect()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the call to `map` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_identity [INFO] [stdout] = note: `#[warn(clippy::map_identity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> src/json_item.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | / if let Array(array) = container { [INFO] [stdout] 147 | | return array.get(index).unwrap_or(&EMPTY_ITEM); [INFO] [stdout] 148 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/json_item.rs:145:21 [INFO] [stdout] | [INFO] [stdout] 145 | if let Some(container) = &self.container { [INFO] [stdout] | ^^^^^^^^^ replace this binding [INFO] [stdout] 146 | if let Array(array) = container { [INFO] [stdout] | ^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant name starts with the enum's name [INFO] [stdout] --> src/generics.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | IterMapEmpty(), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] = note: `#[warn(clippy::enum_variant_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant name starts with the enum's name [INFO] [stdout] --> src/generics.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | IterMapVec(Iter<'a, (K, V)>), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant name starts with the enum's name [INFO] [stdout] --> src/generics.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | IterMapBTree(btree_map::Iter<'a, K, V>), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: all variants have the same prefix: `IterMap` [INFO] [stdout] --> src/generics.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | / pub(crate) enum IterMap<'a, K, V> { [INFO] [stdout] 47 | | IterMapEmpty(), [INFO] [stdout] 48 | | IterMapVec(Iter<'a, (K, V)>), [INFO] [stdout] 49 | | IterMapBTree(btree_map::Iter<'a, K, V>), [INFO] [stdout] 50 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: remove the prefixes and use full paths to the variants instead of glob imports [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/lib.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | / if index + 3 < bytes.len() { [INFO] [stdout] 41 | | if bytes[index + 1] == b'u' && bytes[index + 2] == b'l' && bytes[index + 3] == b'l' { [INFO] [stdout] 42 | | return Ok(JsonItem::new(Slice::from_bytes(bytes, index, index + 4), JsonNull)); [INFO] [stdout] 43 | | } [INFO] [stdout] 44 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 40 ~ if index + 3 < bytes.len() [INFO] [stdout] 41 ~ && bytes[index + 1] == b'u' && bytes[index + 2] == b'l' && bytes[index + 3] == b'l' { [INFO] [stdout] 42 | return Ok(JsonItem::new(Slice::from_bytes(bytes, index, index + 4), JsonNull)); [INFO] [stdout] 43 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/lib.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / if index + 3 < bytes.len() { [INFO] [stdout] 51 | | if bytes[index + 1] == b'r' && bytes[index + 2] == b'u' && bytes[index + 3] == b'e' { [INFO] [stdout] 52 | | return Ok(JsonItem::new(Slice::from_bytes(bytes, index, index + 4), JsonTrue)); [INFO] [stdout] 53 | | } [INFO] [stdout] 54 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 50 ~ if index + 3 < bytes.len() [INFO] [stdout] 51 ~ && bytes[index + 1] == b'r' && bytes[index + 2] == b'u' && bytes[index + 3] == b'e' { [INFO] [stdout] 52 | return Ok(JsonItem::new(Slice::from_bytes(bytes, index, index + 4), JsonTrue)); [INFO] [stdout] 53 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/lib.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | / if index + 4 < bytes.len() { [INFO] [stdout] 61 | | if bytes[index + 1] == b'a' && bytes[index + 2] == b'l' && bytes[index + 3] == b's' && bytes[index + 4] == b'e' { [INFO] [stdout] 62 | | return Ok(JsonItem::new(Slice::from_bytes(bytes, index, index + 5), JsonFalse)); [INFO] [stdout] 63 | | } [INFO] [stdout] 64 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 60 ~ if index + 4 < bytes.len() [INFO] [stdout] 61 ~ && bytes[index + 1] == b'a' && bytes[index + 2] == b'l' && bytes[index + 3] == b's' && bytes[index + 4] == b'e' { [INFO] [stdout] 62 | return Ok(JsonItem::new(Slice::from_bytes(bytes, index, index + 5), JsonFalse)); [INFO] [stdout] 63 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/lib.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | / if b == b'"' { [INFO] [stdout] 93 | | if p != b'\\' { [INFO] [stdout] 94 | | return Ok(JsonItem::new(Slice::from_bytes(bytes, mark, index), JsonString)); [INFO] [stdout] 95 | | } [INFO] [stdout] 96 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 92 ~ if b == b'"' [INFO] [stdout] 93 ~ && p != b'\\' { [INFO] [stdout] 94 | return Ok(JsonItem::new(Slice::from_bytes(bytes, mark, index), JsonString)); [INFO] [stdout] 95 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:136:20 [INFO] [stdout] | [INFO] [stdout] 136 | if !map.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `map.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/lib.rs:187:20 [INFO] [stdout] | [INFO] [stdout] 187 | if !array.is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try: `array.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: needless `fn main` in doctest [INFO] [stdout] --> src/lib.rs:216:5 [INFO] [stdout] | [INFO] [stdout] 216 | /// fn main() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main [INFO] [stdout] = note: `#[warn(clippy::needless_doctest_main)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `true` [INFO] [stdout] --> src/lib.rs:246:17 [INFO] [stdout] | [INFO] [stdout] 246 | assert!(true); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove the assertion [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] = note: `#[warn(clippy::assertions_on_constants)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:249:17 [INFO] [stdout] | [INFO] [stdout] 249 | assert!(false, "{}", error.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:258:17 [INFO] [stdout] | [INFO] [stdout] 258 | assert!(false); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `true` [INFO] [stdout] --> src/lib.rs:261:17 [INFO] [stdout] | [INFO] [stdout] 261 | assert!(true); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove the assertion [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:273:17 [INFO] [stdout] | [INFO] [stdout] 273 | assert!(false, "{}", error.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:285:17 [INFO] [stdout] | [INFO] [stdout] 285 | assert!(false, "{}", error.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:297:17 [INFO] [stdout] | [INFO] [stdout] 297 | assert!(false, "{}", error.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:309:17 [INFO] [stdout] | [INFO] [stdout] 309 | assert!(false, "{}", error.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:321:17 [INFO] [stdout] | [INFO] [stdout] 321 | assert!(false, "{}", error.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:339:17 [INFO] [stdout] | [INFO] [stdout] 339 | assert!(false, "{}", error.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:351:17 [INFO] [stdout] | [INFO] [stdout] 351 | assert!(false, "{}", error.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:363:17 [INFO] [stdout] | [INFO] [stdout] 363 | assert!(false, "{}", error.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:378:17 [INFO] [stdout] | [INFO] [stdout] 378 | assert!(false, "{}", error.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:390:17 [INFO] [stdout] | [INFO] [stdout] 390 | assert!(false, "{}", error.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:400:31 [INFO] [stdout] | [INFO] [stdout] 400 | None => { assert!(false); } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:405:17 [INFO] [stdout] | [INFO] [stdout] 405 | assert!(false, "{}", error.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:415:31 [INFO] [stdout] | [INFO] [stdout] 415 | None => { assert!(false); } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:420:17 [INFO] [stdout] | [INFO] [stdout] 420 | assert!(false, "{}", error.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/lib.rs:429:17 [INFO] [stdout] | [INFO] [stdout] 429 | assert_eq!(parsed["a"].exists(), false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_assert_comparison)]` on by default [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 429 - assert_eq!(parsed["a"].exists(), false); [INFO] [stdout] 429 + assert!(!parsed["a"].exists()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:432:17 [INFO] [stdout] | [INFO] [stdout] 432 | assert!(false, "{}", error.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `true` [INFO] [stdout] --> src/lib.rs:442:31 [INFO] [stdout] | [INFO] [stdout] 442 | None => { assert!(true); } [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove the assertion [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:443:34 [INFO] [stdout] | [INFO] [stdout] 443 | Some(_) => { assert!(false); } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:447:17 [INFO] [stdout] | [INFO] [stdout] 447 | assert!(false, "{}", error.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `true` [INFO] [stdout] --> src/lib.rs:458:35 [INFO] [stdout] | [INFO] [stdout] 458 | None => { assert!(true); } [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove the assertion [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:459:38 [INFO] [stdout] | [INFO] [stdout] 459 | Some(_) => { assert!(false); } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:464:17 [INFO] [stdout] | [INFO] [stdout] 464 | assert!(false, "{}", error.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `true` [INFO] [stdout] --> src/lib.rs:475:35 [INFO] [stdout] | [INFO] [stdout] 475 | None => { assert!(true); } [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove the assertion [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:476:38 [INFO] [stdout] | [INFO] [stdout] 476 | Some(_) => { assert!(false); } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/lib.rs:481:17 [INFO] [stdout] | [INFO] [stdout] 481 | assert!(false, "{}", error.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/json_item.rs:110:21 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn elements(&self) -> Option> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 110 | pub fn elements(&self) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/json_item.rs:125:20 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn entries(&self) -> Option> { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 125 | pub fn entries(&self) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.14s [INFO] running `Command { std: "docker" "inspect" "b57e5aae6e87b0e88b6185d1848cec2328088bc0e493106ce02feab1824abcf9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b57e5aae6e87b0e88b6185d1848cec2328088bc0e493106ce02feab1824abcf9", kill_on_drop: false }` [INFO] [stdout] b57e5aae6e87b0e88b6185d1848cec2328088bc0e493106ce02feab1824abcf9