[INFO] cloning repository https://github.com/OElabs-official/atlas_prime [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/OElabs-official/atlas_prime" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOElabs-official%2Fatlas_prime", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOElabs-official%2Fatlas_prime'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 89afde9c1b6583d7f3c3afedc287261ea0798699 [INFO] linting OElabs-official/atlas_prime against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FOElabs-official%2Fatlas_prime" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/OElabs-official/atlas_prime [INFO] finished tweaking git repo https://github.com/OElabs-official/atlas_prime [INFO] tweaked toml for git repo https://github.com/OElabs-official/atlas_prime written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/OElabs-official/atlas_prime 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/OElabs-official/atlas_prime 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 windows-numerics v0.3.1 [INFO] [stderr] Downloaded termuxapi v0.1.1 [INFO] [stderr] Downloaded windows-future v0.3.2 [INFO] [stderr] Downloaded zmij v1.0.10 [INFO] [stderr] Downloaded wezterm-color-types v0.3.0 [INFO] [stderr] Downloaded outref v0.5.2 [INFO] [stderr] Downloaded filedescriptor v0.8.3 [INFO] [stderr] Downloaded instability v0.3.11 [INFO] [stderr] Downloaded as-slice v0.2.1 [INFO] [stderr] Downloaded proc-macro2 v1.0.104 [INFO] [stderr] Downloaded neli-proc-macros v0.2.2 [INFO] [stderr] Downloaded getset v0.1.6 [INFO] [stderr] Downloaded directories v6.0.0 [INFO] [stderr] Downloaded ansi-to-tui v8.0.1 [INFO] [stderr] Downloaded notify v8.2.0 [INFO] [stderr] Downloaded neli v0.7.3 [INFO] [stderr] Downloaded safe_arch v0.9.3 [INFO] [stderr] Downloaded pest v2.8.5 [INFO] [stderr] Downloaded crossterm v0.29.0 [INFO] [stderr] Downloaded wide v0.8.3 [INFO] [stderr] Downloaded ratatui-core v0.1.0 [INFO] [stderr] Downloaded ntapi v0.4.2 [INFO] [stderr] Downloaded sysinfo v0.38.0 [INFO] [stderr] Downloaded portable-atomic v1.13.0 [INFO] [stderr] Downloaded palette v0.7.6 [INFO] [stderr] Downloaded exr v1.74.0 [INFO] [stderr] Downloaded objc2-io-kit v0.3.2 [INFO] [stderr] Downloaded syn v2.0.113 [INFO] [stderr] Downloaded ratatui-widgets v0.3.0 [INFO] [stderr] Downloaded derive_more-impl v2.1.1 [INFO] [stderr] Downloaded derive_more v2.1.1 [INFO] [stderr] Downloaded ratatui v0.30.0 [INFO] [stderr] Downloaded zune-jpeg v0.5.11 [INFO] [stderr] Downloaded termwiz v0.23.3 [INFO] [stderr] Downloaded wezterm-bidi v0.2.3 [INFO] [stderr] Downloaded av-scenechange v0.14.1 [INFO] [stderr] Downloaded darling_core v0.23.0 [INFO] [stderr] Downloaded compact_str v0.9.0 [INFO] [stderr] Downloaded kasuari v0.4.11 [INFO] [stderr] Downloaded quantette v0.5.1 [INFO] [stderr] Downloaded bitstream-io v4.9.0 [INFO] [stderr] Downloaded finl_unicode v1.4.0 [INFO] [stderr] Downloaded pest_derive v2.8.5 [INFO] [stderr] Downloaded darling v0.23.0 [INFO] [stderr] Downloaded local-ip-address v0.6.9 [INFO] [stderr] Downloaded vsimd v0.8.0 [INFO] [stderr] Downloaded gif v0.14.1 [INFO] [stderr] Downloaded av1-grain v0.2.5 [INFO] [stderr] Downloaded ravif v0.12.0 [INFO] [stderr] Downloaded pest_meta v2.8.5 [INFO] [stderr] Downloaded termios v0.3.3 [INFO] [stderr] Downloaded wezterm-input-types v0.1.0 [INFO] [stderr] Downloaded libc v0.2.179 [INFO] [stderr] Downloaded foldhash v0.2.0 [INFO] [stderr] Downloaded kqueue v1.1.1 [INFO] [stderr] Downloaded base64-simd v0.8.0 [INFO] [stderr] Downloaded ordered-float v5.1.0 [INFO] [stderr] Downloaded fast-srgb8 v1.0.0 [INFO] [stderr] Downloaded palette_derive v0.7.6 [INFO] [stderr] Downloaded rand_xoshiro v0.7.0 [INFO] [stderr] Downloaded built v0.8.0 [INFO] [stderr] Downloaded zune-core v0.5.1 [INFO] [stderr] Downloaded litrs v1.0.0 [INFO] [stderr] Downloaded ratatui-macros v0.7.0 [INFO] [stderr] Downloaded ratatui-termwiz v0.1.0 [INFO] [stderr] Downloaded indoc v2.0.7 [INFO] [stderr] Downloaded lru v0.16.2 [INFO] [stderr] Downloaded by_address v1.2.1 [INFO] [stderr] Downloaded aligned v0.4.3 [INFO] [stderr] Downloaded pest_generator v2.8.5 [INFO] [stderr] Downloaded wezterm-dynamic v0.2.1 [INFO] [stderr] Downloaded darling_macro v0.23.0 [INFO] [stderr] Downloaded unicode-truncate v2.0.0 [INFO] [stderr] Downloaded y4m v0.8.0 [INFO] [stderr] Downloaded ratatui-crossterm v0.1.0 [INFO] [stderr] Downloaded memmem v0.1.1 [INFO] [stderr] Downloaded terminfo v0.9.0 [INFO] [stderr] Downloaded vtparse v0.6.2 [INFO] [stderr] Downloaded mac_address v1.1.8 [INFO] [stderr] Downloaded wezterm-blob-leases v0.1.1 [INFO] [stderr] Downloaded lab v0.11.0 [INFO] [stderr] Downloaded wezterm-dynamic-derive v0.1.1 [INFO] [stderr] Downloaded smart-default v0.7.1 [INFO] [stderr] Downloaded windows-threading v0.2.1 [INFO] [stderr] Downloaded document-features v0.2.12 [INFO] [stderr] Downloaded line-clipping v0.3.5 [INFO] [stderr] Downloaded windows-collections v0.3.2 [INFO] [stderr] Downloaded deltae v0.3.2 [INFO] [stderr] Downloaded rav1e v0.8.1 [INFO] [stderr] Downloaded icy_sixel v0.5.0 [INFO] [stderr] Downloaded ratatui-image v10.0.4 [INFO] [stderr] Downloaded windows v0.62.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 254d2aabe654348a92185da51eaaf67a51ac8a67998d9b66291542c856508f06 [INFO] running `Command { std: "docker" "start" "-a" "254d2aabe654348a92185da51eaaf67a51ac8a67998d9b66291542c856508f06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "254d2aabe654348a92185da51eaaf67a51ac8a67998d9b66291542c856508f06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "254d2aabe654348a92185da51eaaf67a51ac8a67998d9b66291542c856508f06", kill_on_drop: false }` [INFO] [stdout] 254d2aabe654348a92185da51eaaf67a51ac8a67998d9b66291542c856508f06 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 472a67ca0567c5b6dae83f628a5c8c0b6e36244ed5ae87fdd5fa357d39473bcf [INFO] running `Command { std: "docker" "start" "-a" "472a67ca0567c5b6dae83f628a5c8c0b6e36244ed5ae87fdd5fa357d39473bcf", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.104 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling libc v0.2.179 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking stable_deref_trait v1.2.1 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Checking foldhash v0.2.0 [INFO] [stderr] Compiling zmij v1.0.10 [INFO] [stderr] Compiling zerocopy v0.8.31 [INFO] [stderr] Checking simd-adler32 v0.3.8 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Checking ryu v1.0.22 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Checking hashbrown v0.16.1 [INFO] [stderr] Compiling find-msvc-tools v0.1.6 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Compiling cc v1.2.51 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Checking castaway v0.2.4 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking anyhow v1.0.100 [INFO] [stderr] Checking as-slice v0.2.1 [INFO] [stderr] Checking nom v8.0.0 [INFO] [stderr] Compiling av-scenechange v0.14.1 [INFO] [stderr] Compiling built v0.8.0 [INFO] [stderr] Checking unicode-segmentation v1.12.0 [INFO] [stderr] Checking unicode-width v0.2.2 [INFO] [stderr] Compiling indoc v2.0.7 [INFO] [stderr] Checking compact_str v0.9.0 [INFO] [stderr] Checking aligned v0.4.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking core2 v0.4.0 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Checking y4m v0.8.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Checking lru v0.16.2 [INFO] [stderr] Compiling pastey v0.1.1 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling rav1e v0.8.1 [INFO] [stderr] Compiling syn v2.0.113 [INFO] [stderr] Compiling instability v0.3.11 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling convert_case v0.10.0 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking bitstream-io v4.9.0 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Checking flate2 v1.1.5 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Checking weezl v0.1.12 [INFO] [stderr] Checking imgref v1.12.0 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Checking deranged v0.5.5 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Checking loop9 v0.1.5 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Checking signal-hook v0.3.18 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Checking avif-serialize v0.8.6 [INFO] [stderr] Checking fdeflate v0.3.7 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Checking zune-inflate v0.2.54 [INFO] [stderr] Checking pxfm v0.1.27 [INFO] [stderr] Compiling by_address v1.2.1 [INFO] [stderr] Compiling ref-cast v1.0.25 [INFO] [stderr] Checking zune-core v0.5.1 [INFO] [stderr] Checking bit_field v0.10.3 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking time-core v0.1.6 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Compiling litrs v1.0.0 [INFO] [stderr] Compiling palette v0.7.6 [INFO] [stderr] Checking num_threads v0.1.7 [INFO] [stderr] Checking lebe v0.5.3 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Checking zune-jpeg v0.5.11 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Checking image-webp v0.2.4 [INFO] [stderr] Checking gif v0.14.1 [INFO] [stderr] Checking time v0.3.44 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling document-features v0.2.12 [INFO] [stderr] Checking png v0.18.0 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Checking signal-hook-mio v0.2.5 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Checking line-clipping v0.3.5 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking fast-srgb8 v1.0.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking rand_xoshiro v0.7.0 [INFO] [stderr] Checking ordered-float v5.1.0 [INFO] [stderr] Compiling object v0.37.3 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Checking inotify-sys v0.1.5 [INFO] [stderr] Compiling ratatui-image v10.0.4 [INFO] [stderr] Checking vsimd v0.8.0 [INFO] [stderr] Checking outref v0.5.2 [INFO] [stderr] Checking gimli v0.32.3 [INFO] [stderr] Checking dirs-sys v0.5.0 [INFO] [stderr] Checking inotify v0.11.0 [INFO] [stderr] Checking rustc-demangle v0.1.26 [INFO] [stderr] Checking simdutf8 v0.1.5 [INFO] [stderr] Checking iana-time-zone v0.1.64 [INFO] [stderr] Checking notify-types v2.0.0 [INFO] [stderr] Checking directories v6.0.0 [INFO] [stderr] Checking chrono v0.4.43 [INFO] [stderr] Checking sysinfo v0.38.0 [INFO] [stderr] Checking notify v8.2.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Checking moxcms v0.7.11 [INFO] [stderr] Checking base64-simd v0.8.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.23.0 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Checking addr2line v0.25.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling zerocopy-derive v0.8.31 [INFO] [stderr] Compiling equator-macro v0.4.2 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling bytemuck_derive v1.10.2 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Checking equator v0.4.2 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Checking aligned-vec v0.6.4 [INFO] [stderr] Checking v_frame v0.3.9 [INFO] [stderr] Compiling profiling-procmacros v1.0.17 [INFO] [stderr] Checking av1-grain v0.2.5 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Checking bytemuck v1.24.0 [INFO] [stderr] Checking profiling v1.0.17 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Checking thiserror v2.0.17 [INFO] [stderr] Compiling fax_derive v0.2.0 [INFO] [stderr] Checking kasuari v0.4.11 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling derive_more-impl v2.1.1 [INFO] [stderr] Checking fax v0.2.6 [INFO] [stderr] Checking safe_arch v0.9.3 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Compiling ref-cast-impl v1.0.25 [INFO] [stderr] Compiling palette_derive v0.7.6 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Checking derive_more v2.1.1 [INFO] [stderr] Checking crossterm v0.29.0 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking wide v0.8.3 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking strum v0.27.2 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Compiling getset v0.1.6 [INFO] [stderr] Checking backtrace v0.3.76 [INFO] [stderr] Compiling smart-default v0.7.1 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling darling_macro v0.23.0 [INFO] [stderr] Checking half v2.7.1 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Compiling darling v0.23.0 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking tiff v0.10.3 [INFO] [stderr] Checking exr v1.74.0 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking derive_builder v0.20.2 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling neli-proc-macros v0.2.2 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Checking itertools v0.14.0 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Checking rayon v1.11.0 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking neli v0.7.3 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Checking unicode-truncate v2.0.0 [INFO] [stderr] Checking ratatui-core v0.1.0 [INFO] [stderr] Checking maybe-rayon v0.1.1 [INFO] [stderr] Checking ratatui-widgets v0.3.0 [INFO] [stderr] Checking ratatui-crossterm v0.1.0 [INFO] [stderr] Checking ansi-to-tui v8.0.1 [INFO] [stderr] Checking local-ip-address v0.6.9 [INFO] [stderr] Checking ratatui-macros v0.7.0 [INFO] [stderr] Checking ratatui v0.30.0 [INFO] [stderr] Checking sqlx-sqlite v0.8.6 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Checking ravif v0.12.0 [INFO] [stderr] Checking image v0.25.9 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking quantette v0.5.1 [INFO] [stderr] Checking icy_sixel v0.5.0 [INFO] [stderr] Checking atlas_prime v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `KeyCode` and `KeyModifiers` [INFO] [stdout] --> src/app.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use crossterm::event::{KeyCode, KeyEvent, KeyModifiers}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Alignment` and `Paragraph` [INFO] [stdout] --> src/app.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | layout::{Alignment, Constraint, Layout, Rect}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | widgets::{Block, Borders, Paragraph, Tabs}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::broadcast` [INFO] [stdout] --> src/app.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use tokio::sync::broadcast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration`, `Instant`, `Interval`, `MissedTickBehavior`, and `interval` [INFO] [stdout] --> src/app.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | use tokio::time::{Duration, Instant, Interval, MissedTickBehavior, interval}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `directories::ProjectDirs` [INFO] [stdout] --> src/config.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use directories::ProjectDirs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OnceLock` [INFO] [stdout] --> src/config.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::{Arc, OnceLock}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/config.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/config.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyCode` and `KeyModifiers` [INFO] [stdout] --> src/app.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use crossterm::event::{KeyCode, KeyEvent, KeyModifiers}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Alignment` and `Paragraph` [INFO] [stdout] --> src/app.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | layout::{Alignment, Constraint, Layout, Rect}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | widgets::{Block, Borders, Paragraph, Tabs}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ProjectDirs` and `UserDirs` [INFO] [stdout] --> src/constans.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use directories::{ProjectDirs, UserDirs}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::broadcast` [INFO] [stdout] --> src/app.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use tokio::sync::broadcast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ratatui::style::Color` [INFO] [stdout] --> src/constans.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ratatui::style::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration`, `Instant`, `Interval`, `MissedTickBehavior`, and `interval` [INFO] [stdout] --> src/app.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | use tokio::time::{Duration, Instant, Interval, MissedTickBehavior, interval}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config::SharedConfig` [INFO] [stdout] --> src/constans.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::config::SharedConfig; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `directories::ProjectDirs` [INFO] [stdout] --> src/config.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use directories::ProjectDirs; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OnceLock` [INFO] [stdout] --> src/config.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::{Arc, OnceLock}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/config.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/config.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AppColor`, `Config`, and `SharedConfig` [INFO] [stdout] --> src/ui/info.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | config::{AppColor, Config, SharedConfig}, constans::{ [INFO] [stdout] | ^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DateTime` [INFO] [stdout] --> src/ui/info.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BaseDirs` and `UserDirs` [INFO] [stdout] --> src/ui/info.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | use directories::{BaseDirs, UserDirs}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `symbols::block` [INFO] [stdout] --> src/ui/info.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | use ratatui::{prelude::*, symbols::block, widgets::*}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `broadcast` and `mpsc` [INFO] [stdout] --> src/ui/info.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio::sync::{broadcast, mpsc}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/ui/info.rs:369:21 [INFO] [stdout] | [INFO] [stdout] 369 | (used as f64 / *total as f64) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 369 - (used as f64 / *total as f64) [INFO] [stdout] 369 + used as f64 / *total as f64 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ProjectDirs` and `UserDirs` [INFO] [stdout] --> src/constans.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use directories::{ProjectDirs, UserDirs}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ratatui::style::Color` [INFO] [stdout] --> src/constans.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ratatui::style::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config::SharedConfig` [INFO] [stdout] --> src/constans.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::config::SharedConfig; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AppColor`, `Config`, and `SharedConfig` [INFO] [stdout] --> src/ui/info.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | config::{AppColor, Config, SharedConfig}, constans::{ [INFO] [stdout] | ^^^^^^^^ ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DateTime` [INFO] [stdout] --> src/ui/info.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BaseDirs` and `UserDirs` [INFO] [stdout] --> src/ui/info.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | use directories::{BaseDirs, UserDirs}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `symbols::block` [INFO] [stdout] --> src/ui/info.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | use ratatui::{prelude::*, symbols::block, widgets::*}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `broadcast` and `mpsc` [INFO] [stdout] --> src/ui/info.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | use tokio::sync::{broadcast, mpsc}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TASK_RAW_JSON_SAMPLE` [INFO] [stdout] --> src/ui/task_control.rs:3:56 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::constans::{ATLAS_TASK_FILELIST, SCRIPT_DIR, TASK_RAW_JSON_SAMPLE}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/ui/info.rs:369:21 [INFO] [stdout] | [INFO] [stdout] 369 | (used as f64 / *total as f64) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 369 - (used as f64 / *total as f64) [INFO] [stdout] 369 + used as f64 / *total as f64 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RwLock as ARwLock` [INFO] [stdout] --> src/ui/task_control.rs:19:19 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio::sync::{RwLock as ARwLock, mpsc}; // 引入转换 trait [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TASK_RAW_JSON_SAMPLE` [INFO] [stdout] --> src/ui/task_control.rs:3:56 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::constans::{ATLAS_TASK_FILELIST, SCRIPT_DIR, TASK_RAW_JSON_SAMPLE}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RwLock as ARwLock` [INFO] [stdout] --> src/ui/task_control.rs:19:19 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio::sync::{RwLock as ARwLock, mpsc}; // 引入转换 trait [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `constans::ART_LOGO` [INFO] [stdout] --> src/ui/welcome.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{config::{Config, SharedConfig}, constans::ART_LOGO, prelude::Component, }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ProjectPath` [INFO] [stdout] --> src/ui/db_view.rs:2:192 [INFO] [stdout] | [INFO] [stdout] 2 | ...{Component, DynamicPayload, GlobIO, GlobRecv, GlobalEvent, ProjectPath}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/prelude.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{any::Any, collections::HashMap}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ATLAS_TASK_FILELIST` [INFO] [stdout] --> src/prelude.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::constans::{ATLAS_TASK_FILELIST, CFG_OVERRIDE_PATH, CFG_PATH, PROJECT}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty lines after doc comment [INFO] [stdout] --> src/prelude.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | / /// 获取脚本存放目录 (关联函数) [INFO] [stdout] 120 | | [INFO] [stdout] 121 | | [INFO] [stdout] 122 | | /// 获取数据库存放目录 (关联函数) [INFO] [stdout] ... | [INFO] [stdout] 129 | | [INFO] [stdout] | |_^ [INFO] [stdout] 130 | pub fn collect_dirs() -> Vec { [INFO] [stdout] | ------------------- the comment documents this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty lines are unintentional, remove them [INFO] [stdout] help: if the doc comment should not document function `collect_dirs` then comment it out [INFO] [stdout] | [INFO] [stdout] 119 ~ // /// 获取脚本存放目录 (关联函数) [INFO] [stdout] 120 | [INFO] [stdout] 121 | [INFO] [stdout] 122 ~ // /// 获取数据库存放目录 (关联函数) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `constans::ART_LOGO` [INFO] [stdout] --> src/ui/welcome.rs:1:45 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{config::{Config, SharedConfig}, constans::ART_LOGO, prelude::Component, }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ProjectPath` [INFO] [stdout] --> src/ui/db_view.rs:2:192 [INFO] [stdout] | [INFO] [stdout] 2 | ...{Component, DynamicPayload, GlobIO, GlobRecv, GlobalEvent, ProjectPath}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::broadcast` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use tokio::sync::broadcast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | event::{self, Event, EventStream, KeyCode}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MissedTickBehavior` and `mpsc` [INFO] [stdout] --> src/main.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | sync::{RwLock, mpsc}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 40 | time::{MissedTickBehavior, interval}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> src/main.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `protocol::Protocol` [INFO] [stdout] --> src/main.rs:44:44 [INFO] [stdout] | [INFO] [stdout] 44 | use ratatui_image::{Image, picker::Picker, protocol::Protocol}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/prelude.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{any::Any, collections::HashMap}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ATLAS_TASK_FILELIST` [INFO] [stdout] --> src/prelude.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::constans::{ATLAS_TASK_FILELIST, CFG_OVERRIDE_PATH, CFG_PATH, PROJECT}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty lines after doc comment [INFO] [stdout] --> src/prelude.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | / /// 获取脚本存放目录 (关联函数) [INFO] [stdout] 120 | | [INFO] [stdout] 121 | | [INFO] [stdout] 122 | | /// 获取数据库存放目录 (关联函数) [INFO] [stdout] ... | [INFO] [stdout] 129 | | [INFO] [stdout] | |_^ [INFO] [stdout] 130 | pub fn collect_dirs() -> Vec { [INFO] [stdout] | ------------------- the comment documents this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty lines are unintentional, remove them [INFO] [stdout] help: if the doc comment should not document function `collect_dirs` then comment it out [INFO] [stdout] | [INFO] [stdout] 119 ~ // /// 获取脚本存放目录 (关联函数) [INFO] [stdout] 120 | [INFO] [stdout] 121 | [INFO] [stdout] 122 ~ // /// 获取数据库存放目录 (关联函数) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::broadcast` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use tokio::sync::broadcast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | event::{self, Event, EventStream, KeyCode}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MissedTickBehavior` and `mpsc` [INFO] [stdout] --> src/main.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | sync::{RwLock, mpsc}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 40 | time::{MissedTickBehavior, interval}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> src/main.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `protocol::Protocol` [INFO] [stdout] --> src/main.rs:44:44 [INFO] [stdout] | [INFO] [stdout] 44 | use ratatui_image::{Image, picker::Picker, protocol::Protocol}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `ratatui::widgets::Table::<'a>::highlight_style`: use `row_highlight_style()` instead [INFO] [stdout] --> src/ui/db_view.rs:90:14 [INFO] [stdout] | [INFO] [stdout] 90 | .highlight_style(Style::default().bg(Color::Rgb(50, 50, 50))) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `ratatui::widgets::Table::<'a>::highlight_style`: use `row_highlight_style()` instead [INFO] [stdout] --> src/ui/db_view.rs:90:14 [INFO] [stdout] | [INFO] [stdout] 90 | .highlight_style(Style::default().bg(Color::Rgb(50, 50, 50))) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Row` [INFO] [stdout] --> src/db.rs:1:54 [INFO] [stdout] | [INFO] [stdout] 1 | use sqlx::{sqlite::SqliteConnectOptions, SqlitePool, Row}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/config.rs:155:24 [INFO] [stdout] | [INFO] [stdout] 155 | Ok(mut config) => { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Row` [INFO] [stdout] --> src/db.rs:1:54 [INFO] [stdout] | [INFO] [stdout] 1 | use sqlx::{sqlite::SqliteConnectOptions, SqlitePool, Row}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/config.rs:155:24 [INFO] [stdout] | [INFO] [stdout] 155 | Ok(mut config) => { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/ui/info.rs:728:36 [INFO] [stdout] | [INFO] [stdout] 728 | if let Err(e) = record_to_save.save_to_db().await { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/ui/info.rs:728:36 [INFO] [stdout] | [INFO] [stdout] 728 | if let Err(e) = record_to_save.save_to_db().await { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logs_for_io` [INFO] [stdout] --> src/ui/task_control.rs:301:25 [INFO] [stdout] | [INFO] [stdout] 301 | let logs_for_io = logs.clone(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_logs_for_io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `glob_for_io` [INFO] [stdout] --> src/ui/task_control.rs:302:25 [INFO] [stdout] | [INFO] [stdout] 302 | let glob_for_io = glob_send.clone(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_glob_for_io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `logs_for_io` [INFO] [stdout] --> src/ui/task_control.rs:301:25 [INFO] [stdout] | [INFO] [stdout] 301 | let logs_for_io = logs.clone(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_logs_for_io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `glob_for_io` [INFO] [stdout] --> src/ui/task_control.rs:302:25 [INFO] [stdout] | [INFO] [stdout] 302 | let glob_for_io = glob_send.clone(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_glob_for_io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:357:9 [INFO] [stdout] | [INFO] [stdout] 357 | let mut picker = Picker::from_query_stdio().unwrap_or_else(|_| Picker::halfblocks()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/app.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct App { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 22 | // --- 基础配置 --- [INFO] [stdout] 23 | pub config: SharedConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `backup_and_recreate` is never used [INFO] [stdout] --> src/config.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 113 | impl Config { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 174 | fn backup_and_recreate(path: &PathBuf) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAIN_LAYOUT` is never used [INFO] [stdout] --> src/constans.rs:145:11 [INFO] [stdout] | [INFO] [stdout] 145 | pub const MAIN_LAYOUT: [Constraint; 3] = [ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TASK_RAW_JSON_SAMPLE` is never used [INFO] [stdout] --> src/constans.rs:153:11 [INFO] [stdout] | [INFO] [stdout] 153 | pub const TASK_RAW_JSON_SAMPLE: &str = r#"[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLL_NAME` is never used [INFO] [stdout] --> src/ui/info.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const COLL_NAME: &str = "telemetry_history"; // database collections [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/ui/task_control.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct TaskControlComponent { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 78 | config: SharedConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/ui/welcome.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct WelcomeComponent { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 7 | pub config: SharedConfig, // 持有共享引用的拷贝,开销极小 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_fullscreen` is never used [INFO] [stdout] --> src/ui/welcome.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl WelcomeComponent { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 14 | fn is_fullscreen(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/ui/db_view.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct DatabaseComponent { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 18 | pub config: SharedConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `info`, `success`, `warn`, `error`, and `progress` are never used [INFO] [stdout] --> src/prelude.rs:327:12 [INFO] [stdout] | [INFO] [stdout] 325 | impl GlobIO { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 326 | /// 模拟 println! -> 发送 Info 级别的通知 [INFO] [stdout] 327 | pub fn info>(msg: S) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 336 | pub fn success>(msg: S) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 345 | pub fn warn>(msg: S) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 354 | pub fn error>(msg: S) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 363 | pub fn progress>(msg: S, level: StatusLevel, prog: Progress) { [INFO] [stdout] | ^^^^^^^^ [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/app.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | / match event { [INFO] [stdout] 46 | | GlobalEvent::Status(_, _, _) => changed = true, [INFO] [stdout] 47 | | _ => {} [INFO] [stdout] 48 | | } [INFO] [stdout] | |_____________^ help: try: `if let GlobalEvent::Status(_, _, _) = event { changed = true }` [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] [INFO] [stdout] [INFO] [stdout] warning: use of `char::is_digit` with literal radix of 10 [INFO] [stdout] --> src/app.rs:153:37 [INFO] [stdout] | [INFO] [stdout] 153 | KeyCode::Char(c) if c.is_digit(10) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `c.is_ascii_digit()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#is_digit_ascii_radix [INFO] [stdout] = note: `#[warn(clippy::is_digit_ascii_radix)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/app.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | / if let Some(comp) = self.components.get_mut(self.active_tab) { [INFO] [stdout] 176 | | if comp.handle_key(key) { [INFO] [stdout] 177 | | self.request_render(); [INFO] [stdout] 178 | | return true; [INFO] [stdout] 179 | | } [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] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 175 ~ if let Some(comp) = self.components.get_mut(self.active_tab) [INFO] [stdout] 176 ~ && comp.handle_key(key) { [INFO] [stdout] 177 | self.request_render(); [INFO] [stdout] 178 | return true; [INFO] [stdout] 179 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `SQL` contains a capitalized acronym [INFO] [stdout] --> src/constans.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | SQL, [INFO] [stdout] | ^^^ help: consider making the acronym lowercase, except the initial letter: `Sql` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] = note: `#[warn(clippy::upper_case_acronyms)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/ui/app_button.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | / if let Some((Progress::Loading, _)) = &self.state { [INFO] [stdout] 144 | | if self.tick_count % 10 == 0 { [INFO] [stdout] 145 | | changed = true; [INFO] [stdout] 146 | | } [INFO] [stdout] 147 | | } [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] 143 ~ if let Some((Progress::Loading, _)) = &self.state [INFO] [stdout] 144 ~ && self.tick_count % 10 == 0 { [INFO] [stdout] 145 | changed = true; [INFO] [stdout] 146 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/ui/app_button.rs:144:16 [INFO] [stdout] | [INFO] [stdout] 144 | if self.tick_count % 10 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `self.tick_count.is_multiple_of(10)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual checked division [INFO] [stdout] --> src/ui/info.rs:137:24 [INFO] [stdout] | [INFO] [stdout] 137 | if total > 0 { val * 100 / total } else { 0 } [INFO] [stdout] | ^^^^^^^^^ ----------------- division performed here [INFO] [stdout] | | [INFO] [stdout] | check performed here [INFO] [stdout] | [INFO] [stdout] = help: consider using `checked_div` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_checked_ops [INFO] [stdout] = note: `#[warn(clippy::manual_checked_ops)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual checked division [INFO] [stdout] --> src/ui/info.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | if total > 0 { val * 100 / total } else { 0 } [INFO] [stdout] | ^^^^^^^^^ ----------------- division performed here [INFO] [stdout] | | [INFO] [stdout] | check performed here [INFO] [stdout] | [INFO] [stdout] = help: consider using `checked_div` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_checked_ops [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:357:9 [INFO] [stdout] | [INFO] [stdout] 357 | let mut picker = Picker::from_query_stdio().unwrap_or_else(|_| Picker::halfblocks()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> src/ui/info.rs:353:9 [INFO] [stdout] | [INFO] [stdout] 353 | sorted_disks.sort_by(|a, b| b.1.cmp(&a.1)); // 按总空间排序 (DiskInf.1 是 total_space) [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] 353 - sorted_disks.sort_by(|a, b| b.1.cmp(&a.1)); // 按总空间排序 (DiskInf.1 是 total_space) [INFO] [stdout] 353 + sorted_disks.sort_by_key(|b| std::cmp::Reverse(b.1)); // 按总空间排序 (DiskInf.1 是 total_space) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/app.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct App { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 22 | // --- 基础配置 --- [INFO] [stdout] 23 | pub config: SharedConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `backup_and_recreate` is never used [INFO] [stdout] --> src/config.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 113 | impl Config { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 174 | fn backup_and_recreate(path: &PathBuf) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAIN_LAYOUT` is never used [INFO] [stdout] --> src/constans.rs:145:11 [INFO] [stdout] | [INFO] [stdout] 145 | pub const MAIN_LAYOUT: [Constraint; 3] = [ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TASK_RAW_JSON_SAMPLE` is never used [INFO] [stdout] --> src/constans.rs:153:11 [INFO] [stdout] | [INFO] [stdout] 153 | pub const TASK_RAW_JSON_SAMPLE: &str = r#"[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLL_NAME` is never used [INFO] [stdout] --> src/ui/info.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const COLL_NAME: &str = "telemetry_history"; // database collections [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/ui/task_control.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct TaskControlComponent { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 78 | config: SharedConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/ui/welcome.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct WelcomeComponent { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 7 | pub config: SharedConfig, // 持有共享引用的拷贝,开销极小 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_fullscreen` is never used [INFO] [stdout] --> src/ui/welcome.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl WelcomeComponent { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 14 | fn is_fullscreen(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/ui/db_view.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct DatabaseComponent { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 18 | pub config: SharedConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `info`, `success`, `warn`, `error`, and `progress` are never used [INFO] [stdout] --> src/prelude.rs:327:12 [INFO] [stdout] | [INFO] [stdout] 325 | impl GlobIO { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 326 | /// 模拟 println! -> 发送 Info 级别的通知 [INFO] [stdout] 327 | pub fn info>(msg: S) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 336 | pub fn success>(msg: S) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 345 | pub fn warn>(msg: S) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 354 | pub fn error>(msg: S) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 363 | pub fn progress>(msg: S, level: StatusLevel, prog: Progress) { [INFO] [stdout] | ^^^^^^^^ [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/app.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | / match event { [INFO] [stdout] 46 | | GlobalEvent::Status(_, _, _) => changed = true, [INFO] [stdout] 47 | | _ => {} [INFO] [stdout] 48 | | } [INFO] [stdout] | |_____________^ help: try: `if let GlobalEvent::Status(_, _, _) = event { changed = true }` [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] [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/ui/info.rs:482:13 [INFO] [stdout] | [INFO] [stdout] 482 | / match event { [INFO] [stdout] 483 | | [INFO] [stdout] 484 | | GlobalEvent::Data { key, data } => { [INFO] [stdout] 485 | | match key { [INFO] [stdout] ... | [INFO] [stdout] 567 | | _ => {} [INFO] [stdout] 568 | | } [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] help: try [INFO] [stdout] | [INFO] [stdout] 482 ~ if let GlobalEvent::Data { key, data } = event { [INFO] [stdout] 483 + match key { [INFO] [stdout] 484 ~ // 在 update 的 match key 逻辑中增加: [INFO] [stdout] 485 + "HISTORY_REFILL" => { [INFO] [stdout] 486 + if let Some(records) = data.0.downcast_ref::>() { [INFO] [stdout] 487 + self.cpu_info_history.clear(); [INFO] [stdout] 488 + self.mem_swap_history.clear(); [INFO] [stdout] 489 + self.bat_history.clear(); [INFO] [stdout] 490 + [INFO] [stdout] 491 + for r in records.iter().rev() { [INFO] [stdout] 492 + self.cpu_info_history.push_back(r.cpu_data.clone()); [INFO] [stdout] 493 + self.mem_swap_history.push_back(r.mem_swap); [INFO] [stdout] 494 + self.bat_history.push_back(r.battery_data.clone()); [INFO] [stdout] 495 + } [INFO] [stdout] 496 ~ // 再次补齐,防止数据量不足 HISTORY_CAP [INFO] [stdout] 497 + while self.cpu_info_history.len() < HISTORY_CAP { self.cpu_info_history.push_front(Default::default()); } [INFO] [stdout] 498 ~ // ... 对其他队列执行相同补齐操作 [INFO] [stdout] 499 + changed = true; [INFO] [stdout] 500 + } [INFO] [stdout] 501 + } [INFO] [stdout] 502 + [INFO] [stdout] 503 ~ // --- 1. 内存与 Swap (短周期) --- [INFO] [stdout] 504 + MEM_SWAP => { [INFO] [stdout] 505 + if let Some(pkg) = data.0.downcast_ref::() { [INFO] [stdout] 506 + self.mem_swap_history.push_back(*pkg); [INFO] [stdout] 507 + if self.mem_swap_history.len() > HISTORY_CAP { [INFO] [stdout] 508 + self.mem_swap_history.pop_front(); [INFO] [stdout] 509 + } [INFO] [stdout] 510 + changed = true; [INFO] [stdout] 511 + } [INFO] [stdout] 512 + } [INFO] [stdout] 513 ~ // --- 2. 内存与 Swap (长周期) --- [INFO] [stdout] 514 + MEM_SWAP_LONG => { [INFO] [stdout] 515 + if let Some(pkg) = data.0.downcast_ref::() { [INFO] [stdout] 516 + self.mem_swap_long_history.push_back(*pkg); [INFO] [stdout] 517 + if self.mem_swap_long_history.len() > HISTORY_CAP { [INFO] [stdout] 518 + self.mem_swap_long_history.pop_front(); [INFO] [stdout] 519 + } [INFO] [stdout] 520 + changed = true; [INFO] [stdout] 521 + } [INFO] [stdout] 522 + } [INFO] [stdout] 523 ~ // --- 3. CPU 核心、温度 (短周期) --- [INFO] [stdout] 524 + ANDROID_CPU => { [INFO] [stdout] 525 + if let Some(pkg) = data.0.downcast_ref::() { [INFO] [stdout] 526 + self.cpu_info_history.push_back(pkg.clone()); [INFO] [stdout] 527 + if self.cpu_info_history.len() > HISTORY_CAP { [INFO] [stdout] 528 + self.cpu_info_history.pop_front(); [INFO] [stdout] 529 + } [INFO] [stdout] 530 + changed = true; [INFO] [stdout] 531 + } [INFO] [stdout] 532 + } [INFO] [stdout] 533 ~ // --- 4. CPU 核心、温度 (长周期) --- [INFO] [stdout] 534 + ANDROID_CPU_LONG => { [INFO] [stdout] 535 + if let Some(pkg) = data.0.downcast_ref::() { [INFO] [stdout] 536 + self.cpu_info_long_history.push_back(pkg.clone()); [INFO] [stdout] 537 + if self.cpu_info_long_history.len() > HISTORY_CAP { [INFO] [stdout] 538 + self.cpu_info_long_history.pop_front(); [INFO] [stdout] 539 + } [INFO] [stdout] 540 + changed = true; [INFO] [stdout] 541 + } [INFO] [stdout] 542 + } [INFO] [stdout] 543 ~ // --- 5. 电池数据 (长周期) --- [INFO] [stdout] 544 + ANDROID_BAT => { [INFO] [stdout] 545 + if let Some(pkg) = data.0.downcast_ref::() { [INFO] [stdout] 546 + self.bat_history.push_back(pkg.clone()); [INFO] [stdout] 547 + if self.bat_history.len() > HISTORY_CAP { [INFO] [stdout] 548 + self.bat_history.pop_front(); [INFO] [stdout] 549 + } [INFO] [stdout] 550 + changed = true; [INFO] [stdout] 551 + } [INFO] [stdout] 552 + } [INFO] [stdout] 553 ~ // --- 6. 磁盘与 IP --- [INFO] [stdout] 554 + DISK_IP => { [INFO] [stdout] 555 + if let Some((disks, ips)) = data.0.downcast_ref::() { [INFO] [stdout] 556 + self.mount_points = disks.clone(); [INFO] [stdout] 557 ~ self.ip_list = ips.clone(); // 此时 ips 是 (Vec, Vec) [INFO] [stdout] 558 + changed = true; [INFO] [stdout] 559 + } [INFO] [stdout] 560 + } [INFO] [stdout] 561 + [INFO] [stdout] 562 + _ => {} [INFO] [stdout] 563 + } [INFO] [stdout] 564 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of `char::is_digit` with literal radix of 10 [INFO] [stdout] --> src/app.rs:153:37 [INFO] [stdout] | [INFO] [stdout] 153 | KeyCode::Char(c) if c.is_digit(10) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: try: `c.is_ascii_digit()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#is_digit_ascii_radix [INFO] [stdout] = note: `#[warn(clippy::is_digit_ascii_radix)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/app.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | / if let Some(comp) = self.components.get_mut(self.active_tab) { [INFO] [stdout] 176 | | if comp.handle_key(key) { [INFO] [stdout] 177 | | self.request_render(); [INFO] [stdout] 178 | | return true; [INFO] [stdout] 179 | | } [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] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 175 ~ if let Some(comp) = self.components.get_mut(self.active_tab) [INFO] [stdout] 176 ~ && comp.handle_key(key) { [INFO] [stdout] 177 | self.request_render(); [INFO] [stdout] 178 | return true; [INFO] [stdout] 179 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `SQL` contains a capitalized acronym [INFO] [stdout] --> src/constans.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | SQL, [INFO] [stdout] | ^^^ help: consider making the acronym lowercase, except the initial letter: `Sql` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] = note: `#[warn(clippy::upper_case_acronyms)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/ui/app_button.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | / if let Some((Progress::Loading, _)) = &self.state { [INFO] [stdout] 144 | | if self.tick_count % 10 == 0 { [INFO] [stdout] 145 | | changed = true; [INFO] [stdout] 146 | | } [INFO] [stdout] 147 | | } [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] 143 ~ if let Some((Progress::Loading, _)) = &self.state [INFO] [stdout] 144 ~ && self.tick_count % 10 == 0 { [INFO] [stdout] 145 | changed = true; [INFO] [stdout] 146 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/ui/app_button.rs:144:16 [INFO] [stdout] | [INFO] [stdout] 144 | if self.tick_count % 10 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `self.tick_count.is_multiple_of(10)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant guard [INFO] [stdout] --> src/ui/task_control.rs:214:50 [INFO] [stdout] | [INFO] [stdout] 214 | GlobalEvent::Data { key, .. } if key == "rend" => { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards [INFO] [stdout] = note: `#[warn(clippy::redundant_guards)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 214 - GlobalEvent::Data { key, .. } if key == "rend" => { [INFO] [stdout] 214 + GlobalEvent::Data { key: "rend", .. } => { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual checked division [INFO] [stdout] --> src/ui/info.rs:137:24 [INFO] [stdout] | [INFO] [stdout] 137 | if total > 0 { val * 100 / total } else { 0 } [INFO] [stdout] | ^^^^^^^^^ ----------------- division performed here [INFO] [stdout] | | [INFO] [stdout] | check performed here [INFO] [stdout] | [INFO] [stdout] = help: consider using `checked_div` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_checked_ops [INFO] [stdout] = note: `#[warn(clippy::manual_checked_ops)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual checked division [INFO] [stdout] --> src/ui/info.rs:163:24 [INFO] [stdout] | [INFO] [stdout] 163 | if total > 0 { val * 100 / total } else { 0 } [INFO] [stdout] | ^^^^^^^^^ ----------------- division performed here [INFO] [stdout] | | [INFO] [stdout] | check performed here [INFO] [stdout] | [INFO] [stdout] = help: consider using `checked_div` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_checked_ops [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: consider using `sort_by_key` [INFO] [stdout] --> src/ui/info.rs:353:9 [INFO] [stdout] | [INFO] [stdout] 353 | sorted_disks.sort_by(|a, b| b.1.cmp(&a.1)); // 按总空间排序 (DiskInf.1 是 total_space) [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] 353 - sorted_disks.sort_by(|a, b| b.1.cmp(&a.1)); // 按总空间排序 (DiskInf.1 是 total_space) [INFO] [stdout] 353 + sorted_disks.sort_by_key(|b| std::cmp::Reverse(b.1)); // 按总空间排序 (DiskInf.1 是 total_space) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice` [INFO] [stdout] --> src/ui/task_control.rs:414:33 [INFO] [stdout] | [INFO] [stdout] 414 | let mut chunks = chunks.into_iter(); [INFO] [stdout] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref [INFO] [stdout] = note: `#[warn(clippy::into_iter_on_ref)]` 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/ui/info.rs:482:13 [INFO] [stdout] | [INFO] [stdout] 482 | / match event { [INFO] [stdout] 483 | | [INFO] [stdout] 484 | | GlobalEvent::Data { key, data } => { [INFO] [stdout] 485 | | match key { [INFO] [stdout] ... | [INFO] [stdout] 567 | | _ => {} [INFO] [stdout] 568 | | } [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] help: try [INFO] [stdout] | [INFO] [stdout] 482 ~ if let GlobalEvent::Data { key, data } = event { [INFO] [stdout] 483 + match key { [INFO] [stdout] 484 ~ // 在 update 的 match key 逻辑中增加: [INFO] [stdout] 485 + "HISTORY_REFILL" => { [INFO] [stdout] 486 + if let Some(records) = data.0.downcast_ref::>() { [INFO] [stdout] 487 + self.cpu_info_history.clear(); [INFO] [stdout] 488 + self.mem_swap_history.clear(); [INFO] [stdout] 489 + self.bat_history.clear(); [INFO] [stdout] 490 + [INFO] [stdout] 491 + for r in records.iter().rev() { [INFO] [stdout] 492 + self.cpu_info_history.push_back(r.cpu_data.clone()); [INFO] [stdout] 493 + self.mem_swap_history.push_back(r.mem_swap); [INFO] [stdout] 494 + self.bat_history.push_back(r.battery_data.clone()); [INFO] [stdout] 495 + } [INFO] [stdout] 496 ~ // 再次补齐,防止数据量不足 HISTORY_CAP [INFO] [stdout] 497 + while self.cpu_info_history.len() < HISTORY_CAP { self.cpu_info_history.push_front(Default::default()); } [INFO] [stdout] 498 ~ // ... 对其他队列执行相同补齐操作 [INFO] [stdout] 499 + changed = true; [INFO] [stdout] 500 + } [INFO] [stdout] 501 + } [INFO] [stdout] 502 + [INFO] [stdout] 503 ~ // --- 1. 内存与 Swap (短周期) --- [INFO] [stdout] 504 + MEM_SWAP => { [INFO] [stdout] 505 + if let Some(pkg) = data.0.downcast_ref::() { [INFO] [stdout] 506 + self.mem_swap_history.push_back(*pkg); [INFO] [stdout] 507 + if self.mem_swap_history.len() > HISTORY_CAP { [INFO] [stdout] 508 + self.mem_swap_history.pop_front(); [INFO] [stdout] 509 + } [INFO] [stdout] 510 + changed = true; [INFO] [stdout] 511 + } [INFO] [stdout] 512 + } [INFO] [stdout] 513 ~ // --- 2. 内存与 Swap (长周期) --- [INFO] [stdout] 514 + MEM_SWAP_LONG => { [INFO] [stdout] 515 + if let Some(pkg) = data.0.downcast_ref::() { [INFO] [stdout] 516 + self.mem_swap_long_history.push_back(*pkg); [INFO] [stdout] 517 + if self.mem_swap_long_history.len() > HISTORY_CAP { [INFO] [stdout] 518 + self.mem_swap_long_history.pop_front(); [INFO] [stdout] 519 + } [INFO] [stdout] 520 + changed = true; [INFO] [stdout] 521 + } [INFO] [stdout] 522 + } [INFO] [stdout] 523 ~ // --- 3. CPU 核心、温度 (短周期) --- [INFO] [stdout] 524 + ANDROID_CPU => { [INFO] [stdout] 525 + if let Some(pkg) = data.0.downcast_ref::() { [INFO] [stdout] 526 + self.cpu_info_history.push_back(pkg.clone()); [INFO] [stdout] 527 + if self.cpu_info_history.len() > HISTORY_CAP { [INFO] [stdout] 528 + self.cpu_info_history.pop_front(); [INFO] [stdout] 529 + } [INFO] [stdout] 530 + changed = true; [INFO] [stdout] 531 + } [INFO] [stdout] 532 + } [INFO] [stdout] 533 ~ // --- 4. CPU 核心、温度 (长周期) --- [INFO] [stdout] 534 + ANDROID_CPU_LONG => { [INFO] [stdout] 535 + if let Some(pkg) = data.0.downcast_ref::() { [INFO] [stdout] 536 + self.cpu_info_long_history.push_back(pkg.clone()); [INFO] [stdout] 537 + if self.cpu_info_long_history.len() > HISTORY_CAP { [INFO] [stdout] 538 + self.cpu_info_long_history.pop_front(); [INFO] [stdout] 539 + } [INFO] [stdout] 540 + changed = true; [INFO] [stdout] 541 + } [INFO] [stdout] 542 + } [INFO] [stdout] 543 ~ // --- 5. 电池数据 (长周期) --- [INFO] [stdout] 544 + ANDROID_BAT => { [INFO] [stdout] 545 + if let Some(pkg) = data.0.downcast_ref::() { [INFO] [stdout] 546 + self.bat_history.push_back(pkg.clone()); [INFO] [stdout] 547 + if self.bat_history.len() > HISTORY_CAP { [INFO] [stdout] 548 + self.bat_history.pop_front(); [INFO] [stdout] 549 + } [INFO] [stdout] 550 + changed = true; [INFO] [stdout] 551 + } [INFO] [stdout] 552 + } [INFO] [stdout] 553 ~ // --- 6. 磁盘与 IP --- [INFO] [stdout] 554 + DISK_IP => { [INFO] [stdout] 555 + if let Some((disks, ips)) = data.0.downcast_ref::() { [INFO] [stdout] 556 + self.mount_points = disks.clone(); [INFO] [stdout] 557 ~ self.ip_list = ips.clone(); // 此时 ips 是 (Vec, Vec) [INFO] [stdout] 558 + changed = true; [INFO] [stdout] 559 + } [INFO] [stdout] 560 + } [INFO] [stdout] 561 + [INFO] [stdout] 562 + _ => {} [INFO] [stdout] 563 + } [INFO] [stdout] 564 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/ui/task_control.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | / if let Some(a) = chunks.next() { [INFO] [stdout] 476 | | if let Some(task) = self.tasks.get(self.selected_idx) { [INFO] [stdout] 477 | | let status_guard = task.status.read().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 520 | | } [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] 475 ~ if let Some(a) = chunks.next() [INFO] [stdout] 476 ~ && let Some(task) = self.tasks.get(self.selected_idx) { [INFO] [stdout] 477 | let status_guard = task.status.read().unwrap(); [INFO] [stdout] ... [INFO] [stdout] 518 | ); [INFO] [stdout] 519 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/ui/task_control.rs:559:21 [INFO] [stdout] | [INFO] [stdout] 559 | / if let Some(task) = self.tasks.get(self.selected_idx) { [INFO] [stdout] 560 | | if let Some(tx) = &task.control_tx { [INFO] [stdout] 561 | | // 发送给进程 [INFO] [stdout] 562 | | let _ = tx.try_send(TaskControlMsg::Stdin(self.input.clone())); [INFO] [stdout] ... | [INFO] [stdout] 568 | | } [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] 559 ~ if let Some(task) = self.tasks.get(self.selected_idx) [INFO] [stdout] 560 ~ && let Some(tx) = &task.control_tx { [INFO] [stdout] 561 | // 发送给进程 [INFO] [stdout] ... [INFO] [stdout] 566 | } [INFO] [stdout] 567 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/ui/db_view.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | / if let GlobalEvent::Data { key, data } = event { [INFO] [stdout] 44 | | if key == SQLITE_STATS_KEY { [INFO] [stdout] 45 | | if let Ok(stats) = data.0.downcast::>() { [INFO] [stdout] 46 | | self.tables = (*stats).clone(); [INFO] [stdout] ... | [INFO] [stdout] 54 | | } [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] 43 ~ if let GlobalEvent::Data { key, data } = event [INFO] [stdout] 44 ~ && key == SQLITE_STATS_KEY { [INFO] [stdout] 45 | if let Ok(stats) = data.0.downcast::>() { [INFO] [stdout] ... [INFO] [stdout] 52 | } [INFO] [stdout] 53 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/ui/db_view.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | / if key == SQLITE_STATS_KEY { [INFO] [stdout] 45 | | if let Ok(stats) = data.0.downcast::>() { [INFO] [stdout] 46 | | self.tables = (*stats).clone(); [INFO] [stdout] 47 | | self.is_loading = false; [INFO] [stdout] ... | [INFO] [stdout] 53 | | } [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] 44 ~ if key == SQLITE_STATS_KEY [INFO] [stdout] 45 ~ && let Ok(stats) = data.0.downcast::>() { [INFO] [stdout] 46 | self.tables = (*stats).clone(); [INFO] [stdout] ... [INFO] [stdout] 51 | changed = true; [INFO] [stdout] 52 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | / if let Ok(e) = res { [INFO] [stdout] 57 | | if e.kind.is_modify() { [INFO] [stdout] 58 | | let _ = tx.blocking_send(()); [INFO] [stdout] 59 | | } [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_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 56 ~ if let Ok(e) = res [INFO] [stdout] 57 ~ && e.kind.is_modify() { [INFO] [stdout] 58 | let _ = tx.blocking_send(()); [INFO] [stdout] 59 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_some()` [INFO] [stdout] --> src/main.rs:68:19 [INFO] [stdout] | [INFO] [stdout] 68 | while let Some(_) = rx.recv().await { [INFO] [stdout] | ----------^^^^^^^------------------ help: try: `while rx.recv().await.is_some()` [INFO] [stdout] | [INFO] [stdout] = note: this will change drop order of the result, as well as all temporaries [INFO] [stdout] = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] = note: `#[warn(clippy::redundant_pattern_matching)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant guard [INFO] [stdout] --> src/ui/task_control.rs:214:50 [INFO] [stdout] | [INFO] [stdout] 214 | GlobalEvent::Data { key, .. } if key == "rend" => { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards [INFO] [stdout] = note: `#[warn(clippy::redundant_guards)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 214 - GlobalEvent::Data { key, .. } if key == "rend" => { [INFO] [stdout] 214 + GlobalEvent::Data { key: "rend", .. } => { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:404:9 [INFO] [stdout] | [INFO] [stdout] 404 | / if crossterm::event::poll(std::time::Duration::from_millis(50))? { [INFO] [stdout] 405 | | if let crossterm::event::Event::Key(_) = crossterm::event::read()? { [INFO] [stdout] 406 | | break; [INFO] [stdout] 407 | | } [INFO] [stdout] 408 | | } [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] 404 ~ if crossterm::event::poll(std::time::Duration::from_millis(50))? [INFO] [stdout] 405 ~ && let crossterm::event::Event::Key(_) = crossterm::event::read()? { [INFO] [stdout] 406 | break; [INFO] [stdout] 407 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `slice` [INFO] [stdout] --> src/ui/task_control.rs:414:33 [INFO] [stdout] | [INFO] [stdout] 414 | let mut chunks = chunks.into_iter(); [INFO] [stdout] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref [INFO] [stdout] = note: `#[warn(clippy::into_iter_on_ref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/ui/task_control.rs:475:9 [INFO] [stdout] | [INFO] [stdout] 475 | / if let Some(a) = chunks.next() { [INFO] [stdout] 476 | | if let Some(task) = self.tasks.get(self.selected_idx) { [INFO] [stdout] 477 | | let status_guard = task.status.read().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 520 | | } [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] 475 ~ if let Some(a) = chunks.next() [INFO] [stdout] 476 ~ && let Some(task) = self.tasks.get(self.selected_idx) { [INFO] [stdout] 477 | let status_guard = task.status.read().unwrap(); [INFO] [stdout] ... [INFO] [stdout] 518 | ); [INFO] [stdout] 519 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/ui/task_control.rs:559:21 [INFO] [stdout] | [INFO] [stdout] 559 | / if let Some(task) = self.tasks.get(self.selected_idx) { [INFO] [stdout] 560 | | if let Some(tx) = &task.control_tx { [INFO] [stdout] 561 | | // 发送给进程 [INFO] [stdout] 562 | | let _ = tx.try_send(TaskControlMsg::Stdin(self.input.clone())); [INFO] [stdout] ... | [INFO] [stdout] 568 | | } [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] 559 ~ if let Some(task) = self.tasks.get(self.selected_idx) [INFO] [stdout] 560 ~ && let Some(tx) = &task.control_tx { [INFO] [stdout] 561 | // 发送给进程 [INFO] [stdout] ... [INFO] [stdout] 566 | } [INFO] [stdout] 567 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/ui/db_view.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | / if let GlobalEvent::Data { key, data } = event { [INFO] [stdout] 44 | | if key == SQLITE_STATS_KEY { [INFO] [stdout] 45 | | if let Ok(stats) = data.0.downcast::>() { [INFO] [stdout] 46 | | self.tables = (*stats).clone(); [INFO] [stdout] ... | [INFO] [stdout] 54 | | } [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] 43 ~ if let GlobalEvent::Data { key, data } = event [INFO] [stdout] 44 ~ && key == SQLITE_STATS_KEY { [INFO] [stdout] 45 | if let Ok(stats) = data.0.downcast::>() { [INFO] [stdout] ... [INFO] [stdout] 52 | } [INFO] [stdout] 53 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/ui/db_view.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | / if key == SQLITE_STATS_KEY { [INFO] [stdout] 45 | | if let Ok(stats) = data.0.downcast::>() { [INFO] [stdout] 46 | | self.tables = (*stats).clone(); [INFO] [stdout] 47 | | self.is_loading = false; [INFO] [stdout] ... | [INFO] [stdout] 53 | | } [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] 44 ~ if key == SQLITE_STATS_KEY [INFO] [stdout] 45 ~ && let Ok(stats) = data.0.downcast::>() { [INFO] [stdout] 46 | self.tables = (*stats).clone(); [INFO] [stdout] ... [INFO] [stdout] 51 | changed = true; [INFO] [stdout] 52 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | / if let Ok(e) = res { [INFO] [stdout] 57 | | if e.kind.is_modify() { [INFO] [stdout] 58 | | let _ = tx.blocking_send(()); [INFO] [stdout] 59 | | } [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_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 56 ~ if let Ok(e) = res [INFO] [stdout] 57 ~ && e.kind.is_modify() { [INFO] [stdout] 58 | let _ = tx.blocking_send(()); [INFO] [stdout] 59 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_some()` [INFO] [stdout] --> src/main.rs:68:19 [INFO] [stdout] | [INFO] [stdout] 68 | while let Some(_) = rx.recv().await { [INFO] [stdout] | ----------^^^^^^^------------------ help: try: `while rx.recv().await.is_some()` [INFO] [stdout] | [INFO] [stdout] = note: this will change drop order of the result, as well as all temporaries [INFO] [stdout] = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] = note: `#[warn(clippy::redundant_pattern_matching)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:404:9 [INFO] [stdout] | [INFO] [stdout] 404 | / if crossterm::event::poll(std::time::Duration::from_millis(50))? { [INFO] [stdout] 405 | | if let crossterm::event::Event::Key(_) = crossterm::event::read()? { [INFO] [stdout] 406 | | break; [INFO] [stdout] 407 | | } [INFO] [stdout] 408 | | } [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] 404 ~ if crossterm::event::poll(std::time::Duration::from_millis(50))? [INFO] [stdout] 405 ~ && let crossterm::event::Event::Key(_) = crossterm::event::read()? { [INFO] [stdout] 406 | break; [INFO] [stdout] 407 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 53s [INFO] running `Command { std: "docker" "inspect" "472a67ca0567c5b6dae83f628a5c8c0b6e36244ed5ae87fdd5fa357d39473bcf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "472a67ca0567c5b6dae83f628a5c8c0b6e36244ed5ae87fdd5fa357d39473bcf", kill_on_drop: false }` [INFO] [stdout] 472a67ca0567c5b6dae83f628a5c8c0b6e36244ed5ae87fdd5fa357d39473bcf