[INFO] cloning repository https://github.com/payabli/payquery-cli [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/payabli/payquery-cli" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpayabli%2Fpayquery-cli", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpayabli%2Fpayquery-cli'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d2cc7ca6e7ba922f85ce477041c91c05b07292f4 [INFO] linting payabli/payquery-cli against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpayabli%2Fpayquery-cli" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/payabli/payquery-cli [INFO] finished tweaking git repo https://github.com/payabli/payquery-cli [INFO] tweaked toml for git repo https://github.com/payabli/payquery-cli written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/payabli/payquery-cli 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/payabli/payquery-cli 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: unused manifest key: target.x86_64-pc-windows-gnu.linker [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] d9626b96e8e100330e6741c203c7f10539a387c0a65584162eb1415f9b7b9f02 [INFO] running `Command { std: "docker" "start" "-a" "d9626b96e8e100330e6741c203c7f10539a387c0a65584162eb1415f9b7b9f02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d9626b96e8e100330e6741c203c7f10539a387c0a65584162eb1415f9b7b9f02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9626b96e8e100330e6741c203c7f10539a387c0a65584162eb1415f9b7b9f02", kill_on_drop: false }` [INFO] [stdout] d9626b96e8e100330e6741c203c7f10539a387c0a65584162eb1415f9b7b9f02 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 384e2dd2e13160bdc6a3d03db19d3846a0f80a34d7c684eda0b69394fdeab9fc [INFO] running `Command { std: "docker" "start" "-a" "384e2dd2e13160bdc6a3d03db19d3846a0f80a34d7c684eda0b69394fdeab9fc", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: target.x86_64-pc-windows-gnu.linker [INFO] [stderr] Compiling unicode-ident v1.0.17 [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Checking once_cell v1.20.3 [INFO] [stderr] Compiling cc v1.2.15 [INFO] [stderr] Compiling serde v1.0.218 [INFO] [stderr] Checking indexmap v2.7.1 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling serde_json v1.0.139 [INFO] [stderr] Checking colored v2.2.0 [INFO] [stderr] Checking chrono v0.4.39 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking dirs-sys v0.3.7 [INFO] [stderr] Checking dirs v4.0.0 [INFO] [stderr] Compiling openssl-sys v0.9.106 [INFO] [stderr] Checking tokio v1.43.0 [INFO] [stderr] Compiling openssl v0.10.71 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking tokio-util v0.7.13 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.218 [INFO] [stderr] Checking zerofrom v0.1.5 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking payquery v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/pretty.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_yaml; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] = note: `#[warn(clippy::single_component_path_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/pretty.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_yaml; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] = note: `#[warn(clippy::single_component_path_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/args.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | / if let Ok(month) = Month::from_str(month_str) { [INFO] [stdout] 124 | | if let Some(date) = NaiveDate::from_ymd_opt(year, month.number_from_month(), day) { [INFO] [stdout] 125 | | let hour: u32 = cap.get(4).map_or(0, |m| m.as_str().parse().unwrap()); [INFO] [stdout] 126 | | let minute: u32 = cap.get(5).map_or(0, |m| m.as_str().parse().unwrap()); [INFO] [stdout] ... | [INFO] [stdout] 131 | | } [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] 123 ~ if let Ok(month) = Month::from_str(month_str) [INFO] [stdout] 124 ~ && let Some(date) = NaiveDate::from_ymd_opt(year, month.number_from_month(), day) { [INFO] [stdout] 125 | let hour: u32 = cap.get(4).map_or(0, |m| m.as_str().parse().unwrap()); [INFO] [stdout] ... [INFO] [stdout] 129 | result = result.replace(&cap[0], &utc_datetime); [INFO] [stdout] 130 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `Iterator::fold` on a type that implements `Try` [INFO] [stdout] --> src/args.rs:175:20 [INFO] [stdout] | [INFO] [stdout] 175 | key.split('.').fold(Some(value), |acc, k| acc.and_then(|v| v.get(k))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `try_fold` instead: `try_fold(value, |acc, k| ...)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold [INFO] [stdout] = note: `#[warn(clippy::manual_try_fold)]` 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/main.rs:38:86 [INFO] [stdout] | [INFO] [stdout] 38 | let (route_parts, filter_args, sort_clause) = process_route_args(&replaced_args, &env_config); [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `env_config` [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/main.rs:39:25 [INFO] [stdout] | [INFO] [stdout] 39 | let url = build_url(&base_url, &route_parts); [INFO] [stdout] | ^^^^^^^^^ help: change this to: `base_url` [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/main.rs:141:76 [INFO] [stdout] | [INFO] [stdout] 141 | let start_index = args.iter().position(|arg| !arg.starts_with("--") && !arg.parse::().is_ok()).unwrap_or(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `arg.parse::().is_err()` [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: use of `char::is_digit` with literal radix of 10 [INFO] [stdout] --> src/main.rs:148:47 [INFO] [stdout] | [INFO] [stdout] 148 | } else if !last_param.chars().any(|c| c.is_digit(10)) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `c.is_ascii_digit()` [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: redundant closure [INFO] [stdout] --> src/main.rs:169:136 [INFO] [stdout] | [INFO] [stdout] 169 | ...ap_err(|e| SerdeDeError::custom(e))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the associated function itself: `SerdeDeError::custom` [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: this `map_or` can be simplified [INFO] [stdout] --> src/main.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 175 | if sort_clause.as_ref().map_or(false, |(_, _)| args.contains(&"crop".to_string())) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] = note: `#[warn(clippy::unnecessary_map_or)]` on by default [INFO] [stdout] help: use `is_some_and` instead [INFO] [stdout] | [INFO] [stdout] 175 - if sort_clause.as_ref().map_or(false, |(_, _)| args.contains(&"crop".to_string())) { [INFO] [stdout] 175 + if sort_clause.as_ref().is_some_and(|(_, _)| args.contains(&"crop".to_string())) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:191:40 [INFO] [stdout] | [INFO] [stdout] 191 | let a_value = get_nested_value(&a, key).unwrap_or(&default_value); [INFO] [stdout] | ^^ help: change this to: `a` [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/main.rs:192:40 [INFO] [stdout] | [INFO] [stdout] 192 | let b_value = get_nested_value(&b, key).unwrap_or(&default_value); [INFO] [stdout] | ^^ help: change this to: `b` [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 `if` statement can be collapsed [INFO] [stdout] --> src/args.rs:123:9 [INFO] [stdout] | [INFO] [stdout] 123 | / if let Ok(month) = Month::from_str(month_str) { [INFO] [stdout] 124 | | if let Some(date) = NaiveDate::from_ymd_opt(year, month.number_from_month(), day) { [INFO] [stdout] 125 | | let hour: u32 = cap.get(4).map_or(0, |m| m.as_str().parse().unwrap()); [INFO] [stdout] 126 | | let minute: u32 = cap.get(5).map_or(0, |m| m.as_str().parse().unwrap()); [INFO] [stdout] ... | [INFO] [stdout] 131 | | } [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] 123 ~ if let Ok(month) = Month::from_str(month_str) [INFO] [stdout] 124 ~ && let Some(date) = NaiveDate::from_ymd_opt(year, month.number_from_month(), day) { [INFO] [stdout] 125 | let hour: u32 = cap.get(4).map_or(0, |m| m.as_str().parse().unwrap()); [INFO] [stdout] ... [INFO] [stdout] 129 | result = result.replace(&cap[0], &utc_datetime); [INFO] [stdout] 130 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `Iterator::fold` on a type that implements `Try` [INFO] [stdout] --> src/args.rs:175:20 [INFO] [stdout] | [INFO] [stdout] 175 | key.split('.').fold(Some(value), |acc, k| acc.and_then(|v| v.get(k))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `try_fold` instead: `try_fold(value, |acc, k| ...)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold [INFO] [stdout] = note: `#[warn(clippy::manual_try_fold)]` 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/main.rs:38:86 [INFO] [stdout] | [INFO] [stdout] 38 | let (route_parts, filter_args, sort_clause) = process_route_args(&replaced_args, &env_config); [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `env_config` [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/main.rs:39:25 [INFO] [stdout] | [INFO] [stdout] 39 | let url = build_url(&base_url, &route_parts); [INFO] [stdout] | ^^^^^^^^^ help: change this to: `base_url` [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/main.rs:141:76 [INFO] [stdout] | [INFO] [stdout] 141 | let start_index = args.iter().position(|arg| !arg.starts_with("--") && !arg.parse::().is_ok()).unwrap_or(0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `arg.parse::().is_err()` [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: use of `char::is_digit` with literal radix of 10 [INFO] [stdout] --> src/main.rs:148:47 [INFO] [stdout] | [INFO] [stdout] 148 | } else if !last_param.chars().any(|c| c.is_digit(10)) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `c.is_ascii_digit()` [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: redundant closure [INFO] [stdout] --> src/main.rs:169:136 [INFO] [stdout] | [INFO] [stdout] 169 | ...ap_err(|e| SerdeDeError::custom(e))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the associated function itself: `SerdeDeError::custom` [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: this `map_or` can be simplified [INFO] [stdout] --> src/main.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 175 | if sort_clause.as_ref().map_or(false, |(_, _)| args.contains(&"crop".to_string())) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] = note: `#[warn(clippy::unnecessary_map_or)]` on by default [INFO] [stdout] help: use `is_some_and` instead [INFO] [stdout] | [INFO] [stdout] 175 - if sort_clause.as_ref().map_or(false, |(_, _)| args.contains(&"crop".to_string())) { [INFO] [stdout] 175 + if sort_clause.as_ref().is_some_and(|(_, _)| args.contains(&"crop".to_string())) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/main.rs:191:40 [INFO] [stdout] | [INFO] [stdout] 191 | let a_value = get_nested_value(&a, key).unwrap_or(&default_value); [INFO] [stdout] | ^^ help: change this to: `a` [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/main.rs:192:40 [INFO] [stdout] | [INFO] [stdout] 192 | let b_value = get_nested_value(&b, key).unwrap_or(&default_value); [INFO] [stdout] | ^^ help: change this to: `b` [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 27.68s [INFO] running `Command { std: "docker" "inspect" "384e2dd2e13160bdc6a3d03db19d3846a0f80a34d7c684eda0b69394fdeab9fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "384e2dd2e13160bdc6a3d03db19d3846a0f80a34d7c684eda0b69394fdeab9fc", kill_on_drop: false }` [INFO] [stdout] 384e2dd2e13160bdc6a3d03db19d3846a0f80a34d7c684eda0b69394fdeab9fc