[INFO] cloning repository https://github.com/openwalrus/walrus [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/openwalrus/walrus" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fopenwalrus%2Fwalrus", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fopenwalrus%2Fwalrus'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 10475d1452de609a7637ef49d04f41eb23a1a595 [INFO] linting openwalrus/walrus/10475d1452de609a7637ef49d04f41eb23a1a595 against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fopenwalrus%2Fwalrus" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-3-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/openwalrus/walrus [INFO] finished tweaking git repo https://github.com/openwalrus/walrus [INFO] tweaked toml for git repo https://github.com/openwalrus/walrus written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/openwalrus/walrus 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/openwalrus/walrus 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 rustyline-derive v0.11.1 [INFO] [stderr] Downloaded crabtalk-core v0.0.6 [INFO] [stderr] Downloaded rc-box v1.3.0 [INFO] [stderr] Downloaded stacker v0.1.23 [INFO] [stderr] Downloaded scraper v0.22.0 [INFO] [stderr] Downloaded crabtalk-provider v0.0.6 [INFO] [stderr] Downloaded rustyline v15.0.0 [INFO] [stderr] Downloaded ar_archive_writer v0.5.1 [INFO] [stderr] Downloaded teloxide v0.17.0 [INFO] [stderr] Downloaded process-wrap v9.1.0 [INFO] [stderr] Downloaded dptree v0.5.1 [INFO] [stderr] Downloaded psm v0.1.30 [INFO] [stderr] Downloaded shell-words v1.1.1 [INFO] [stderr] Downloaded rmcp-macros v0.16.0 [INFO] [stderr] Downloaded nix v0.31.2 [INFO] [stderr] Downloaded rmcp v0.16.0 [INFO] [stderr] Downloaded teloxide-core v0.13.0 [INFO] [stderr] Downloaded openssl-src v300.5.5+3.5.5 [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] 676b986a16f813873c6e6751d546dfb6fbc33d7032b31459b0cd267c72265214 [INFO] running `Command { std: "docker" "start" "-a" "676b986a16f813873c6e6751d546dfb6fbc33d7032b31459b0cd267c72265214", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "676b986a16f813873c6e6751d546dfb6fbc33d7032b31459b0cd267c72265214", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "676b986a16f813873c6e6751d546dfb6fbc33d7032b31459b0cd267c72265214", kill_on_drop: false }` [INFO] [stdout] 676b986a16f813873c6e6751d546dfb6fbc33d7032b31459b0cd267c72265214 [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] 2b6594f975ba888922981b2b262b161f9d01f2df76a5985dc5952b72040a665b [INFO] running `Command { std: "docker" "start" "-a" "2b6594f975ba888922981b2b262b161f9d01f2df76a5985dc5952b72040a665b", kill_on_drop: false }` [INFO] [stderr] Checking bitflags v2.11.0 [INFO] [stderr] Checking futures-io v0.3.32 [INFO] [stderr] Compiling getrandom v0.4.2 [INFO] [stderr] Compiling rustix v1.1.4 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Compiling libc v0.2.182 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking indexmap v2.13.0 [INFO] [stderr] Compiling openssl-src v300.5.5+3.5.5 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Compiling bytes v1.11.1 [INFO] [stderr] Compiling linux-raw-sys v0.12.1 [INFO] [stderr] Compiling regex-syntax v0.8.10 [INFO] [stderr] Checking futures-util v0.3.32 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Compiling ref-cast v1.0.25 [INFO] [stderr] Compiling fixedbitset v0.5.7 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling ref-cast-impl v1.0.25 [INFO] [stderr] Compiling serde_derive_internals v0.29.1 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling petgraph v0.7.1 [INFO] [stderr] Compiling multimap v0.10.1 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking castaway v0.2.4 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking dyn-clone v1.0.20 [INFO] [stderr] Checking dirs-sys v0.5.0 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking chrono v0.4.44 [INFO] [stderr] Checking compact_str v0.8.1 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking ring v0.17.14 [INFO] [stderr] Checking dirs v6.0.0 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking crabtalk-core v0.0.6 [INFO] [stderr] Checking heck v0.5.0 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking tokio v1.50.0 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Compiling schemars_derive v1.2.1 [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking rand_core v0.9.5 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Compiling tempfile v3.26.0 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Compiling clap_derive v4.5.55 [INFO] [stderr] Checking toml_write v0.1.2 [INFO] [stderr] Checking winnow v0.7.15 [INFO] [stderr] Checking tracing-subscriber v0.3.22 [INFO] [stderr] Compiling phf_codegen v0.11.3 [INFO] [stderr] Compiling prost-derive v0.13.5 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Compiling darling_core v0.23.0 [INFO] [stderr] Compiling object v0.37.3 [INFO] [stderr] Checking phf_shared v0.11.3 [INFO] [stderr] Checking rustls-webpki v0.103.9 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling nix v0.31.2 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Compiling regex v1.12.3 [INFO] [stderr] Checking futures-executor v0.3.32 [INFO] [stderr] Checking schemars v1.2.1 [INFO] [stderr] Checking futures v0.3.32 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking rustls v0.23.37 [INFO] [stderr] Compiling phf_macros v0.11.3 [INFO] [stderr] Compiling darling_core v0.21.3 [INFO] [stderr] Compiling string_cache_codegen v0.5.4 [INFO] [stderr] Compiling erasable v1.3.0 [INFO] [stderr] Compiling rmcp v0.16.0 [INFO] [stderr] Checking phf v0.11.3 [INFO] [stderr] Checking dtoa v1.0.11 [INFO] [stderr] Checking clap v4.5.60 [INFO] [stderr] Checking dtoa-short v0.3.5 [INFO] [stderr] Checking string_cache v0.8.9 [INFO] [stderr] Compiling selectors v0.26.0 [INFO] [stderr] Compiling cssparser-macros v0.6.1 [INFO] [stderr] Compiling prost v0.13.5 [INFO] [stderr] Compiling markup5ever v0.14.1 [INFO] [stderr] Compiling stacker v0.1.23 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Compiling prost-types v0.13.5 [INFO] [stderr] Compiling pastey v0.2.1 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking cssparser v0.34.0 [INFO] [stderr] Checking signal-hook v0.3.18 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling match_token v0.1.0 [INFO] [stderr] Compiling pin-project-internal v1.1.11 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Compiling prost-build v0.13.5 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking tokio-stream v0.1.18 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking process-wrap v9.1.0 [INFO] [stderr] Compiling include_dir_macros v0.7.4 [INFO] [stderr] Checking h2 v0.4.13 [INFO] [stderr] Checking servo_arc v0.4.3 [INFO] [stderr] Checking linux-raw-sys v0.4.15 [INFO] [stderr] Compiling instability v0.3.11 [INFO] [stderr] Checking bytemuck v1.25.0 [INFO] [stderr] Compiling include_dir v0.7.4 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking html5ever v0.29.1 [INFO] [stderr] Checking signal-hook-mio v0.2.5 [INFO] [stderr] Checking rc-box v1.3.0 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Checking uuid v1.22.0 [INFO] [stderr] Checking rgb v0.8.53 [INFO] [stderr] Compiling darling_macro v0.23.0 [INFO] [stderr] Checking getopts v0.2.24 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Compiling darling_macro v0.21.3 [INFO] [stderr] Checking nibble_vec v0.1.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Checking pin-project v1.1.11 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling walrus-core v0.0.10 (/opt/rustwide/workdir/crates/core) [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling indoc v2.0.7 [INFO] [stderr] Checking takecell v0.1.1 [INFO] [stderr] Compiling darling v0.23.0 [INFO] [stderr] Compiling ar_archive_writer v0.5.1 [INFO] [stderr] Compiling rmcp-macros v0.16.0 [INFO] [stderr] Checking take_mut v0.2.2 [INFO] [stderr] Checking colored v3.1.1 [INFO] [stderr] Compiling darling v0.21.3 [INFO] [stderr] Checking endian-type v0.1.2 [INFO] [stderr] Checking ego-tree v0.10.0 [INFO] [stderr] Compiling serde_with_macros v3.17.0 [INFO] [stderr] Checking dptree v0.5.1 [INFO] [stderr] Checking radix_trie v0.2.1 [INFO] [stderr] Checking derive_more v1.0.0 [INFO] [stderr] Checking crossterm v0.28.1 [INFO] [stderr] Checking scraper v0.22.0 [INFO] [stderr] Checking fd-lock v4.0.4 [INFO] [stderr] Checking lru v0.12.5 [INFO] [stderr] Checking lru v0.14.0 [INFO] [stderr] Checking console v0.15.11 [INFO] [stderr] Compiling rustyline-derive v0.11.1 [INFO] [stderr] Checking cassowary v0.3.0 [INFO] [stderr] Checking home v0.5.12 [INFO] [stderr] Checking shell-words v1.1.1 [INFO] [stderr] Checking serde_with v3.17.0 [INFO] [stderr] Checking unicode-truncate v1.1.0 [INFO] [stderr] Compiling psm v0.1.30 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking dialoguer v0.11.0 [INFO] [stderr] Compiling aquamarine v0.6.0 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking ratatui v0.29.0 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking rustyline v15.0.0 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking walrus-socket v0.0.10 (/opt/rustwide/workdir/crates/socket) [INFO] [stderr] Checking walrus-tcp v0.0.10 (/opt/rustwide/workdir/crates/tcp) [INFO] [stderr] Checking walrus-gateway v0.0.10 (/opt/rustwide/workdir/crates/gateway) [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling native-tls v0.2.18 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.28 [INFO] [stderr] Checking crabtalk-provider v0.0.6 [INFO] [stderr] Checking teloxide-core v0.13.0 [INFO] [stderr] Checking walrus-search v0.0.10 (/opt/rustwide/workdir/apps/search) [INFO] [stderr] Checking walrus-model v0.0.10 (/opt/rustwide/workdir/crates/model) [INFO] [stderr] Checking walrus-daemon v0.0.10 (/opt/rustwide/workdir/crates/daemon) [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> crates/daemon/src/hook/system/task/mod.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | tasks.sort_by(|a, b| b.id.cmp(&a.id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] = note: `#[warn(clippy::unnecessary_sort_by)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 122 - tasks.sort_by(|a, b| b.id.cmp(&a.id)); [INFO] [stdout] 122 + tasks.sort_by_key(|b| std::cmp::Reverse(b.id)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> crates/daemon/src/hook/system/task/mod.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | tasks.sort_by(|a, b| b.id.cmp(&a.id)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by [INFO] [stdout] = note: `#[warn(clippy::unnecessary_sort_by)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 122 - tasks.sort_by(|a, b| b.id.cmp(&a.id)); [INFO] [stdout] 122 + tasks.sort_by_key(|b| std::cmp::Reverse(b.id)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking openwalrus v0.0.10 (/opt/rustwide/workdir/crates/cli) [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cli/src/cmd/auth/gateways.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | / if state.gateway_selected + 1 < state.gateways.len() { [INFO] [stdout] 37 | | state.gateway_selected += 1; [INFO] [stdout] 38 | | } [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] 35 ~ KeyCode::Down | KeyCode::Char('j') [INFO] [stdout] 36 ~ if state.gateway_selected + 1 < state.gateways.len() => { [INFO] [stdout] 37 | state.gateway_selected += 1; [INFO] [stdout] 38 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cli/src/cmd/auth/mcps.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | / if !state.mcps.is_empty() && state.mcp_selected < state.mcps.len() - 1 { [INFO] [stdout] 31 | | state.mcp_selected += 1; [INFO] [stdout] 32 | | state.mcp_env_selected = 0; [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] 29 ~ KeyCode::Down | KeyCode::Char('j') [INFO] [stdout] 30 ~ if !state.mcps.is_empty() && state.mcp_selected < state.mcps.len() - 1 => { [INFO] [stdout] 31 | state.mcp_selected += 1; [INFO] [stdout] 32 | state.mcp_env_selected = 0; [INFO] [stdout] 33 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cli/src/cmd/auth/mcps.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | / if !state.mcps.is_empty() { [INFO] [stdout] 54 | | state.mcps.remove(state.mcp_selected); [INFO] [stdout] 55 | | if state.mcp_selected >= state.mcps.len() && !state.mcps.is_empty() { [INFO] [stdout] 56 | | state.mcp_selected = state.mcps.len() - 1; [INFO] [stdout] ... | [INFO] [stdout] 59 | | state.status = String::from("MCP deleted"); [INFO] [stdout] 60 | | } [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] 52 ~ KeyCode::Char('d') | KeyCode::Delete [INFO] [stdout] 53 ~ if !state.mcps.is_empty() => { [INFO] [stdout] 54 | state.mcps.remove(state.mcp_selected); [INFO] [stdout] ... [INFO] [stdout] 59 | state.status = String::from("MCP deleted"); [INFO] [stdout] 60 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cli/src/cmd/auth/providers.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | / if tree_len > 0 && state.selected < tree_len - 1 { [INFO] [stdout] 51 | | state.selected += 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::Down | KeyCode::Char('j') [INFO] [stdout] 50 ~ if tree_len > 0 && state.selected < tree_len - 1 => { [INFO] [stdout] 51 | state.selected += 1; [INFO] [stdout] 52 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cli/src/cmd/auth/providers.rs:224:13 [INFO] [stdout] | [INFO] [stdout] 224 | / if state.preset_idx < PRESETS.len() - 1 { [INFO] [stdout] 225 | | state.preset_idx += 1; [INFO] [stdout] 226 | | } [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] 223 ~ KeyCode::Down | KeyCode::Char('j') [INFO] [stdout] 224 ~ if state.preset_idx < PRESETS.len() - 1 => { [INFO] [stdout] 225 | state.preset_idx += 1; [INFO] [stdout] 226 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cli/src/cmd/auth/gateways.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | / if state.gateway_selected + 1 < state.gateways.len() { [INFO] [stdout] 37 | | state.gateway_selected += 1; [INFO] [stdout] 38 | | } [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] 35 ~ KeyCode::Down | KeyCode::Char('j') [INFO] [stdout] 36 ~ if state.gateway_selected + 1 < state.gateways.len() => { [INFO] [stdout] 37 | state.gateway_selected += 1; [INFO] [stdout] 38 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cli/src/cmd/auth/mcps.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | / if !state.mcps.is_empty() && state.mcp_selected < state.mcps.len() - 1 { [INFO] [stdout] 31 | | state.mcp_selected += 1; [INFO] [stdout] 32 | | state.mcp_env_selected = 0; [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] 29 ~ KeyCode::Down | KeyCode::Char('j') [INFO] [stdout] 30 ~ if !state.mcps.is_empty() && state.mcp_selected < state.mcps.len() - 1 => { [INFO] [stdout] 31 | state.mcp_selected += 1; [INFO] [stdout] 32 | state.mcp_env_selected = 0; [INFO] [stdout] 33 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cli/src/cmd/auth/mcps.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | / if !state.mcps.is_empty() { [INFO] [stdout] 54 | | state.mcps.remove(state.mcp_selected); [INFO] [stdout] 55 | | if state.mcp_selected >= state.mcps.len() && !state.mcps.is_empty() { [INFO] [stdout] 56 | | state.mcp_selected = state.mcps.len() - 1; [INFO] [stdout] ... | [INFO] [stdout] 59 | | state.status = String::from("MCP deleted"); [INFO] [stdout] 60 | | } [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] 52 ~ KeyCode::Char('d') | KeyCode::Delete [INFO] [stdout] 53 ~ if !state.mcps.is_empty() => { [INFO] [stdout] 54 | state.mcps.remove(state.mcp_selected); [INFO] [stdout] ... [INFO] [stdout] 59 | state.status = String::from("MCP deleted"); [INFO] [stdout] 60 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cli/src/cmd/console/mod.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | / if len > 0 && state.selected < len - 1 { [INFO] [stdout] 137 | | state.selected += 1; [INFO] [stdout] 138 | | } [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] 135 ~ KeyCode::Down | KeyCode::Char('j') [INFO] [stdout] 136 ~ if len > 0 && state.selected < len - 1 => { [INFO] [stdout] 137 | state.selected += 1; [INFO] [stdout] 138 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cli/src/cmd/auth/providers.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | / if tree_len > 0 && state.selected < tree_len - 1 { [INFO] [stdout] 51 | | state.selected += 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::Down | KeyCode::Char('j') [INFO] [stdout] 50 ~ if tree_len > 0 && state.selected < tree_len - 1 => { [INFO] [stdout] 51 | state.selected += 1; [INFO] [stdout] 52 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cli/src/cmd/auth/providers.rs:224:13 [INFO] [stdout] | [INFO] [stdout] 224 | / if state.preset_idx < PRESETS.len() - 1 { [INFO] [stdout] 225 | | state.preset_idx += 1; [INFO] [stdout] 226 | | } [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] 223 ~ KeyCode::Down | KeyCode::Char('j') [INFO] [stdout] 224 ~ if state.preset_idx < PRESETS.len() - 1 => { [INFO] [stdout] 225 | state.preset_idx += 1; [INFO] [stdout] 226 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cli/src/cmd/console/mod.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | / if len > 0 && state.selected < len - 1 { [INFO] [stdout] 137 | | state.selected += 1; [INFO] [stdout] 138 | | } [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] 135 ~ KeyCode::Down | KeyCode::Char('j') [INFO] [stdout] 136 ~ if len > 0 && state.selected < len - 1 => { [INFO] [stdout] 137 | state.selected += 1; [INFO] [stdout] 138 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cli/src/tui.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | / if *cursor > 0 { [INFO] [stdout] 103 | | let start = char_to_byte(buf, *cursor - 1); [INFO] [stdout] 104 | | let end = char_to_byte(buf, *cursor); [INFO] [stdout] 105 | | buf.drain(start..end); [INFO] [stdout] 106 | | *cursor -= 1; [INFO] [stdout] 107 | | } [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] 101 ~ KeyCode::Backspace [INFO] [stdout] 102 ~ if *cursor > 0 => { [INFO] [stdout] 103 | let start = char_to_byte(buf, *cursor - 1); [INFO] [stdout] ... [INFO] [stdout] 106 | *cursor -= 1; [INFO] [stdout] 107 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> crates/cli/src/tui.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | / if *cursor > 0 { [INFO] [stdout] 103 | | let start = char_to_byte(buf, *cursor - 1); [INFO] [stdout] 104 | | let end = char_to_byte(buf, *cursor); [INFO] [stdout] 105 | | buf.drain(start..end); [INFO] [stdout] 106 | | *cursor -= 1; [INFO] [stdout] 107 | | } [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] 101 ~ KeyCode::Backspace [INFO] [stdout] 102 ~ if *cursor > 0 => { [INFO] [stdout] 103 | let start = char_to_byte(buf, *cursor - 1); [INFO] [stdout] ... [INFO] [stdout] 106 | *cursor -= 1; [INFO] [stdout] 107 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking teloxide v0.17.0 [INFO] [stderr] Checking walrus-telegram v0.0.10 (/opt/rustwide/workdir/apps/telegram) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 31s [INFO] running `Command { std: "docker" "inspect" "2b6594f975ba888922981b2b262b161f9d01f2df76a5985dc5952b72040a665b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b6594f975ba888922981b2b262b161f9d01f2df76a5985dc5952b72040a665b", kill_on_drop: false }` [INFO] [stdout] 2b6594f975ba888922981b2b262b161f9d01f2df76a5985dc5952b72040a665b