[INFO] cloning repository https://github.com/UnbreakableMJ/mjventoy-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/UnbreakableMJ/mjventoy-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnbreakableMJ%2Fmjventoy-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnbreakableMJ%2Fmjventoy-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ccaaa786f0913e8a56e1b015fd00949ed9311981 [INFO] linting UnbreakableMJ/mjventoy-rs against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUnbreakableMJ%2Fmjventoy-rs" "/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/UnbreakableMJ/mjventoy-rs [INFO] finished tweaking git repo https://github.com/UnbreakableMJ/mjventoy-rs [INFO] tweaked toml for git repo https://github.com/UnbreakableMJ/mjventoy-rs written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/UnbreakableMJ/mjventoy-rs 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/UnbreakableMJ/mjventoy-rs 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] Downloading crates ... [INFO] [stderr] Downloaded time-core v0.1.7 [INFO] [stderr] Downloaded zmij v1.0.15 [INFO] [stderr] Downloaded time v0.3.45 [INFO] [stderr] Downloaded cc v1.2.53 [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] 885034de104941657ef8bd0e581a77772ab868dc9d5810430832f637695a0027 [INFO] running `Command { std: "docker" "start" "-a" "885034de104941657ef8bd0e581a77772ab868dc9d5810430832f637695a0027", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "885034de104941657ef8bd0e581a77772ab868dc9d5810430832f637695a0027", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "885034de104941657ef8bd0e581a77772ab868dc9d5810430832f637695a0027", kill_on_drop: false }` [INFO] [stdout] 885034de104941657ef8bd0e581a77772ab868dc9d5810430832f637695a0027 [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] 8d5ca5d22eea7805c7857f0fecf2b5a3c3d36cede7d318d7c2fd84690c484dce [INFO] running `Command { std: "docker" "start" "-a" "8d5ca5d22eea7805c7857f0fecf2b5a3c3d36cede7d318d7c2fd84690c484dce", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.105 [INFO] [stderr] Compiling quote v1.0.43 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Checking bitflags v2.10.0 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Checking foldhash v0.2.0 [INFO] [stderr] Checking itertools v0.14.0 [INFO] [stderr] Checking hashbrown v0.16.1 [INFO] [stderr] Checking castaway v0.2.4 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Compiling indoc v2.0.7 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Checking unicode-segmentation v1.12.0 [INFO] [stderr] Checking ryu v1.0.22 [INFO] [stderr] Compiling instability v0.3.11 [INFO] [stderr] Checking compact_str v0.9.0 [INFO] [stderr] Compiling convert_case v0.10.0 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking log v0.4.29 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking lru v0.16.3 [INFO] [stderr] Checking deranged v0.5.5 [INFO] [stderr] Checking num_threads v0.1.7 [INFO] [stderr] Checking linux-raw-sys v0.11.0 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Compiling litrs v1.0.0 [INFO] [stderr] Checking time-core v0.1.7 [INFO] [stderr] Checking anstyle-parse v0.2.7 [INFO] [stderr] Checking signal-hook-mio v0.2.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking line-clipping v0.3.5 [INFO] [stderr] Checking is_terminal_polyfill v1.70.2 [INFO] [stderr] Compiling zmij v1.0.15 [INFO] [stderr] Compiling portable-atomic v1.13.0 [INFO] [stderr] Checking anstyle-query v1.1.5 [INFO] [stderr] Checking colorchoice v1.0.4 [INFO] [stderr] Checking anstyle v1.0.13 [INFO] [stderr] Compiling document-features v0.2.12 [INFO] [stderr] Checking unicode-truncate v2.0.1 [INFO] [stderr] Checking serde_core v1.0.228 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Checking anstream v0.6.21 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking clap_lex v0.7.7 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Checking clap_builder v4.5.54 [INFO] [stderr] Checking console v0.16.2 [INFO] [stderr] Checking unit-prefix v0.5.2 [INFO] [stderr] Checking memchr v2.7.6 [INFO] [stderr] Checking iana-time-zone v0.1.64 [INFO] [stderr] Checking time v0.3.45 [INFO] [stderr] Checking indicatif v0.18.3 [INFO] [stderr] Checking chrono v0.4.43 [INFO] [stderr] Compiling darling_core v0.23.0 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Compiling derive_more-impl v2.1.1 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Checking derive_more v2.1.1 [INFO] [stderr] Checking crossterm v0.29.0 [INFO] [stderr] Checking kasuari v0.4.11 [INFO] [stderr] Checking clap v4.5.54 [INFO] [stderr] Checking strum v0.27.2 [INFO] [stderr] Checking ratatui-core v0.1.0 [INFO] [stderr] Compiling darling_macro v0.23.0 [INFO] [stderr] Compiling darling v0.23.0 [INFO] [stderr] Checking ratatui-widgets v0.3.0 [INFO] [stderr] Checking ratatui-crossterm v0.1.0 [INFO] [stderr] Checking ratatui-macros v0.7.0 [INFO] [stderr] Checking ratatui v0.30.0 [INFO] [stderr] Checking mjventoy-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: name `MBR` contains a capitalized acronym [INFO] [stdout] --> src/executor.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | MBR, [INFO] [stdout] | ^^^ help: consider making the acronym lowercase, except the initial letter: `Mbr` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] = note: `#[warn(clippy::upper_case_acronyms)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `GPT` contains a capitalized acronym [INFO] [stdout] --> src/executor.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | GPT, [INFO] [stdout] | ^^^ help: consider making the acronym lowercase, except the initial letter: `Gpt` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/executor.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 182 | if !fs::metadata(&tool).is_ok() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `fs::metadata(&tool).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: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/tui/input.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | / if app.selected_auth_idx < app.auth_tools.len() - 1 { [INFO] [stdout] 27 | | app.selected_auth_idx += 1; [INFO] [stdout] 28 | | } [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] 25 ~ KeyCode::Char('j') | KeyCode::Down [INFO] [stdout] 26 ~ if app.selected_auth_idx < app.auth_tools.len() - 1 => { [INFO] [stdout] 27 | app.selected_auth_idx += 1; [INFO] [stdout] 28 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/tui/input.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | / if app.selected_auth_idx > 0 { [INFO] [stdout] 32 | | app.selected_auth_idx -= 1; [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_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 30 ~ KeyCode::Char('k') | KeyCode::Up [INFO] [stdout] 31 ~ if app.selected_auth_idx > 0 => { [INFO] [stdout] 32 | app.selected_auth_idx -= 1; [INFO] [stdout] 33 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/tui/input.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | / if !app.devices.is_empty() && app.selected_device_idx < app.devices.len() - 1 { [INFO] [stdout] 46 | | app.selected_device_idx += 1; [INFO] [stdout] 47 | | } [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] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 44 ~ KeyCode::Char('j') | KeyCode::Down [INFO] [stdout] 45 ~ if !app.devices.is_empty() && app.selected_device_idx < app.devices.len() - 1 => { [INFO] [stdout] 46 | app.selected_device_idx += 1; [INFO] [stdout] 47 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/tui/input.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | / if app.selected_device_idx > 0 { [INFO] [stdout] 51 | | app.selected_device_idx -= 1; [INFO] [stdout] 52 | | } [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] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 49 ~ KeyCode::Char('k') | KeyCode::Up [INFO] [stdout] 50 ~ if app.selected_device_idx > 0 => { [INFO] [stdout] 51 | app.selected_device_idx -= 1; [INFO] [stdout] 52 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/tui/input.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | / if !app.devices.is_empty() { [INFO] [stdout] 56 | | app.state = AppState::Configuration; [INFO] [stdout] 57 | | } [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] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 54 ~ KeyCode::Enter [INFO] [stdout] 55 ~ if !app.devices.is_empty() => { [INFO] [stdout] 56 | app.state = AppState::Configuration; [INFO] [stdout] 57 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/tui/input.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | / if app.selected_config_idx < 4 { [INFO] [stdout] 67 | | app.selected_config_idx += 1; [INFO] [stdout] 68 | | } [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] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 65 ~ KeyCode::Char('j') | KeyCode::Down [INFO] [stdout] 66 ~ if app.selected_config_idx < 4 => { [INFO] [stdout] 67 | app.selected_config_idx += 1; [INFO] [stdout] 68 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/tui/input.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | / if app.selected_config_idx > 0 { [INFO] [stdout] 72 | | app.selected_config_idx -= 1; [INFO] [stdout] 73 | | } [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] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 70 ~ KeyCode::Char('k') | KeyCode::Up [INFO] [stdout] 71 ~ if app.selected_config_idx > 0 => { [INFO] [stdout] 72 | app.selected_config_idx -= 1; [INFO] [stdout] 73 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | / if event::poll(Duration::from_millis(50))? { [INFO] [stdout] 175 | | if let Event::Key(key) = event::read()? { [INFO] [stdout] 176 | | if let KeyCode::Char('q') = key.code { [INFO] [stdout] 177 | | return Ok(()); [INFO] [stdout] ... | [INFO] [stdout] 185 | | } [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] 174 ~ if event::poll(Duration::from_millis(50))? [INFO] [stdout] 175 ~ && let Event::Key(key) = event::read()? { [INFO] [stdout] 176 | if let KeyCode::Char('q') = key.code { [INFO] [stdout] ... [INFO] [stdout] 183 | } [INFO] [stdout] 184 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `MBR` contains a capitalized acronym [INFO] [stdout] --> src/executor.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | MBR, [INFO] [stdout] | ^^^ help: consider making the acronym lowercase, except the initial letter: `Mbr` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] = note: `#[warn(clippy::upper_case_acronyms)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `GPT` contains a capitalized acronym [INFO] [stdout] --> src/executor.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | GPT, [INFO] [stdout] | ^^^ help: consider making the acronym lowercase, except the initial letter: `Gpt` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/executor.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 182 | if !fs::metadata(&tool).is_ok() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `fs::metadata(&tool).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: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/tui/input.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | / if app.selected_auth_idx < app.auth_tools.len() - 1 { [INFO] [stdout] 27 | | app.selected_auth_idx += 1; [INFO] [stdout] 28 | | } [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] 25 ~ KeyCode::Char('j') | KeyCode::Down [INFO] [stdout] 26 ~ if app.selected_auth_idx < app.auth_tools.len() - 1 => { [INFO] [stdout] 27 | app.selected_auth_idx += 1; [INFO] [stdout] 28 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/tui/input.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 31 | / if app.selected_auth_idx > 0 { [INFO] [stdout] 32 | | app.selected_auth_idx -= 1; [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_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 30 ~ KeyCode::Char('k') | KeyCode::Up [INFO] [stdout] 31 ~ if app.selected_auth_idx > 0 => { [INFO] [stdout] 32 | app.selected_auth_idx -= 1; [INFO] [stdout] 33 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/tui/input.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | / if !app.devices.is_empty() && app.selected_device_idx < app.devices.len() - 1 { [INFO] [stdout] 46 | | app.selected_device_idx += 1; [INFO] [stdout] 47 | | } [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] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 44 ~ KeyCode::Char('j') | KeyCode::Down [INFO] [stdout] 45 ~ if !app.devices.is_empty() && app.selected_device_idx < app.devices.len() - 1 => { [INFO] [stdout] 46 | app.selected_device_idx += 1; [INFO] [stdout] 47 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/tui/input.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | / if app.selected_device_idx > 0 { [INFO] [stdout] 51 | | app.selected_device_idx -= 1; [INFO] [stdout] 52 | | } [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] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 49 ~ KeyCode::Char('k') | KeyCode::Up [INFO] [stdout] 50 ~ if app.selected_device_idx > 0 => { [INFO] [stdout] 51 | app.selected_device_idx -= 1; [INFO] [stdout] 52 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/tui/input.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | / if !app.devices.is_empty() { [INFO] [stdout] 56 | | app.state = AppState::Configuration; [INFO] [stdout] 57 | | } [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] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 54 ~ KeyCode::Enter [INFO] [stdout] 55 ~ if !app.devices.is_empty() => { [INFO] [stdout] 56 | app.state = AppState::Configuration; [INFO] [stdout] 57 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/tui/input.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | / if app.selected_config_idx < 4 { [INFO] [stdout] 67 | | app.selected_config_idx += 1; [INFO] [stdout] 68 | | } [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] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 65 ~ KeyCode::Char('j') | KeyCode::Down [INFO] [stdout] 66 ~ if app.selected_config_idx < 4 => { [INFO] [stdout] 67 | app.selected_config_idx += 1; [INFO] [stdout] 68 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/tui/input.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | / if app.selected_config_idx > 0 { [INFO] [stdout] 72 | | app.selected_config_idx -= 1; [INFO] [stdout] 73 | | } [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] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 70 ~ KeyCode::Char('k') | KeyCode::Up [INFO] [stdout] 71 ~ if app.selected_config_idx > 0 => { [INFO] [stdout] 72 | app.selected_config_idx -= 1; [INFO] [stdout] 73 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | / if event::poll(Duration::from_millis(50))? { [INFO] [stdout] 175 | | if let Event::Key(key) = event::read()? { [INFO] [stdout] 176 | | if let KeyCode::Char('q') = key.code { [INFO] [stdout] 177 | | return Ok(()); [INFO] [stdout] ... | [INFO] [stdout] 185 | | } [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] 174 ~ if event::poll(Duration::from_millis(50))? [INFO] [stdout] 175 ~ && let Event::Key(key) = event::read()? { [INFO] [stdout] 176 | if let KeyCode::Char('q') = key.code { [INFO] [stdout] ... [INFO] [stdout] 183 | } [INFO] [stdout] 184 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 42.68s [INFO] running `Command { std: "docker" "inspect" "8d5ca5d22eea7805c7857f0fecf2b5a3c3d36cede7d318d7c2fd84690c484dce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d5ca5d22eea7805c7857f0fecf2b5a3c3d36cede7d318d7c2fd84690c484dce", kill_on_drop: false }` [INFO] [stdout] 8d5ca5d22eea7805c7857f0fecf2b5a3c3d36cede7d318d7c2fd84690c484dce