[INFO] cloning repository https://github.com/Zenemis/rs-json-parser [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Zenemis/rs-json-parser" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZenemis%2Frs-json-parser", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZenemis%2Frs-json-parser'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2fa78baa712af0233a7a90cd57e3900657c89aa9 [INFO] linting Zenemis/rs-json-parser against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZenemis%2Frs-json-parser" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Zenemis/rs-json-parser [INFO] finished tweaking git repo https://github.com/Zenemis/rs-json-parser [INFO] tweaked toml for git repo https://github.com/Zenemis/rs-json-parser written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Zenemis/rs-json-parser 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/Zenemis/rs-json-parser already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-3-tc1/source/benchmark/Cargo.toml: file `/workspace/builds/worker-3-tc1/source/benchmark/src/main.rs` found to be present in multiple build targets: [INFO] [stderr] * `bin` target `benchmark` [INFO] [stderr] * `bench` target `json_benchmark` [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] 9a4bd8e81d967f82084edacbb9d32e82bca3ae9866697fb949c0ca8b80f1aaed [INFO] running `Command { std: "docker" "start" "-a" "9a4bd8e81d967f82084edacbb9d32e82bca3ae9866697fb949c0ca8b80f1aaed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9a4bd8e81d967f82084edacbb9d32e82bca3ae9866697fb949c0ca8b80f1aaed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a4bd8e81d967f82084edacbb9d32e82bca3ae9866697fb949c0ca8b80f1aaed", kill_on_drop: false }` [INFO] [stdout] 9a4bd8e81d967f82084edacbb9d32e82bca3ae9866697fb949c0ca8b80f1aaed [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] 2e30b115eecfae7603f703a44dcf58ab87d7083edfdaf4bd2d9970a7d9623ab6 [INFO] running `Command { std: "docker" "start" "-a" "2e30b115eecfae7603f703a44dcf58ab87d7083edfdaf4bd2d9970a7d9623ab6", kill_on_drop: false }` [INFO] [stderr] warning: /opt/rustwide/workdir/benchmark/Cargo.toml: file `/opt/rustwide/workdir/benchmark/src/main.rs` found to be present in multiple build targets: [INFO] [stderr] * `bin` target `benchmark` [INFO] [stderr] * `bench` target `json_benchmark` [INFO] [stderr] Checking half v2.6.0 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling rustls v0.23.29 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking ciborium-io v0.2.2 [INFO] [stderr] Checking plotters-backend v0.3.7 [INFO] [stderr] Checking crc32fast v1.5.0 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking clap_builder v4.5.41 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking webpki-roots v1.0.1 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking oorandom v11.1.5 [INFO] [stderr] Checking json-parser v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking json v0.12.4 [INFO] [stderr] Checking webpki-roots v0.26.11 [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/core.rs:68:35 [INFO] [stdout] | [INFO] [stdout] 68 | Some('{') => parse_object(&s), [INFO] [stdout] | ^^ help: change this to: `s` [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] [stderr] Checking plotters-svg v0.3.7 [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/core.rs:69:34 [INFO] [stdout] | [INFO] [stdout] 69 | Some('[') => parse_array(&s), [INFO] [stdout] | ^^ help: change this to: `s` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/core.rs:70:35 [INFO] [stdout] | [INFO] [stdout] 70 | Some('"') => parse_string(&s), [INFO] [stdout] | ^^ help: change this to: `s` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/core.rs:71:33 [INFO] [stdout] | [INFO] [stdout] 71 | Some('t') => parse_true(&s), [INFO] [stdout] | ^^ help: change this to: `s` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/core.rs:72:34 [INFO] [stdout] | [INFO] [stdout] 72 | Some('f') => parse_false(&s), [INFO] [stdout] | ^^ help: change this to: `s` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/core.rs:73:33 [INFO] [stdout] | [INFO] [stdout] 73 | Some('n') => parse_null(&s), [INFO] [stdout] | ^^ help: change this to: `s` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/core.rs:74:33 [INFO] [stdout] | [INFO] [stdout] 74 | Some(_) => parse_number(&s), [INFO] [stdout] | ^^ help: change this to: `s` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/object.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | if !(c=='"') { [INFO] [stdout] | ^^^^^^^^^ help: try: `(c != '"')` [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 loop could be written as a `for` loop [INFO] [stdout] --> src/object.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | while let Some(c) = chars.next() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for c in chars` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stdout] = note: `#[warn(clippy::while_let_on_iterator)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/number.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | / if let Some((_, c)) = chars.peek() { [INFO] [stdout] 30 | | if c.is_ascii_digit() { [INFO] [stdout] 31 | | return Err(JsonError::SyntaxError("Leading zeros are not allowed".to_string())); [INFO] [stdout] 32 | | } [INFO] [stdout] 33 | | } [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] 29 ~ if let Some((_, c)) = chars.peek() [INFO] [stdout] 30 ~ && c.is_ascii_digit() { [INFO] [stdout] 31 | return Err(JsonError::SyntaxError("Leading zeros are not allowed".to_string())); [INFO] [stdout] 32 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/number.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | } else if let Some((_, c)) = chars.peek() { [INFO] [stdout] | ____________^ [INFO] [stdout] 35 | | if c.is_ascii_digit() { [INFO] [stdout] 36 | | has_digits = true; [INFO] [stdout] 37 | | while let Some((i, c)) = chars.peek() { [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [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] 34 ~ } else if let Some((_, c)) = chars.peek() [INFO] [stdout] 35 ~ && c.is_ascii_digit() { [INFO] [stdout] 36 | has_digits = true; [INFO] [stdout] ... [INFO] [stdout] 44 | } [INFO] [stdout] 45 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/number.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | / if let Some((_, c)) = chars.peek() { [INFO] [stdout] 70 | | if *c == 'e' || *c == 'E' { [INFO] [stdout] 71 | | end += 1; [INFO] [stdout] 72 | | chars.next(); [INFO] [stdout] ... | [INFO] [stdout] 95 | | } [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] 69 ~ if let Some((_, c)) = chars.peek() [INFO] [stdout] 70 ~ && (*c == 'e' || *c == 'E') { [INFO] [stdout] 71 | end += 1; [INFO] [stdout] ... [INFO] [stdout] 93 | has_digits = true; [INFO] [stdout] 94 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/number.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | / if let Some((_, c2)) = chars.peek() { [INFO] [stdout] 75 | | if *c2 == '+' || *c2 == '-' { [INFO] [stdout] 76 | | end += 1; [INFO] [stdout] 77 | | chars.next(); [INFO] [stdout] 78 | | } [INFO] [stdout] 79 | | } [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] 74 ~ if let Some((_, c2)) = chars.peek() [INFO] [stdout] 75 ~ && (*c2 == '+' || *c2 == '-') { [INFO] [stdout] 76 | end += 1; [INFO] [stdout] 77 | chars.next(); [INFO] [stdout] 78 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Checking flate2 v1.1.2 [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/core.rs:68:35 [INFO] [stdout] | [INFO] [stdout] 68 | Some('{') => parse_object(&s), [INFO] [stdout] | ^^ help: change this to: `s` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/core.rs:69:34 [INFO] [stdout] | [INFO] [stdout] 69 | Some('[') => parse_array(&s), [INFO] [stdout] | ^^ help: change this to: `s` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/core.rs:70:35 [INFO] [stdout] | [INFO] [stdout] 70 | Some('"') => parse_string(&s), [INFO] [stdout] | ^^ help: change this to: `s` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/core.rs:71:33 [INFO] [stdout] | [INFO] [stdout] 71 | Some('t') => parse_true(&s), [INFO] [stdout] | ^^ help: change this to: `s` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/core.rs:72:34 [INFO] [stdout] | [INFO] [stdout] 72 | Some('f') => parse_false(&s), [INFO] [stdout] | ^^ help: change this to: `s` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/core.rs:73:33 [INFO] [stdout] | [INFO] [stdout] 73 | Some('n') => parse_null(&s), [INFO] [stdout] | ^^ help: change this to: `s` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/core.rs:74:33 [INFO] [stdout] | [INFO] [stdout] 74 | Some(_) => parse_number(&s), [INFO] [stdout] | ^^ help: change this to: `s` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/object.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | if !(c=='"') { [INFO] [stdout] | ^^^^^^^^^ help: try: `(c != '"')` [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 loop could be written as a `for` loop [INFO] [stdout] --> src/object.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | while let Some(c) = chars.next() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for c in chars` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator [INFO] [stdout] = note: `#[warn(clippy::while_let_on_iterator)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/number.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | / if let Some((_, c)) = chars.peek() { [INFO] [stdout] 30 | | if c.is_ascii_digit() { [INFO] [stdout] 31 | | return Err(JsonError::SyntaxError("Leading zeros are not allowed".to_string())); [INFO] [stdout] 32 | | } [INFO] [stdout] 33 | | } [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] 29 ~ if let Some((_, c)) = chars.peek() [INFO] [stdout] 30 ~ && c.is_ascii_digit() { [INFO] [stdout] 31 | return Err(JsonError::SyntaxError("Leading zeros are not allowed".to_string())); [INFO] [stdout] 32 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/number.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | } else if let Some((_, c)) = chars.peek() { [INFO] [stdout] | ____________^ [INFO] [stdout] 35 | | if c.is_ascii_digit() { [INFO] [stdout] 36 | | has_digits = true; [INFO] [stdout] 37 | | while let Some((i, c)) = chars.peek() { [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [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] 34 ~ } else if let Some((_, c)) = chars.peek() [INFO] [stdout] 35 ~ && c.is_ascii_digit() { [INFO] [stdout] 36 | has_digits = true; [INFO] [stdout] ... [INFO] [stdout] 44 | } [INFO] [stdout] 45 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/number.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | / if let Some((_, c)) = chars.peek() { [INFO] [stdout] 70 | | if *c == 'e' || *c == 'E' { [INFO] [stdout] 71 | | end += 1; [INFO] [stdout] 72 | | chars.next(); [INFO] [stdout] ... | [INFO] [stdout] 95 | | } [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] 69 ~ if let Some((_, c)) = chars.peek() [INFO] [stdout] 70 ~ && (*c == 'e' || *c == 'E') { [INFO] [stdout] 71 | end += 1; [INFO] [stdout] ... [INFO] [stdout] 93 | has_digits = true; [INFO] [stdout] 94 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/number.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | / if let Some((_, c2)) = chars.peek() { [INFO] [stdout] 75 | | if *c2 == '+' || *c2 == '-' { [INFO] [stdout] 76 | | end += 1; [INFO] [stdout] 77 | | chars.next(); [INFO] [stdout] 78 | | } [INFO] [stdout] 79 | | } [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] 74 ~ if let Some((_, c2)) = chars.peek() [INFO] [stdout] 75 ~ && (*c2 == '+' || *c2 == '-') { [INFO] [stdout] 76 | end += 1; [INFO] [stdout] 77 | chars.next(); [INFO] [stdout] 78 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking clap v4.5.41 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking rustls-webpki v0.103.4 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking ureq v2.12.1 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking criterion v0.5.1 [INFO] [stderr] Checking benchmark v0.1.0 (/opt/rustwide/workdir/benchmark) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 27.27s [INFO] running `Command { std: "docker" "inspect" "2e30b115eecfae7603f703a44dcf58ab87d7083edfdaf4bd2d9970a7d9623ab6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2e30b115eecfae7603f703a44dcf58ab87d7083edfdaf4bd2d9970a7d9623ab6", kill_on_drop: false }` [INFO] [stdout] 2e30b115eecfae7603f703a44dcf58ab87d7083edfdaf4bd2d9970a7d9623ab6