[INFO] cloning repository https://github.com/yen223/hotpot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yen223/hotpot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyen223%2Fhotpot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyen223%2Fhotpot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b243828e00de7ede9a9b66d1cf20d2350a1d519b [INFO] linting yen223/hotpot against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyen223%2Fhotpot" "/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/yen223/hotpot [INFO] finished tweaking git repo https://github.com/yen223/hotpot [INFO] tweaked toml for git repo https://github.com/yen223/hotpot written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/yen223/hotpot 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/yen223/hotpot 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 g2poly v1.2.2 [INFO] [stderr] Downloaded avif-serialize v0.8.5 [INFO] [stderr] Downloaded g2gen v1.2.2 [INFO] [stderr] Downloaded zune-jpeg v0.4.20 [INFO] [stderr] Downloaded checked_int_cast v1.0.0 [INFO] [stderr] Downloaded qrcode v0.12.0 [INFO] [stderr] Downloaded weezl v0.1.9 [INFO] [stderr] Downloaded rqrr v0.10.0 [INFO] [stderr] Downloaded cc v1.2.23 [INFO] [stderr] Downloaded g2p v1.2.2 [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] 58db1f7c4086f02ae3a8481c8193bfc7ff669659a6a16c9fbdf703ef2c7763e0 [INFO] running `Command { std: "docker" "start" "-a" "58db1f7c4086f02ae3a8481c8193bfc7ff669659a6a16c9fbdf703ef2c7763e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "58db1f7c4086f02ae3a8481c8193bfc7ff669659a6a16c9fbdf703ef2c7763e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58db1f7c4086f02ae3a8481c8193bfc7ff669659a6a16c9fbdf703ef2c7763e0", kill_on_drop: false }` [INFO] [stdout] 58db1f7c4086f02ae3a8481c8193bfc7ff669659a6a16c9fbdf703ef2c7763e0 [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] 1698a3304404b35c394ac5ece0e348be6bc78647e8f0e50807cba28bc78fddec [INFO] running `Command { std: "docker" "start" "-a" "1698a3304404b35c394ac5ece0e348be6bc78647e8f0e50807cba28bc78fddec", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Checking smallvec v1.15.0 [INFO] [stderr] Compiling hashbrown v0.15.3 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Compiling toml_datetime v0.6.9 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking bitflags v2.9.0 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling built v0.7.7 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking block-padding v0.3.3 [INFO] [stderr] Checking event-listener v5.4.0 [INFO] [stderr] Checking futures-lite v2.6.0 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Checking miniz_oxide v0.8.8 [INFO] [stderr] Checking bytemuck v1.23.0 [INFO] [stderr] Checking waker-fn v1.2.0 [INFO] [stderr] Checking async-task v4.7.1 [INFO] [stderr] Checking fastrand v1.9.0 [INFO] [stderr] Checking event-listener-strategy v0.5.4 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling rustix v0.37.28 [INFO] [stderr] Checking piper v0.2.4 [INFO] [stderr] Checking futures-lite v1.13.0 [INFO] [stderr] Checking async-channel v2.3.1 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Checking maybe-rayon v0.1.1 [INFO] [stderr] Checking async-lock v2.8.0 [INFO] [stderr] Checking flate2 v1.1.1 [INFO] [stderr] Compiling rav1e v0.7.1 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Compiling async-fs v1.6.0 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Checking quick-error v2.0.1 [INFO] [stderr] Checking imgref v1.11.0 [INFO] [stderr] Checking new_debug_unreachable v1.0.6 [INFO] [stderr] Checking bitstream-io v2.6.0 [INFO] [stderr] Checking weezl v0.1.9 [INFO] [stderr] Compiling noop_proc_macro v0.3.0 [INFO] [stderr] Checking linux-raw-sys v0.3.8 [INFO] [stderr] Checking loop9 v0.1.5 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking blocking v1.6.1 [INFO] [stderr] Checking fdeflate v0.3.7 [INFO] [stderr] Checking zune-inflate v0.2.54 [INFO] [stderr] Checking avif-serialize v0.8.5 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking half v2.6.0 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Checking jpeg-decoder v0.3.1 [INFO] [stderr] Checking rgb v0.8.52 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Checking lebe v0.5.2 [INFO] [stderr] Checking zune-core v0.4.12 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Checking zune-jpeg v0.4.20 [INFO] [stderr] Checking exr v1.73.0 [INFO] [stderr] Checking image-webp v0.2.3 [INFO] [stderr] Compiling convert_case v0.7.1 [INFO] [stderr] Checking png v0.17.16 [INFO] [stderr] Checking gif v0.13.1 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Checking tiff v0.9.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking nix v0.26.4 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking xdg-home v1.3.0 [INFO] [stderr] Checking async-executor v1.13.2 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking async-broadcast v0.5.1 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking ordered-stream v0.2.0 [INFO] [stderr] Compiling g2poly v1.2.2 [INFO] [stderr] Checking linux-raw-sys v0.4.15 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking colorchoice v1.0.3 [INFO] [stderr] Checking anstyle-query v1.1.2 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Checking hkdf v0.12.4 [INFO] [stderr] Checking signal-hook v0.3.18 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Checking cbc v0.1.2 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling litrs v0.4.1 [INFO] [stderr] Checking clap_lex v0.7.4 [INFO] [stderr] Checking x11rb-protocol v0.13.1 [INFO] [stderr] Checking image v0.23.14 [INFO] [stderr] Checking signal-hook-mio v0.2.4 [INFO] [stderr] Checking clap_builder v4.5.37 [INFO] [stderr] Checking lru v0.12.5 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking linux-keyutils v0.2.4 [INFO] [stderr] Checking rtoolbox v0.0.3 [INFO] [stderr] Checking dirs-sys v0.3.7 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking checked_int_cast v1.0.0 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking directories v4.0.1 [INFO] [stderr] Checking rpassword v7.4.0 [INFO] [stderr] Checking fuzzy-matcher v0.3.7 [INFO] [stderr] Checking base32 v0.4.0 [INFO] [stderr] Compiling document-features v0.2.11 [INFO] [stderr] Compiling zvariant_utils v1.0.1 [INFO] [stderr] Checking qrcode v0.12.0 [INFO] [stderr] Checking tempfile v3.20.0 [INFO] [stderr] Compiling zvariant_derive v3.15.2 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zbus_macros v3.15.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling equator-macro v0.4.2 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling enumflags2_derive v0.7.11 [INFO] [stderr] Compiling profiling-procmacros v1.0.17 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Checking profiling v1.0.17 [INFO] [stderr] Compiling async-recursion v1.1.1 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling g2gen v1.2.2 [INFO] [stderr] Checking equator v0.4.2 [INFO] [stderr] Compiling clap_derive v4.5.32 [INFO] [stderr] Checking x11rb v0.13.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking aligned-vec v0.6.4 [INFO] [stderr] Checking g2p v1.2.2 [INFO] [stderr] Checking v_frame v0.3.9 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking derive_more v2.0.1 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking crossterm v0.29.0 [INFO] [stderr] Checking av1-grain v0.2.4 [INFO] [stderr] Checking thiserror v1.0.69 [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_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking clap v4.5.37 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [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 enumflags2 v0.7.11 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking zvariant v3.15.2 [INFO] [stderr] Checking ravif v0.11.20 [INFO] [stderr] Checking image v0.25.6 [INFO] [stderr] Checking zbus_names v2.6.1 [INFO] [stderr] Checking zbus v3.15.2 [INFO] [stderr] Checking arboard v3.5.0 [INFO] [stderr] Checking rqrr v0.10.0 [INFO] [stderr] Checking secret-service v3.1.0 [INFO] [stderr] Checking keyring v2.3.3 [INFO] [stderr] Checking hotpot v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> tests/integration/mod.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 126 | / if let Ok(content) = fs::read_to_string(file_path) { [INFO] [stdout] 127 | | if let Ok(json) = serde_json::from_str::(&content) { [INFO] [stdout] 128 | | if let Some(accounts) = json.get("accounts").and_then(|a| a.as_array()) { [INFO] [stdout] 129 | | return accounts [INFO] [stdout] ... | [INFO] [stdout] 134 | | } [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] 126 ~ if let Ok(content) = fs::read_to_string(file_path) [INFO] [stdout] 127 ~ && let Ok(json) = serde_json::from_str::(&content) { [INFO] [stdout] 128 | if let Some(accounts) = json.get("accounts").and_then(|a| a.as_array()) { [INFO] [stdout] ... [INFO] [stdout] 132 | } [INFO] [stdout] 133 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> tests/integration/mod.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | / if let Ok(json) = serde_json::from_str::(&content) { [INFO] [stdout] 128 | | if let Some(accounts) = json.get("accounts").and_then(|a| a.as_array()) { [INFO] [stdout] 129 | | return accounts [INFO] [stdout] 130 | | .iter() [INFO] [stdout] ... | [INFO] [stdout] 133 | | } [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] 127 ~ if let Ok(json) = serde_json::from_str::(&content) [INFO] [stdout] 128 ~ && let Some(accounts) = json.get("accounts").and_then(|a| a.as_array()) { [INFO] [stdout] 129 | return accounts [INFO] [stdout] 130 | .iter() [INFO] [stdout] 131 | .any(|acc| acc.get("name").and_then(|n| n.as_str()) == Some(account_name)); [INFO] [stdout] 132 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> tests/integration/mod.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 139 | / if let Ok(content) = fs::read_to_string(file_path) { [INFO] [stdout] 140 | | if let Ok(json) = serde_json::from_str::(&content) { [INFO] [stdout] 141 | | if let Some(accounts) = json.get("accounts").and_then(|a| a.as_array()) { [INFO] [stdout] 142 | | return accounts.len(); [INFO] [stdout] ... | [INFO] [stdout] 145 | | } [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] 139 ~ if let Ok(content) = fs::read_to_string(file_path) [INFO] [stdout] 140 ~ && let Ok(json) = serde_json::from_str::(&content) { [INFO] [stdout] 141 | if let Some(accounts) = json.get("accounts").and_then(|a| a.as_array()) { [INFO] [stdout] 142 | return accounts.len(); [INFO] [stdout] 143 | } [INFO] [stdout] 144 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> tests/integration/mod.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | / if let Ok(json) = serde_json::from_str::(&content) { [INFO] [stdout] 141 | | if let Some(accounts) = json.get("accounts").and_then(|a| a.as_array()) { [INFO] [stdout] 142 | | return accounts.len(); [INFO] [stdout] 143 | | } [INFO] [stdout] 144 | | } [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] 140 ~ if let Ok(json) = serde_json::from_str::(&content) [INFO] [stdout] 141 ~ && let Some(accounts) = json.get("accounts").and_then(|a| a.as_array()) { [INFO] [stdout] 142 | return accounts.len(); [INFO] [stdout] 143 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/dashboard.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | / if let Some(&copied_time) = self.accounts.get(account_name) { [INFO] [stdout] 303 | | if let Ok(elapsed) = SystemTime::now().duration_since(copied_time) { [INFO] [stdout] 304 | | return elapsed < Duration::from_secs(2); // Show "Copied!" for 2 seconds [INFO] [stdout] 305 | | } [INFO] [stdout] 306 | | } [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] 302 ~ if let Some(&copied_time) = self.accounts.get(account_name) [INFO] [stdout] 303 ~ && let Ok(elapsed) = SystemTime::now().duration_since(copied_time) { [INFO] [stdout] 304 | return elapsed < Duration::from_secs(2); // Show "Copied!" for 2 seconds [INFO] [stdout] 305 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/dashboard.rs:495:17 [INFO] [stdout] | [INFO] [stdout] 495 | / if *selected > 0 { [INFO] [stdout] 496 | | *selected -= 1; [INFO] [stdout] 497 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 494 ~ }) [INFO] [stdout] 495 ~ if *selected > 0 => { [INFO] [stdout] 496 | *selected -= 1; [INFO] [stdout] 497 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/dashboard.rs:652:5 [INFO] [stdout] | [INFO] [stdout] 652 | / if let Ok(secret) = prompt_password("Enter the Base32 secret: ") { [INFO] [stdout] 653 | | if let Ok(()) = save_account(name, &secret, file_path) { [INFO] [stdout] 654 | | queue!(stdout, Print(format!("Added account: {}", name)))?; [INFO] [stdout] 655 | | } [INFO] [stdout] 656 | | } [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] 652 ~ if let Ok(secret) = prompt_password("Enter the Base32 secret: ") [INFO] [stdout] 653 ~ && let Ok(()) = save_account(name, &secret, file_path) { [INFO] [stdout] 654 | queue!(stdout, Print(format!("Added account: {}", name)))?; [INFO] [stdout] 655 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/dashboard.rs:715:5 [INFO] [stdout] | [INFO] [stdout] 715 | / if let Ok(code) = generate_totp(account, duration) { [INFO] [stdout] 716 | | if let Ok(mut clipboard) = Clipboard::new() { [INFO] [stdout] 717 | | let _ = clipboard.set_text(format!("{}", code)); [INFO] [stdout] 718 | | copied_state.mark_copied(&account.name); [INFO] [stdout] 719 | | } [INFO] [stdout] 720 | | } [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] 715 ~ if let Ok(code) = generate_totp(account, duration) [INFO] [stdout] 716 ~ && let Ok(mut clipboard) = Clipboard::new() { [INFO] [stdout] 717 | let _ = clipboard.set_text(format!("{}", code)); [INFO] [stdout] 718 | copied_state.mark_copied(&account.name); [INFO] [stdout] 719 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/dashboard.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | / if let Some(&copied_time) = self.accounts.get(account_name) { [INFO] [stdout] 303 | | if let Ok(elapsed) = SystemTime::now().duration_since(copied_time) { [INFO] [stdout] 304 | | return elapsed < Duration::from_secs(2); // Show "Copied!" for 2 seconds [INFO] [stdout] 305 | | } [INFO] [stdout] 306 | | } [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] 302 ~ if let Some(&copied_time) = self.accounts.get(account_name) [INFO] [stdout] 303 ~ && let Ok(elapsed) = SystemTime::now().duration_since(copied_time) { [INFO] [stdout] 304 | return elapsed < Duration::from_secs(2); // Show "Copied!" for 2 seconds [INFO] [stdout] 305 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/dashboard.rs:495:17 [INFO] [stdout] | [INFO] [stdout] 495 | / if *selected > 0 { [INFO] [stdout] 496 | | *selected -= 1; [INFO] [stdout] 497 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 494 ~ }) [INFO] [stdout] 495 ~ if *selected > 0 => { [INFO] [stdout] 496 | *selected -= 1; [INFO] [stdout] 497 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/dashboard.rs:652:5 [INFO] [stdout] | [INFO] [stdout] 652 | / if let Ok(secret) = prompt_password("Enter the Base32 secret: ") { [INFO] [stdout] 653 | | if let Ok(()) = save_account(name, &secret, file_path) { [INFO] [stdout] 654 | | queue!(stdout, Print(format!("Added account: {}", name)))?; [INFO] [stdout] 655 | | } [INFO] [stdout] 656 | | } [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] 652 ~ if let Ok(secret) = prompt_password("Enter the Base32 secret: ") [INFO] [stdout] 653 ~ && let Ok(()) = save_account(name, &secret, file_path) { [INFO] [stdout] 654 | queue!(stdout, Print(format!("Added account: {}", name)))?; [INFO] [stdout] 655 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/dashboard.rs:715:5 [INFO] [stdout] | [INFO] [stdout] 715 | / if let Ok(code) = generate_totp(account, duration) { [INFO] [stdout] 716 | | if let Ok(mut clipboard) = Clipboard::new() { [INFO] [stdout] 717 | | let _ = clipboard.set_text(format!("{}", code)); [INFO] [stdout] 718 | | copied_state.mark_copied(&account.name); [INFO] [stdout] 719 | | } [INFO] [stdout] 720 | | } [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] 715 ~ if let Ok(code) = generate_totp(account, duration) [INFO] [stdout] 716 ~ && let Ok(mut clipboard) = Clipboard::new() { [INFO] [stdout] 717 | let _ = clipboard.set_text(format!("{}", code)); [INFO] [stdout] 718 | copied_state.mark_copied(&account.name); [INFO] [stdout] 719 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:251:5 [INFO] [stdout] | [INFO] [stdout] 251 | / if let Some(parent) = path_obj.parent() { [INFO] [stdout] 252 | | if !parent.exists() { [INFO] [stdout] 253 | | fs::create_dir_all(parent).map_err(|e| { [INFO] [stdout] 254 | | AppError::new(format!( [INFO] [stdout] ... | [INFO] [stdout] 261 | | } [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] 251 ~ if let Some(parent) = path_obj.parent() [INFO] [stdout] 252 ~ && !parent.exists() { [INFO] [stdout] 253 | fs::create_dir_all(parent).map_err(|e| { [INFO] [stdout] ... [INFO] [stdout] 259 | })?; [INFO] [stdout] 260 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:289:5 [INFO] [stdout] | [INFO] [stdout] 289 | / if let Some(path) = file_path { [INFO] [stdout] 290 | | if let Err(err) = validate_file_path(path) { [INFO] [stdout] 291 | | handle_error(err); [INFO] [stdout] 292 | | std::process::exit(1); [INFO] [stdout] 293 | | } [INFO] [stdout] 294 | | } [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] 289 ~ if let Some(path) = file_path [INFO] [stdout] 290 ~ && let Err(err) = validate_file_path(path) { [INFO] [stdout] 291 | handle_error(err); [INFO] [stdout] 292 | std::process::exit(1); [INFO] [stdout] 293 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:251:5 [INFO] [stdout] | [INFO] [stdout] 251 | / if let Some(parent) = path_obj.parent() { [INFO] [stdout] 252 | | if !parent.exists() { [INFO] [stdout] 253 | | fs::create_dir_all(parent).map_err(|e| { [INFO] [stdout] 254 | | AppError::new(format!( [INFO] [stdout] ... | [INFO] [stdout] 261 | | } [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] 251 ~ if let Some(parent) = path_obj.parent() [INFO] [stdout] 252 ~ && !parent.exists() { [INFO] [stdout] 253 | fs::create_dir_all(parent).map_err(|e| { [INFO] [stdout] ... [INFO] [stdout] 259 | })?; [INFO] [stdout] 260 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:289:5 [INFO] [stdout] | [INFO] [stdout] 289 | / if let Some(path) = file_path { [INFO] [stdout] 290 | | if let Err(err) = validate_file_path(path) { [INFO] [stdout] 291 | | handle_error(err); [INFO] [stdout] 292 | | std::process::exit(1); [INFO] [stdout] 293 | | } [INFO] [stdout] 294 | | } [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] 289 ~ if let Some(path) = file_path [INFO] [stdout] 290 ~ && let Err(err) = validate_file_path(path) { [INFO] [stdout] 291 | handle_error(err); [INFO] [stdout] 292 | std::process::exit(1); [INFO] [stdout] 293 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 08s [INFO] running `Command { std: "docker" "inspect" "1698a3304404b35c394ac5ece0e348be6bc78647e8f0e50807cba28bc78fddec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1698a3304404b35c394ac5ece0e348be6bc78647e8f0e50807cba28bc78fddec", kill_on_drop: false }` [INFO] [stdout] 1698a3304404b35c394ac5ece0e348be6bc78647e8f0e50807cba28bc78fddec