[INFO] cloning repository https://github.com/dcbotgittest/w [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dcbotgittest/w" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdcbotgittest%2Fw", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdcbotgittest%2Fw'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 207363fb5bd6828892ca6717f1d9ff4a5ce1e12d [INFO] linting dcbotgittest/w against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdcbotgittest%2Fw" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/dcbotgittest/w [INFO] finished tweaking git repo https://github.com/dcbotgittest/w [INFO] tweaked toml for git repo https://github.com/dcbotgittest/w written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dcbotgittest/w 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/dcbotgittest/w 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 socket2 v0.6.0 [INFO] [stderr] Downloaded errno v0.3.13 [INFO] [stderr] Downloaded poise_macros v0.6.1 [INFO] [stderr] Downloaded typesize-derive v0.1.11 [INFO] [stderr] Downloaded time-macros v0.2.22 [INFO] [stderr] Downloaded data-encoding v2.9.0 [INFO] [stderr] Downloaded tokio-rustls v0.26.2 [INFO] [stderr] Downloaded io-uring v0.7.10 [INFO] [stderr] Downloaded hyper-util v0.1.16 [INFO] [stderr] Downloaded reqwest v0.11.27 [INFO] [stderr] Downloaded rustls v0.21.12 [INFO] [stderr] Downloaded tokio-rustls v0.25.0 [INFO] [stderr] Downloaded mini-moka v0.10.3 [INFO] [stderr] Downloaded rustls v0.22.4 [INFO] [stderr] Downloaded http v1.3.1 [INFO] [stderr] Downloaded serde_cow v0.1.2 [INFO] [stderr] Downloaded reqwest v0.12.23 [INFO] [stderr] Downloaded windows-link v0.1.3 [INFO] [stderr] Downloaded camino v1.1.11 [INFO] [stderr] Downloaded sled v0.34.7 [INFO] [stderr] Downloaded h2 v0.3.27 [INFO] [stderr] Downloaded bytecount v0.6.9 [INFO] [stderr] Downloaded quick-xml v0.31.0 [INFO] [stderr] Downloaded pulldown-cmark v0.9.6 [INFO] [stderr] Downloaded winapi-util v0.1.10 [INFO] [stderr] Downloaded serenity v0.12.4 [INFO] [stderr] Downloaded tracing-core v0.1.34 [INFO] [stderr] Downloaded fs2 v0.4.3 [INFO] [stderr] Downloaded tower-http v0.6.6 [INFO] [stderr] Downloaded webpki-roots v1.0.2 [INFO] [stderr] Downloaded bitflags v2.9.3 [INFO] [stderr] Downloaded hyper v1.7.0 [INFO] [stderr] Downloaded typesize v0.1.14 [INFO] [stderr] Downloaded tokio-macros v2.5.0 [INFO] [stderr] Downloaded indexmap v2.10.0 [INFO] [stderr] Downloaded tokio v1.47.1 [INFO] [stderr] Downloaded tokio-util v0.7.16 [INFO] [stderr] Downloaded quinn-udp v0.5.13 [INFO] [stderr] Downloaded rustls-pki-types v1.12.0 [INFO] [stderr] Downloaded error-chain v0.12.4 [INFO] [stderr] Downloaded feed-rs v1.5.3 [INFO] [stderr] Downloaded tempfile v3.21.0 [INFO] [stderr] Downloaded poise v0.6.1 [INFO] [stderr] Downloaded webpki-roots v0.25.4 [INFO] [stderr] Downloaded typemap_rev v0.3.0 [INFO] [stderr] Downloaded iri-string v0.7.8 [INFO] [stderr] Downloaded url v2.5.6 [INFO] [stderr] Downloaded cc v1.2.34 [INFO] [stderr] Downloaded tracing-attributes v0.1.30 [INFO] [stderr] Downloaded rustls-webpki v0.103.4 [INFO] [stderr] Downloaded rustc-demangle v0.1.26 [INFO] [stderr] Downloaded secrecy v0.8.0 [INFO] [stderr] Downloaded quinn-proto v0.11.12 [INFO] [stderr] Downloaded zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Downloaded cargo_metadata v0.14.2 [INFO] [stderr] Downloaded h2 v0.4.12 [INFO] [stderr] Downloaded tokio-tungstenite v0.21.0 [INFO] [stderr] Downloaded uuid v1.18.0 [INFO] [stderr] Downloaded quinn v0.11.8 [INFO] [stderr] Downloaded backtrace v0.3.75 [INFO] [stderr] Downloaded skeptic v0.13.7 [INFO] [stderr] Downloaded hyper v0.14.32 [INFO] [stderr] Downloaded rustix v1.0.8 [INFO] [stderr] Downloaded rustls v0.23.31 [INFO] [stderr] Downloaded rustls-webpki v0.102.8 [INFO] [stderr] Downloaded zerovec v0.11.4 [INFO] [stderr] Downloaded cargo-platform v0.1.9 [INFO] [stderr] Downloaded tungstenite v0.21.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 4114e127c8fa553c4c9aeda289444ce0c1c797cb65d6297182cde6fc4310811f [INFO] running `Command { std: "docker" "start" "-a" "4114e127c8fa553c4c9aeda289444ce0c1c797cb65d6297182cde6fc4310811f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4114e127c8fa553c4c9aeda289444ce0c1c797cb65d6297182cde6fc4310811f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4114e127c8fa553c4c9aeda289444ce0c1c797cb65d6297182cde6fc4310811f", kill_on_drop: false }` [INFO] [stdout] 4114e127c8fa553c4c9aeda289444ce0c1c797cb65d6297182cde6fc4310811f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 551637c37432140d28a622b1600da7bce8c87b85714c35c6407b107d8a1d4bb9 [INFO] running `Command { std: "docker" "start" "-a" "551637c37432140d28a622b1600da7bce8c87b85714c35c6407b107d8a1d4bb9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking slab v0.4.11 [INFO] [stderr] Checking litemap v0.8.0 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking rustls-pki-types v1.12.0 [INFO] [stderr] Checking writeable v0.6.1 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking indexmap v2.10.0 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Compiling cc v1.2.34 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling rustls v0.22.4 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking webpki-roots v1.0.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Checking ipnet v2.11.0 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling rustls v0.23.31 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking data-encoding v2.9.0 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking adler2 v2.0.1 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking bitflags v2.9.3 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking webpki-roots v0.26.11 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Checking time-core v0.1.4 [INFO] [stderr] Checking webpki-roots v0.25.4 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling serenity v0.12.4 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Checking flate2 v1.1.2 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling virtue v0.0.18 [INFO] [stderr] Checking typemap_rev v0.3.0 [INFO] [stderr] Checking iri-string v0.7.8 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling bincode_derive v2.0.1 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking rustls-webpki v0.102.8 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking rustls-webpki v0.103.4 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Compiling poise_macros v0.6.1 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking tokio-rustls v0.25.0 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking uuid v1.18.0 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking quick-xml v0.31.0 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Checking siphasher v1.0.1 [INFO] [stderr] Checking unty v0.0.4 [INFO] [stderr] Checking sled v0.34.7 [INFO] [stderr] Checking urlencoding v2.1.3 [INFO] [stderr] Checking tokio-rustls v0.26.2 [INFO] [stderr] Checking url v2.5.6 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking deranged v0.4.0 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking secrecy v0.8.0 [INFO] [stderr] Checking serde_cow v0.1.2 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking bincode v2.0.1 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Checking feed-rs v1.5.3 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking hyper-util v0.1.16 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking hyper-rustls v0.24.2 [INFO] [stderr] Checking reqwest v0.12.23 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking poise v0.6.1 [INFO] [stderr] Checking dc_bot v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/handlers/event_handler.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | ctx: &serenity::Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/handlers/event_handler.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | ctx: &serenity::Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `as_i64` is never used [INFO] [stdout] --> src/commands/valorant/stats.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn as_i64(v: &serde_json::Value) -> i64 { v.as_i64().unwrap_or(0) } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/handlers/event_handler.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / match event { [INFO] [stdout] 11 | | serenity::FullEvent::Ready { data_about_bot, .. } => { [INFO] [stdout] 12 | | let startup_duration = data.started_at.elapsed(); [INFO] [stdout] 13 | | let commands_check = data.commands_check_duration; [INFO] [stdout] ... | [INFO] [stdout] 92 | | _ => {} [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 10 ~ if let serenity::FullEvent::Ready { data_about_bot, .. } = event { [INFO] [stdout] 11 + let startup_duration = data.started_at.elapsed(); [INFO] [stdout] 12 + let commands_check = data.commands_check_duration; [INFO] [stdout] 13 + [INFO] [stdout] 14 + fn fmt_dur(d: Duration) -> String { [INFO] [stdout] 15 + if d.as_secs() >= 1 { [INFO] [stdout] 16 + format!("{:.3}s", d.as_secs_f64()) [INFO] [stdout] 17 + } else { [INFO] [stdout] 18 + format!("{:.3}ms", d.as_secs_f64() * 1000.0) [INFO] [stdout] 19 + } [INFO] [stdout] 20 + } [INFO] [stdout] 21 + [INFO] [stdout] 22 + let mut name_w = "Name".len(); [INFO] [stdout] 23 + let mut status_w = "Status".len(); [INFO] [stdout] 24 + for s in &data.command_statuses { [INFO] [stdout] 25 + name_w = name_w.max(s.name.len()); [INFO] [stdout] 26 + status_w = status_w.max(s.status.len()); [INFO] [stdout] 27 + } [INFO] [stdout] 28 + let total_commands = data.command_statuses.len(); [INFO] [stdout] 29 + [INFO] [stdout] 30 + let title = format!("Bot Ready: {}", data_about_bot.user.name); [INFO] [stdout] 31 + let meta_left = format!( [INFO] [stdout] 32 + "Startup time: {}", [INFO] [stdout] 33 + fmt_dur(startup_duration) [INFO] [stdout] 34 + ); [INFO] [stdout] 35 + let meta_right = format!( [INFO] [stdout] 36 + "Commands check: {}", [INFO] [stdout] 37 + fmt_dur(commands_check) [INFO] [stdout] 38 + ); [INFO] [stdout] 39 + let meta_w = meta_left.len().max(meta_right.len()); [INFO] [stdout] 40 + [INFO] [stdout] 41 + let table_width = 2 + name_w + 3 + status_w + 2; // | name | status | [INFO] [stdout] 42 + let header_width = title.len().max(meta_w).max(table_width).max(30); [INFO] [stdout] 43 + let hline = format!("+{}+", "=".repeat(header_width)); [INFO] [stdout] 44 + let sline = format!("+{}+", "-".repeat(header_width)); [INFO] [stdout] 45 + [INFO] [stdout] 46 + println!("{}", hline); [INFO] [stdout] 47 + println!("|{: src/commands/valorant/custom/custom_match.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | / pub async fn fetch_custom_match_data( [INFO] [stdout] 75 | | auth: &str, [INFO] [stdout] 76 | | region: &str, [INFO] [stdout] 77 | | platform: &str, [INFO] [stdout] ... | [INFO] [stdout] 84 | | store_matches: u8, [INFO] [stdout] 85 | | ) -> Result, Box> { [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:200:61 [INFO] [stdout] | [INFO] [stdout] 200 | ... let normalized = if !cached.get("data").is_some() && (cached.get("metadata").is_some() || cached.get("players").is_some()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `cached.get("data").is_none()` [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 boolean expression can be simplified [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:224:41 [INFO] [stdout] | [INFO] [stdout] 224 | ... let normalized = if !cached.get("data").is_some() && (cached.get("metadata").is_some() || cached.get("players").is_some()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `cached.get("data").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | / if allow { [INFO] [stdout] 172 | | if let Some(mid) = match_id { [INFO] [stdout] 173 | | match_ids.push(mid); [INFO] [stdout] 174 | | if match_ids.len() as u8 >= store_matches { break; } [INFO] [stdout] 175 | | } [INFO] [stdout] 176 | | } [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] 171 ~ if allow [INFO] [stdout] 172 ~ && let Some(mid) = match_id { [INFO] [stdout] 173 | match_ids.push(mid); [INFO] [stdout] 174 | if match_ids.len() as u8 >= store_matches { break; } [INFO] [stdout] 175 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | / if let Ok(resp) = acct_res { [INFO] [stdout] 186 | | if resp.status().is_success() { [INFO] [stdout] 187 | | if let Ok(txt) = resp.text().await { [INFO] [stdout] 188 | | if let Ok(v) = serde_json::from_str::(&txt) { [INFO] [stdout] ... | [INFO] [stdout] 213 | | } [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] 185 ~ if let Ok(resp) = acct_res [INFO] [stdout] 186 ~ && resp.status().is_success() { [INFO] [stdout] 187 | if let Ok(txt) = resp.text().await { [INFO] [stdout] ... [INFO] [stdout] 211 | } [INFO] [stdout] 212 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | / if resp.status().is_success() { [INFO] [stdout] 187 | | if let Ok(txt) = resp.text().await { [INFO] [stdout] 188 | | if let Ok(v) = serde_json::from_str::(&txt) { [INFO] [stdout] 189 | | if let Some(puuid) = v.get("data").and_then(|d| d.get("puuid")).and_then(|s| s.as_str()) { [INFO] [stdout] ... | [INFO] [stdout] 212 | | } [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] 186 ~ if resp.status().is_success() [INFO] [stdout] 187 ~ && let Ok(txt) = resp.text().await { [INFO] [stdout] 188 | if let Ok(v) = serde_json::from_str::(&txt) { [INFO] [stdout] ... [INFO] [stdout] 210 | } [INFO] [stdout] 211 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:187:17 [INFO] [stdout] | [INFO] [stdout] 187 | / ... if let Ok(txt) = resp.text().await { [INFO] [stdout] 188 | | ... if let Ok(v) = serde_json::from_str::(&txt) { [INFO] [stdout] 189 | | ... if let Some(puuid) = v.get("data").and_then(|d| d.get("puuid")).and_then(|s| s.as_str()) { [INFO] [stdout] 190 | | ... let all_paths = crate::data::matches::cache::find_stored_match_paths_by_puuid(guild_id, puuid, usize::MAX).await; [INFO] [stdout] ... | [INFO] [stdout] 211 | | ... } [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] 187 ~ if let Ok(txt) = resp.text().await [INFO] [stdout] 188 ~ && let Ok(v) = serde_json::from_str::(&txt) { [INFO] [stdout] 189 | if let Some(puuid) = v.get("data").and_then(|d| d.get("puuid")).and_then(|s| s.as_str()) { [INFO] [stdout] ... [INFO] [stdout] 209 | } [INFO] [stdout] 210 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:188:21 [INFO] [stdout] | [INFO] [stdout] 188 | / ... if let Ok(v) = serde_json::from_str::(&txt) { [INFO] [stdout] 189 | | ... if let Some(puuid) = v.get("data").and_then(|d| d.get("puuid")).and_then(|s| s.as_str()) { [INFO] [stdout] 190 | | ... let all_paths = crate::data::matches::cache::find_stored_match_paths_by_puuid(guild_id, puuid, usize::MAX).await; [INFO] [stdout] 191 | | ... let mode_type_dir = if mode_type.eq_ignore_ascii_case("deathmatch") { "deathmatch" } else { "standard" }; [INFO] [stdout] ... | [INFO] [stdout] 210 | | ... } [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] 188 ~ if let Ok(v) = serde_json::from_str::(&txt) [INFO] [stdout] 189 ~ && let Some(puuid) = v.get("data").and_then(|d| d.get("puuid")).and_then(|s| s.as_str()) { [INFO] [stdout] 190 | let all_paths = crate::data::matches::cache::find_stored_match_paths_by_puuid(guild_id, puuid, usize::MAX).await; [INFO] [stdout] ... [INFO] [stdout] 208 | } [INFO] [stdout] 209 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:197:29 [INFO] [stdout] | [INFO] [stdout] 197 | / ... if !match_paths.is_empty() { [INFO] [stdout] 198 | | ... if let Some(last_path) = match_paths.pop() { [INFO] [stdout] 199 | | ... if let Some(cached) = crate::data::matches::cache::load_stored_value(&last_path).await { [INFO] [stdout] 200 | | ... let normalized = if !cached.get("data").is_some() && (cached.get("metadata").is_some() || cached.get("players")... [INFO] [stdout] ... | [INFO] [stdout] 208 | | ... } [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] 197 ~ if !match_paths.is_empty() [INFO] [stdout] 198 ~ && let Some(last_path) = match_paths.pop() { [INFO] [stdout] 199 | if let Some(cached) = crate::data::matches::cache::load_stored_value(&last_path).await { [INFO] [stdout] ... [INFO] [stdout] 206 | } [INFO] [stdout] 207 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:198:33 [INFO] [stdout] | [INFO] [stdout] 198 | / ... if let Some(last_path) = match_paths.pop() { [INFO] [stdout] 199 | | ... if let Some(cached) = crate::data::matches::cache::load_stored_value(&last_path).await { [INFO] [stdout] 200 | | ... let normalized = if !cached.get("data").is_some() && (cached.get("metadata").is_some() || cached.get("players").is_... [INFO] [stdout] 201 | | ... let mut obj = serde_json::Map::new(); [INFO] [stdout] ... | [INFO] [stdout] 207 | | ... } [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] 198 ~ if let Some(last_path) = match_paths.pop() [INFO] [stdout] 199 ~ && let Some(cached) = crate::data::matches::cache::load_stored_value(&last_path).await { [INFO] [stdout] 200 | let normalized = if !cached.get("data").is_some() && (cached.get("metadata").is_some() || cached.get("players").is_some()) { [INFO] [stdout] ... [INFO] [stdout] 205 | return Ok(Some(normalized)); [INFO] [stdout] 206 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:222:13 [INFO] [stdout] | [INFO] [stdout] 222 | / ... if first_return.is_none() { [INFO] [stdout] 223 | | ... if let Some(cached) = crate::data::matches::cache::load_stored_value(std::path::Path::new(&stored_file)).await { [INFO] [stdout] 224 | | ... let normalized = if !cached.get("data").is_some() && (cached.get("metadata").is_some() || cached.get("players").is_... [INFO] [stdout] 225 | | ... let mut obj = serde_json::Map::new(); [INFO] [stdout] ... | [INFO] [stdout] 233 | | ... } [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] 222 ~ if first_return.is_none() [INFO] [stdout] 223 ~ && let Some(cached) = crate::data::matches::cache::load_stored_value(std::path::Path::new(&stored_file)).await { [INFO] [stdout] 224 | let normalized = if !cached.get("data").is_some() && (cached.get("metadata").is_some() || cached.get("players").is_some()) { [INFO] [stdout] ... [INFO] [stdout] 231 | first_return = Some(normalized); [INFO] [stdout] 232 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:334:21 [INFO] [stdout] | [INFO] [stdout] 334 | / if let Ok(resp) = res { [INFO] [stdout] 335 | | if resp.status().is_success() { [INFO] [stdout] 336 | | if let Ok(text) = resp.text().await { [INFO] [stdout] 337 | | if let Ok(v) = serde_json::from_str::(&text) { [INFO] [stdout] ... | [INFO] [stdout] 363 | | } [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] 334 ~ if let Ok(resp) = res [INFO] [stdout] 335 ~ && resp.status().is_success() { [INFO] [stdout] 336 | if let Ok(text) = resp.text().await { [INFO] [stdout] ... [INFO] [stdout] 361 | } [INFO] [stdout] 362 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:335:25 [INFO] [stdout] | [INFO] [stdout] 335 | / if resp.status().is_success() { [INFO] [stdout] 336 | | if let Ok(text) = resp.text().await { [INFO] [stdout] 337 | | if let Ok(v) = serde_json::from_str::(&text) { [INFO] [stdout] 338 | | rank = v [INFO] [stdout] ... | [INFO] [stdout] 362 | | } [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] 335 ~ if resp.status().is_success() [INFO] [stdout] 336 ~ && let Ok(text) = resp.text().await { [INFO] [stdout] 337 | if let Ok(v) = serde_json::from_str::(&text) { [INFO] [stdout] ... [INFO] [stdout] 360 | } [INFO] [stdout] 361 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:336:29 [INFO] [stdout] | [INFO] [stdout] 336 | / ... if let Ok(text) = resp.text().await { [INFO] [stdout] 337 | | ... if let Ok(v) = serde_json::from_str::(&text) { [INFO] [stdout] 338 | | ... rank = v [INFO] [stdout] 339 | | ... .get("data") [INFO] [stdout] ... | [INFO] [stdout] 361 | | ... } [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] 336 ~ if let Ok(text) = resp.text().await [INFO] [stdout] 337 ~ && let Ok(v) = serde_json::from_str::(&text) { [INFO] [stdout] 338 | rank = v [INFO] [stdout] ... [INFO] [stdout] 359 | }); [INFO] [stdout] 360 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:377:21 [INFO] [stdout] | [INFO] [stdout] 377 | / if *label == "flat" { [INFO] [stdout] 378 | | if let Some(Value::Object(po)) = players_arr.get_mut(*idx) { [INFO] [stdout] 379 | | po.insert("rank".to_string(), Value::String(rank.clone())); [INFO] [stdout] 380 | | } [INFO] [stdout] 381 | | } [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] 377 ~ if *label == "flat" [INFO] [stdout] 378 ~ && let Some(Value::Object(po)) = players_arr.get_mut(*idx) { [INFO] [stdout] 379 | po.insert("rank".to_string(), Value::String(rank.clone())); [INFO] [stdout] 380 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:387:21 [INFO] [stdout] | [INFO] [stdout] 387 | / if *label == "all" { [INFO] [stdout] 388 | | if let Some(Value::Object(po)) = players_all.get_mut(*idx) { [INFO] [stdout] 389 | | po.insert("rank".to_string(), Value::String(rank.clone())); [INFO] [stdout] 390 | | } [INFO] [stdout] 391 | | } [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] 387 ~ if *label == "all" [INFO] [stdout] 388 ~ && let Some(Value::Object(po)) = players_all.get_mut(*idx) { [INFO] [stdout] 389 | po.insert("rank".to_string(), Value::String(rank.clone())); [INFO] [stdout] 390 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:398:25 [INFO] [stdout] | [INFO] [stdout] 398 | / if *label == "red" { [INFO] [stdout] 399 | | if let Some(Value::Object(po)) = red_arr.get_mut(*idx) { [INFO] [stdout] 400 | | po.insert("rank".to_string(), Value::String(rank.clone())); [INFO] [stdout] 401 | | } [INFO] [stdout] 402 | | } [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] 398 ~ if *label == "red" [INFO] [stdout] 399 ~ && let Some(Value::Object(po)) = red_arr.get_mut(*idx) { [INFO] [stdout] 400 | po.insert("rank".to_string(), Value::String(rank.clone())); [INFO] [stdout] 401 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:407:25 [INFO] [stdout] | [INFO] [stdout] 407 | / if *label == "blue" { [INFO] [stdout] 408 | | if let Some(Value::Object(po)) = blue_arr.get_mut(*idx) { [INFO] [stdout] 409 | | po.insert("rank".to_string(), Value::String(rank.clone())); [INFO] [stdout] 410 | | } [INFO] [stdout] 411 | | } [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] 407 ~ if *label == "blue" [INFO] [stdout] 408 ~ && let Some(Value::Object(po)) = blue_arr.get_mut(*idx) { [INFO] [stdout] 409 | po.insert("rank".to_string(), Value::String(rank.clone())); [INFO] [stdout] 410 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:430:1 [INFO] [stdout] | [INFO] [stdout] 430 | / pub async fn custom_match( [INFO] [stdout] 431 | | ctx: poise::Context<'_, crate::Data, crate::Error>, [INFO] [stdout] 432 | | #[description = "Riot ID (e.g., Name#Tag)"] riot_id: String, [INFO] [stdout] 433 | | #[description = "Region (eu, na, latam, br, ap, kr) Defaults to na"] region: Option, [INFO] [stdout] ... | [INFO] [stdout] 438 | | #[description = "Store multiple matches (1-10, default 1). When 2+, requests are rate-limited to 30/min"] store_matches: Opti... [INFO] [stdout] 439 | | ) -> Result<(), crate::Error> { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i64` -> `i64`) [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:507:46 [INFO] [stdout] | [INFO] [stdout] 507 | let score_str = format!("{}:{}", blue_rw.max(0) as i64, red_rw.max(0) as i64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try: `{ blue_rw.max(0) }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i64` -> `i64`) [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:507:69 [INFO] [stdout] | [INFO] [stdout] 507 | let score_str = format!("{}:{}", blue_rw.max(0) as i64, red_rw.max(0) as i64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: try: `{ red_rw.max(0) }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:573:21 [INFO] [stdout] | [INFO] [stdout] 573 | if let Some(e) = rank_emoji { if !e.is_empty() { icon_parts.push(e); } } [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] 573 - if let Some(e) = rank_emoji { if !e.is_empty() { icon_parts.push(e); } } [INFO] [stdout] 573 + if let Some(e) = rank_emoji && !e.is_empty() { icon_parts.push(e); } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:574:21 [INFO] [stdout] | [INFO] [stdout] 574 | if let Some(e) = agent_emoji { if !e.is_empty() { icon_parts.push(e); } } [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] 574 - if let Some(e) = agent_emoji { if !e.is_empty() { icon_parts.push(e); } } [INFO] [stdout] 574 + if let Some(e) = agent_emoji && !e.is_empty() { icon_parts.push(e); } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/prune_match.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | / if path.is_file() { [INFO] [stdout] 66 | | if let Some(ext) = path.extension().and_then(|s| s.to_str()) { [INFO] [stdout] 67 | | if ext.eq_ignore_ascii_case("json") { [INFO] [stdout] 68 | | match tokio::fs::remove_file(&path).await { [INFO] [stdout] ... | [INFO] [stdout] 74 | | } [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] 65 ~ if path.is_file() [INFO] [stdout] 66 ~ && let Some(ext) = path.extension().and_then(|s| s.to_str()) { [INFO] [stdout] 67 | if ext.eq_ignore_ascii_case("json") { [INFO] [stdout] ... [INFO] [stdout] 72 | } [INFO] [stdout] 73 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/prune_match.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | / if let Some(ext) = path.extension().and_then(|s| s.to_str()) { [INFO] [stdout] 67 | | if ext.eq_ignore_ascii_case("json") { [INFO] [stdout] 68 | | match tokio::fs::remove_file(&path).await { [INFO] [stdout] 69 | | Ok(_) => deleted += 1, [INFO] [stdout] ... | [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_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 66 ~ if let Some(ext) = path.extension().and_then(|s| s.to_str()) [INFO] [stdout] 67 ~ && ext.eq_ignore_ascii_case("json") { [INFO] [stdout] 68 | match tokio::fs::remove_file(&path).await { [INFO] [stdout] ... [INFO] [stdout] 71 | } [INFO] [stdout] 72 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/data/matches/cache.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | / if let Ok(encoded) = bincode::serde::encode_to_vec(&list, bincode::config::standard()) { [INFO] [stdout] 109 | | if let Ok(comp) = zstd::stream::encode_all(Cursor::new(encoded), 3) { [INFO] [stdout] 110 | | let tmp = path.with_extension("bin.zst.tmp"); [INFO] [stdout] 111 | | if fs::write(&tmp, &comp).await.is_ok() { [INFO] [stdout] ... | [INFO] [stdout] 118 | | } [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] 108 ~ if let Ok(encoded) = bincode::serde::encode_to_vec(&list, bincode::config::standard()) [INFO] [stdout] 109 ~ && let Ok(comp) = zstd::stream::encode_all(Cursor::new(encoded), 3) { [INFO] [stdout] 110 | let tmp = path.with_extension("bin.zst.tmp"); [INFO] [stdout] ... [INFO] [stdout] 116 | } [INFO] [stdout] 117 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/data/matches/cache.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | / if fs::write(&tmp, &comp).await.is_ok() { [INFO] [stdout] 112 | | if fs::rename(&tmp, &path).await.is_err() { [INFO] [stdout] 113 | | let _ = fs::write(&path, &comp).await; [INFO] [stdout] 114 | | let _ = fs::remove_file(&tmp).await; [INFO] [stdout] 115 | | } [INFO] [stdout] 116 | | } [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] 111 ~ if fs::write(&tmp, &comp).await.is_ok() [INFO] [stdout] 112 ~ && fs::rename(&tmp, &path).await.is_err() { [INFO] [stdout] 113 | let _ = fs::write(&path, &comp).await; [INFO] [stdout] 114 | let _ = fs::remove_file(&tmp).await; [INFO] [stdout] 115 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/data/matches/cache.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 172 | / if let Ok(bytes) = fs::read(&idx_path).await { [INFO] [stdout] 173 | | if let Ok(decompressed) = zstd::stream::decode_all(Cursor::new(bytes)) { [INFO] [stdout] 174 | | if let Ok((list, _)) = bincode::serde::decode_from_slice::, _>(&decompressed, bincode::config::standard()) { [INFO] [stdout] 175 | | for s in list.into_iter() { [INFO] [stdout] ... | [INFO] [stdout] 181 | | } [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] 172 ~ if let Ok(bytes) = fs::read(&idx_path).await [INFO] [stdout] 173 ~ && let Ok(decompressed) = zstd::stream::decode_all(Cursor::new(bytes)) { [INFO] [stdout] 174 | if let Ok((list, _)) = bincode::serde::decode_from_slice::, _>(&decompressed, bincode::config::standard()) { [INFO] [stdout] ... [INFO] [stdout] 179 | } [INFO] [stdout] 180 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/data/matches/cache.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | / if let Ok(decompressed) = zstd::stream::decode_all(Cursor::new(bytes)) { [INFO] [stdout] 174 | | if let Ok((list, _)) = bincode::serde::decode_from_slice::, _>(&decompressed, bincode::config::standard()) { [INFO] [stdout] 175 | | for s in list.into_iter() { [INFO] [stdout] 176 | | if out.len() >= limit { break; } [INFO] [stdout] ... | [INFO] [stdout] 180 | | } [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] 173 ~ if let Ok(decompressed) = zstd::stream::decode_all(Cursor::new(bytes)) [INFO] [stdout] 174 ~ && let Ok((list, _)) = bincode::serde::decode_from_slice::, _>(&decompressed, bincode::config::standard()) { [INFO] [stdout] 175 | for s in list.into_iter() { [INFO] [stdout] ... [INFO] [stdout] 178 | } [INFO] [stdout] 179 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `as_i64` is never used [INFO] [stdout] --> src/commands/valorant/stats.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn as_i64(v: &serde_json::Value) -> i64 { v.as_i64().unwrap_or(0) } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/handlers/event_handler.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | / match event { [INFO] [stdout] 11 | | serenity::FullEvent::Ready { data_about_bot, .. } => { [INFO] [stdout] 12 | | let startup_duration = data.started_at.elapsed(); [INFO] [stdout] 13 | | let commands_check = data.commands_check_duration; [INFO] [stdout] ... | [INFO] [stdout] 92 | | _ => {} [INFO] [stdout] 93 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 10 ~ if let serenity::FullEvent::Ready { data_about_bot, .. } = event { [INFO] [stdout] 11 + let startup_duration = data.started_at.elapsed(); [INFO] [stdout] 12 + let commands_check = data.commands_check_duration; [INFO] [stdout] 13 + [INFO] [stdout] 14 + fn fmt_dur(d: Duration) -> String { [INFO] [stdout] 15 + if d.as_secs() >= 1 { [INFO] [stdout] 16 + format!("{:.3}s", d.as_secs_f64()) [INFO] [stdout] 17 + } else { [INFO] [stdout] 18 + format!("{:.3}ms", d.as_secs_f64() * 1000.0) [INFO] [stdout] 19 + } [INFO] [stdout] 20 + } [INFO] [stdout] 21 + [INFO] [stdout] 22 + let mut name_w = "Name".len(); [INFO] [stdout] 23 + let mut status_w = "Status".len(); [INFO] [stdout] 24 + for s in &data.command_statuses { [INFO] [stdout] 25 + name_w = name_w.max(s.name.len()); [INFO] [stdout] 26 + status_w = status_w.max(s.status.len()); [INFO] [stdout] 27 + } [INFO] [stdout] 28 + let total_commands = data.command_statuses.len(); [INFO] [stdout] 29 + [INFO] [stdout] 30 + let title = format!("Bot Ready: {}", data_about_bot.user.name); [INFO] [stdout] 31 + let meta_left = format!( [INFO] [stdout] 32 + "Startup time: {}", [INFO] [stdout] 33 + fmt_dur(startup_duration) [INFO] [stdout] 34 + ); [INFO] [stdout] 35 + let meta_right = format!( [INFO] [stdout] 36 + "Commands check: {}", [INFO] [stdout] 37 + fmt_dur(commands_check) [INFO] [stdout] 38 + ); [INFO] [stdout] 39 + let meta_w = meta_left.len().max(meta_right.len()); [INFO] [stdout] 40 + [INFO] [stdout] 41 + let table_width = 2 + name_w + 3 + status_w + 2; // | name | status | [INFO] [stdout] 42 + let header_width = title.len().max(meta_w).max(table_width).max(30); [INFO] [stdout] 43 + let hline = format!("+{}+", "=".repeat(header_width)); [INFO] [stdout] 44 + let sline = format!("+{}+", "-".repeat(header_width)); [INFO] [stdout] 45 + [INFO] [stdout] 46 + println!("{}", hline); [INFO] [stdout] 47 + println!("|{: src/commands/valorant/custom/custom_match.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | / pub async fn fetch_custom_match_data( [INFO] [stdout] 75 | | auth: &str, [INFO] [stdout] 76 | | region: &str, [INFO] [stdout] 77 | | platform: &str, [INFO] [stdout] ... | [INFO] [stdout] 84 | | store_matches: u8, [INFO] [stdout] 85 | | ) -> Result, Box> { [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:200:61 [INFO] [stdout] | [INFO] [stdout] 200 | ... let normalized = if !cached.get("data").is_some() && (cached.get("metadata").is_some() || cached.get("players").is_some()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `cached.get("data").is_none()` [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 boolean expression can be simplified [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:224:41 [INFO] [stdout] | [INFO] [stdout] 224 | ... let normalized = if !cached.get("data").is_some() && (cached.get("metadata").is_some() || cached.get("players").is_some()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `cached.get("data").is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | / if allow { [INFO] [stdout] 172 | | if let Some(mid) = match_id { [INFO] [stdout] 173 | | match_ids.push(mid); [INFO] [stdout] 174 | | if match_ids.len() as u8 >= store_matches { break; } [INFO] [stdout] 175 | | } [INFO] [stdout] 176 | | } [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] 171 ~ if allow [INFO] [stdout] 172 ~ && let Some(mid) = match_id { [INFO] [stdout] 173 | match_ids.push(mid); [INFO] [stdout] 174 | if match_ids.len() as u8 >= store_matches { break; } [INFO] [stdout] 175 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | / if let Ok(resp) = acct_res { [INFO] [stdout] 186 | | if resp.status().is_success() { [INFO] [stdout] 187 | | if let Ok(txt) = resp.text().await { [INFO] [stdout] 188 | | if let Ok(v) = serde_json::from_str::(&txt) { [INFO] [stdout] ... | [INFO] [stdout] 213 | | } [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] 185 ~ if let Ok(resp) = acct_res [INFO] [stdout] 186 ~ && resp.status().is_success() { [INFO] [stdout] 187 | if let Ok(txt) = resp.text().await { [INFO] [stdout] ... [INFO] [stdout] 211 | } [INFO] [stdout] 212 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | / if resp.status().is_success() { [INFO] [stdout] 187 | | if let Ok(txt) = resp.text().await { [INFO] [stdout] 188 | | if let Ok(v) = serde_json::from_str::(&txt) { [INFO] [stdout] 189 | | if let Some(puuid) = v.get("data").and_then(|d| d.get("puuid")).and_then(|s| s.as_str()) { [INFO] [stdout] ... | [INFO] [stdout] 212 | | } [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] 186 ~ if resp.status().is_success() [INFO] [stdout] 187 ~ && let Ok(txt) = resp.text().await { [INFO] [stdout] 188 | if let Ok(v) = serde_json::from_str::(&txt) { [INFO] [stdout] ... [INFO] [stdout] 210 | } [INFO] [stdout] 211 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:187:17 [INFO] [stdout] | [INFO] [stdout] 187 | / ... if let Ok(txt) = resp.text().await { [INFO] [stdout] 188 | | ... if let Ok(v) = serde_json::from_str::(&txt) { [INFO] [stdout] 189 | | ... if let Some(puuid) = v.get("data").and_then(|d| d.get("puuid")).and_then(|s| s.as_str()) { [INFO] [stdout] 190 | | ... let all_paths = crate::data::matches::cache::find_stored_match_paths_by_puuid(guild_id, puuid, usize::MAX).await; [INFO] [stdout] ... | [INFO] [stdout] 211 | | ... } [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] 187 ~ if let Ok(txt) = resp.text().await [INFO] [stdout] 188 ~ && let Ok(v) = serde_json::from_str::(&txt) { [INFO] [stdout] 189 | if let Some(puuid) = v.get("data").and_then(|d| d.get("puuid")).and_then(|s| s.as_str()) { [INFO] [stdout] ... [INFO] [stdout] 209 | } [INFO] [stdout] 210 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:188:21 [INFO] [stdout] | [INFO] [stdout] 188 | / ... if let Ok(v) = serde_json::from_str::(&txt) { [INFO] [stdout] 189 | | ... if let Some(puuid) = v.get("data").and_then(|d| d.get("puuid")).and_then(|s| s.as_str()) { [INFO] [stdout] 190 | | ... let all_paths = crate::data::matches::cache::find_stored_match_paths_by_puuid(guild_id, puuid, usize::MAX).await; [INFO] [stdout] 191 | | ... let mode_type_dir = if mode_type.eq_ignore_ascii_case("deathmatch") { "deathmatch" } else { "standard" }; [INFO] [stdout] ... | [INFO] [stdout] 210 | | ... } [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] 188 ~ if let Ok(v) = serde_json::from_str::(&txt) [INFO] [stdout] 189 ~ && let Some(puuid) = v.get("data").and_then(|d| d.get("puuid")).and_then(|s| s.as_str()) { [INFO] [stdout] 190 | let all_paths = crate::data::matches::cache::find_stored_match_paths_by_puuid(guild_id, puuid, usize::MAX).await; [INFO] [stdout] ... [INFO] [stdout] 208 | } [INFO] [stdout] 209 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:197:29 [INFO] [stdout] | [INFO] [stdout] 197 | / ... if !match_paths.is_empty() { [INFO] [stdout] 198 | | ... if let Some(last_path) = match_paths.pop() { [INFO] [stdout] 199 | | ... if let Some(cached) = crate::data::matches::cache::load_stored_value(&last_path).await { [INFO] [stdout] 200 | | ... let normalized = if !cached.get("data").is_some() && (cached.get("metadata").is_some() || cached.get("players")... [INFO] [stdout] ... | [INFO] [stdout] 208 | | ... } [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] 197 ~ if !match_paths.is_empty() [INFO] [stdout] 198 ~ && let Some(last_path) = match_paths.pop() { [INFO] [stdout] 199 | if let Some(cached) = crate::data::matches::cache::load_stored_value(&last_path).await { [INFO] [stdout] ... [INFO] [stdout] 206 | } [INFO] [stdout] 207 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:198:33 [INFO] [stdout] | [INFO] [stdout] 198 | / ... if let Some(last_path) = match_paths.pop() { [INFO] [stdout] 199 | | ... if let Some(cached) = crate::data::matches::cache::load_stored_value(&last_path).await { [INFO] [stdout] 200 | | ... let normalized = if !cached.get("data").is_some() && (cached.get("metadata").is_some() || cached.get("players").is_... [INFO] [stdout] 201 | | ... let mut obj = serde_json::Map::new(); [INFO] [stdout] ... | [INFO] [stdout] 207 | | ... } [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] 198 ~ if let Some(last_path) = match_paths.pop() [INFO] [stdout] 199 ~ && let Some(cached) = crate::data::matches::cache::load_stored_value(&last_path).await { [INFO] [stdout] 200 | let normalized = if !cached.get("data").is_some() && (cached.get("metadata").is_some() || cached.get("players").is_some()) { [INFO] [stdout] ... [INFO] [stdout] 205 | return Ok(Some(normalized)); [INFO] [stdout] 206 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:222:13 [INFO] [stdout] | [INFO] [stdout] 222 | / ... if first_return.is_none() { [INFO] [stdout] 223 | | ... if let Some(cached) = crate::data::matches::cache::load_stored_value(std::path::Path::new(&stored_file)).await { [INFO] [stdout] 224 | | ... let normalized = if !cached.get("data").is_some() && (cached.get("metadata").is_some() || cached.get("players").is_... [INFO] [stdout] 225 | | ... let mut obj = serde_json::Map::new(); [INFO] [stdout] ... | [INFO] [stdout] 233 | | ... } [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] 222 ~ if first_return.is_none() [INFO] [stdout] 223 ~ && let Some(cached) = crate::data::matches::cache::load_stored_value(std::path::Path::new(&stored_file)).await { [INFO] [stdout] 224 | let normalized = if !cached.get("data").is_some() && (cached.get("metadata").is_some() || cached.get("players").is_some()) { [INFO] [stdout] ... [INFO] [stdout] 231 | first_return = Some(normalized); [INFO] [stdout] 232 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:334:21 [INFO] [stdout] | [INFO] [stdout] 334 | / if let Ok(resp) = res { [INFO] [stdout] 335 | | if resp.status().is_success() { [INFO] [stdout] 336 | | if let Ok(text) = resp.text().await { [INFO] [stdout] 337 | | if let Ok(v) = serde_json::from_str::(&text) { [INFO] [stdout] ... | [INFO] [stdout] 363 | | } [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] 334 ~ if let Ok(resp) = res [INFO] [stdout] 335 ~ && resp.status().is_success() { [INFO] [stdout] 336 | if let Ok(text) = resp.text().await { [INFO] [stdout] ... [INFO] [stdout] 361 | } [INFO] [stdout] 362 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:335:25 [INFO] [stdout] | [INFO] [stdout] 335 | / if resp.status().is_success() { [INFO] [stdout] 336 | | if let Ok(text) = resp.text().await { [INFO] [stdout] 337 | | if let Ok(v) = serde_json::from_str::(&text) { [INFO] [stdout] 338 | | rank = v [INFO] [stdout] ... | [INFO] [stdout] 362 | | } [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] 335 ~ if resp.status().is_success() [INFO] [stdout] 336 ~ && let Ok(text) = resp.text().await { [INFO] [stdout] 337 | if let Ok(v) = serde_json::from_str::(&text) { [INFO] [stdout] ... [INFO] [stdout] 360 | } [INFO] [stdout] 361 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:336:29 [INFO] [stdout] | [INFO] [stdout] 336 | / ... if let Ok(text) = resp.text().await { [INFO] [stdout] 337 | | ... if let Ok(v) = serde_json::from_str::(&text) { [INFO] [stdout] 338 | | ... rank = v [INFO] [stdout] 339 | | ... .get("data") [INFO] [stdout] ... | [INFO] [stdout] 361 | | ... } [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] 336 ~ if let Ok(text) = resp.text().await [INFO] [stdout] 337 ~ && let Ok(v) = serde_json::from_str::(&text) { [INFO] [stdout] 338 | rank = v [INFO] [stdout] ... [INFO] [stdout] 359 | }); [INFO] [stdout] 360 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:377:21 [INFO] [stdout] | [INFO] [stdout] 377 | / if *label == "flat" { [INFO] [stdout] 378 | | if let Some(Value::Object(po)) = players_arr.get_mut(*idx) { [INFO] [stdout] 379 | | po.insert("rank".to_string(), Value::String(rank.clone())); [INFO] [stdout] 380 | | } [INFO] [stdout] 381 | | } [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] 377 ~ if *label == "flat" [INFO] [stdout] 378 ~ && let Some(Value::Object(po)) = players_arr.get_mut(*idx) { [INFO] [stdout] 379 | po.insert("rank".to_string(), Value::String(rank.clone())); [INFO] [stdout] 380 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:387:21 [INFO] [stdout] | [INFO] [stdout] 387 | / if *label == "all" { [INFO] [stdout] 388 | | if let Some(Value::Object(po)) = players_all.get_mut(*idx) { [INFO] [stdout] 389 | | po.insert("rank".to_string(), Value::String(rank.clone())); [INFO] [stdout] 390 | | } [INFO] [stdout] 391 | | } [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] 387 ~ if *label == "all" [INFO] [stdout] 388 ~ && let Some(Value::Object(po)) = players_all.get_mut(*idx) { [INFO] [stdout] 389 | po.insert("rank".to_string(), Value::String(rank.clone())); [INFO] [stdout] 390 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:398:25 [INFO] [stdout] | [INFO] [stdout] 398 | / if *label == "red" { [INFO] [stdout] 399 | | if let Some(Value::Object(po)) = red_arr.get_mut(*idx) { [INFO] [stdout] 400 | | po.insert("rank".to_string(), Value::String(rank.clone())); [INFO] [stdout] 401 | | } [INFO] [stdout] 402 | | } [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] 398 ~ if *label == "red" [INFO] [stdout] 399 ~ && let Some(Value::Object(po)) = red_arr.get_mut(*idx) { [INFO] [stdout] 400 | po.insert("rank".to_string(), Value::String(rank.clone())); [INFO] [stdout] 401 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:407:25 [INFO] [stdout] | [INFO] [stdout] 407 | / if *label == "blue" { [INFO] [stdout] 408 | | if let Some(Value::Object(po)) = blue_arr.get_mut(*idx) { [INFO] [stdout] 409 | | po.insert("rank".to_string(), Value::String(rank.clone())); [INFO] [stdout] 410 | | } [INFO] [stdout] 411 | | } [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] 407 ~ if *label == "blue" [INFO] [stdout] 408 ~ && let Some(Value::Object(po)) = blue_arr.get_mut(*idx) { [INFO] [stdout] 409 | po.insert("rank".to_string(), Value::String(rank.clone())); [INFO] [stdout] 410 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:430:1 [INFO] [stdout] | [INFO] [stdout] 430 | / pub async fn custom_match( [INFO] [stdout] 431 | | ctx: poise::Context<'_, crate::Data, crate::Error>, [INFO] [stdout] 432 | | #[description = "Riot ID (e.g., Name#Tag)"] riot_id: String, [INFO] [stdout] 433 | | #[description = "Region (eu, na, latam, br, ap, kr) Defaults to na"] region: Option, [INFO] [stdout] ... | [INFO] [stdout] 438 | | #[description = "Store multiple matches (1-10, default 1). When 2+, requests are rate-limited to 30/min"] store_matches: Opti... [INFO] [stdout] 439 | | ) -> Result<(), crate::Error> { [INFO] [stdout] | |_____________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i64` -> `i64`) [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:507:46 [INFO] [stdout] | [INFO] [stdout] 507 | let score_str = format!("{}:{}", blue_rw.max(0) as i64, red_rw.max(0) as i64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: try: `{ blue_rw.max(0) }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i64` -> `i64`) [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:507:69 [INFO] [stdout] | [INFO] [stdout] 507 | let score_str = format!("{}:{}", blue_rw.max(0) as i64, red_rw.max(0) as i64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: try: `{ red_rw.max(0) }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:573:21 [INFO] [stdout] | [INFO] [stdout] 573 | if let Some(e) = rank_emoji { if !e.is_empty() { icon_parts.push(e); } } [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] 573 - if let Some(e) = rank_emoji { if !e.is_empty() { icon_parts.push(e); } } [INFO] [stdout] 573 + if let Some(e) = rank_emoji && !e.is_empty() { icon_parts.push(e); } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/custom/custom_match.rs:574:21 [INFO] [stdout] | [INFO] [stdout] 574 | if let Some(e) = agent_emoji { if !e.is_empty() { icon_parts.push(e); } } [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] 574 - if let Some(e) = agent_emoji { if !e.is_empty() { icon_parts.push(e); } } [INFO] [stdout] 574 + if let Some(e) = agent_emoji && !e.is_empty() { icon_parts.push(e); } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/prune_match.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | / if path.is_file() { [INFO] [stdout] 66 | | if let Some(ext) = path.extension().and_then(|s| s.to_str()) { [INFO] [stdout] 67 | | if ext.eq_ignore_ascii_case("json") { [INFO] [stdout] 68 | | match tokio::fs::remove_file(&path).await { [INFO] [stdout] ... | [INFO] [stdout] 74 | | } [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] 65 ~ if path.is_file() [INFO] [stdout] 66 ~ && let Some(ext) = path.extension().and_then(|s| s.to_str()) { [INFO] [stdout] 67 | if ext.eq_ignore_ascii_case("json") { [INFO] [stdout] ... [INFO] [stdout] 72 | } [INFO] [stdout] 73 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/commands/valorant/prune_match.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | / if let Some(ext) = path.extension().and_then(|s| s.to_str()) { [INFO] [stdout] 67 | | if ext.eq_ignore_ascii_case("json") { [INFO] [stdout] 68 | | match tokio::fs::remove_file(&path).await { [INFO] [stdout] 69 | | Ok(_) => deleted += 1, [INFO] [stdout] ... | [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_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 66 ~ if let Some(ext) = path.extension().and_then(|s| s.to_str()) [INFO] [stdout] 67 ~ && ext.eq_ignore_ascii_case("json") { [INFO] [stdout] 68 | match tokio::fs::remove_file(&path).await { [INFO] [stdout] ... [INFO] [stdout] 71 | } [INFO] [stdout] 72 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/data/matches/cache.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | / if let Ok(encoded) = bincode::serde::encode_to_vec(&list, bincode::config::standard()) { [INFO] [stdout] 109 | | if let Ok(comp) = zstd::stream::encode_all(Cursor::new(encoded), 3) { [INFO] [stdout] 110 | | let tmp = path.with_extension("bin.zst.tmp"); [INFO] [stdout] 111 | | if fs::write(&tmp, &comp).await.is_ok() { [INFO] [stdout] ... | [INFO] [stdout] 118 | | } [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] 108 ~ if let Ok(encoded) = bincode::serde::encode_to_vec(&list, bincode::config::standard()) [INFO] [stdout] 109 ~ && let Ok(comp) = zstd::stream::encode_all(Cursor::new(encoded), 3) { [INFO] [stdout] 110 | let tmp = path.with_extension("bin.zst.tmp"); [INFO] [stdout] ... [INFO] [stdout] 116 | } [INFO] [stdout] 117 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/data/matches/cache.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | / if fs::write(&tmp, &comp).await.is_ok() { [INFO] [stdout] 112 | | if fs::rename(&tmp, &path).await.is_err() { [INFO] [stdout] 113 | | let _ = fs::write(&path, &comp).await; [INFO] [stdout] 114 | | let _ = fs::remove_file(&tmp).await; [INFO] [stdout] 115 | | } [INFO] [stdout] 116 | | } [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] 111 ~ if fs::write(&tmp, &comp).await.is_ok() [INFO] [stdout] 112 ~ && fs::rename(&tmp, &path).await.is_err() { [INFO] [stdout] 113 | let _ = fs::write(&path, &comp).await; [INFO] [stdout] 114 | let _ = fs::remove_file(&tmp).await; [INFO] [stdout] 115 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/data/matches/cache.rs:172:5 [INFO] [stdout] | [INFO] [stdout] 172 | / if let Ok(bytes) = fs::read(&idx_path).await { [INFO] [stdout] 173 | | if let Ok(decompressed) = zstd::stream::decode_all(Cursor::new(bytes)) { [INFO] [stdout] 174 | | if let Ok((list, _)) = bincode::serde::decode_from_slice::, _>(&decompressed, bincode::config::standard()) { [INFO] [stdout] 175 | | for s in list.into_iter() { [INFO] [stdout] ... | [INFO] [stdout] 181 | | } [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] 172 ~ if let Ok(bytes) = fs::read(&idx_path).await [INFO] [stdout] 173 ~ && let Ok(decompressed) = zstd::stream::decode_all(Cursor::new(bytes)) { [INFO] [stdout] 174 | if let Ok((list, _)) = bincode::serde::decode_from_slice::, _>(&decompressed, bincode::config::standard()) { [INFO] [stdout] ... [INFO] [stdout] 179 | } [INFO] [stdout] 180 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/data/matches/cache.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | / if let Ok(decompressed) = zstd::stream::decode_all(Cursor::new(bytes)) { [INFO] [stdout] 174 | | if let Ok((list, _)) = bincode::serde::decode_from_slice::, _>(&decompressed, bincode::config::standard()) { [INFO] [stdout] 175 | | for s in list.into_iter() { [INFO] [stdout] 176 | | if out.len() >= limit { break; } [INFO] [stdout] ... | [INFO] [stdout] 180 | | } [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] 173 ~ if let Ok(decompressed) = zstd::stream::decode_all(Cursor::new(bytes)) [INFO] [stdout] 174 ~ && let Ok((list, _)) = bincode::serde::decode_from_slice::, _>(&decompressed, bincode::config::standard()) { [INFO] [stdout] 175 | for s in list.into_iter() { [INFO] [stdout] ... [INFO] [stdout] 178 | } [INFO] [stdout] 179 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 31s [INFO] running `Command { std: "docker" "inspect" "551637c37432140d28a622b1600da7bce8c87b85714c35c6407b107d8a1d4bb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "551637c37432140d28a622b1600da7bce8c87b85714c35c6407b107d8a1d4bb9", kill_on_drop: false }` [INFO] [stdout] 551637c37432140d28a622b1600da7bce8c87b85714c35c6407b107d8a1d4bb9