[INFO] cloning repository https://github.com/boren07/fun-cli [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/boren07/fun-cli" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fboren07%2Ffun-cli", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fboren07%2Ffun-cli'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 73ac49b664bf1d60a905c66975841f0b66808237 [INFO] building boren07/fun-cli against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fboren07%2Ffun-cli" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/boren07/fun-cli [INFO] finished tweaking git repo https://github.com/boren07/fun-cli [INFO] tweaked toml for git repo https://github.com/boren07/fun-cli written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/boren07/fun-cli on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/boren07/fun-cli 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c62d1d86fd65016ea3f9b0d1ac3cf7422056533348047e5ab832e1801cd9312b [INFO] running `Command { std: "docker" "start" "-a" "c62d1d86fd65016ea3f9b0d1ac3cf7422056533348047e5ab832e1801cd9312b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c62d1d86fd65016ea3f9b0d1ac3cf7422056533348047e5ab832e1801cd9312b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c62d1d86fd65016ea3f9b0d1ac3cf7422056533348047e5ab832e1801cd9312b", kill_on_drop: false }` [INFO] [stdout] c62d1d86fd65016ea3f9b0d1ac3cf7422056533348047e5ab832e1801cd9312b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5bb0f3aacafd4806c14abbe70cb1adaf874141e0906dc4274ae602e5957df116 [INFO] running `Command { std: "docker" "start" "-a" "5bb0f3aacafd4806c14abbe70cb1adaf874141e0906dc4274ae602e5957df116", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling bitflags v2.9.3 [INFO] [stderr] Compiling cc v1.2.34 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling indexmap v2.11.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling libloading v0.8.8 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling bindgen v0.72.0 [INFO] [stderr] Compiling bytemuck v1.23.2 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling symphonia-core v0.5.4 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling rustc-hash v2.1.1 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling symphonia-metadata v0.5.4 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling compression-core v0.4.29 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling cpal v0.15.3 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling compression-codecs v0.4.29 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling alsa v0.9.1 [INFO] [stderr] Compiling symphonia-bundle-mp3 v0.5.4 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling netlink-packet-utils v0.5.2 [INFO] [stderr] Compiling netlink-packet-core v0.7.0 [INFO] [stderr] Compiling ogg v0.8.0 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling transpose v0.2.3 [INFO] [stderr] Compiling clap_builder v4.5.46 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling clap_derive v4.5.45 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling lewton v0.10.2 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling netstat2 v0.11.2 [INFO] [stderr] Compiling netlink-packet-sock-diag v0.4.2 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling symphonia v0.5.4 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling signal-hook-mio v0.2.4 [INFO] [stderr] Compiling async-compression v0.4.29 [INFO] [stderr] Compiling primal-check v0.3.4 [INFO] [stderr] Compiling netlink-sys v0.8.7 [INFO] [stderr] Compiling hound v3.5.1 [INFO] [stderr] Compiling claxon v0.4.3 [INFO] [stderr] Compiling clap v4.5.46 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rustfft v6.4.0 [INFO] [stderr] Compiling crossterm v0.28.1 [INFO] [stderr] Compiling rodio v0.19.0 [INFO] [stderr] Compiling unicode-width v0.2.1 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling sysinfo v0.31.4 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling fun-cli v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::sync::LazyLock` [INFO] [stdout] --> src/impls/weather.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::LazyLock; [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 import: `Deserializer` [INFO] [stdout] --> src/impls/weather.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::IntoDeserializer` [INFO] [stdout] --> src/impls/weather.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::de::IntoDeserializer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::cli::Commands` [INFO] [stdout] --> src/impls/weather.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::cli::Commands; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/impls/music.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Seek` [INFO] [stdout] --> src/impls/music.rs:10:48 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::{stdout, BufReader, Cursor, Read, Seek, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/impls/music.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::consts` [INFO] [stdout] --> src/impls/music.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::utils::consts; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::string::ToString` [INFO] [stdout] --> src/impls/game.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::string::ToString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `iter` [INFO] [stdout] --> src/impls/os.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{io, iter}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/impls/os.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/impls/os.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MoveTo` [INFO] [stdout] --> src/impls/os.rs:10:31 [INFO] [stdout] | [INFO] [stdout] 10 | use crossterm::cursor::{Hide, MoveTo, Show}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `queue` [INFO] [stdout] --> src/impls/os.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | use crossterm::{execute, queue}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Color`, `Print`, and `Stylize` [INFO] [stdout] --> src/impls/os.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | use crossterm::style::{Color, Print, SetBackgroundColor, Stylize}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `disable_raw_mode` and `enable_raw_mode` [INFO] [stdout] --> src/impls/os.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | use crossterm::terminal::{disable_raw_mode, enable_raw_mode, size, Clear, ClearType, EnterAlternateScreen, LeaveAlternateScreen}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Disk` [INFO] [stdout] --> src/impls/os.rs:15:27 [INFO] [stdout] | [INFO] [stdout] 15 | use sysinfo::{Components, Disk, System}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyEventKind` [INFO] [stdout] --> src/impls/games/thunder_fighter/game.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use crossterm::event::{KeyCode, KeyEventKind}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Color` and `SetBackgroundColor` [INFO] [stdout] --> src/impls/games/thunder_fighter/game.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use crossterm::style::{Color, Print, SetBackgroundColor, Stylize}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `event`, `queue`, and `terminal` [INFO] [stdout] --> src/impls/games/thunder_fighter/game.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use crossterm::{cursor, event, execute, queue, terminal}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/impls/games/thunder_fighter/game.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `result` [INFO] [stdout] --> src/impls/games/thunder_fighter/game.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | use std::{result, thread}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> src/impls/games/thunder_fighter/entity.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stdout` [INFO] [stdout] --> src/impls/games/thunder_fighter/entity.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{stdout, Stdout}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crossterm::cursor::position` [INFO] [stdout] --> src/impls/games/thunder_fighter/entity.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crossterm::cursor::position; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/impls/osystem/cpu.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ExecutableCommand` [INFO] [stdout] --> src/impls/osystem/cpu.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use crossterm::{queue, ExecutableCommand}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cpu` [INFO] [stdout] --> src/impls/osystem/cpu.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use sysinfo::{Cpu, System}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Process` [INFO] [stdout] --> src/impls/osystem/process.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | use sysinfo::{Pid, Process, System}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crossterm::event::Event` [INFO] [stdout] --> src/impls/osystem/memory.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crossterm::event::Event; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stylize` [INFO] [stdout] --> src/impls/osystem/memory.rs:5:51 [INFO] [stdout] | [INFO] [stdout] 5 | use crossterm::style::{Print, SetForegroundColor, Stylize}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/impls/osystem/disk.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stylize` [INFO] [stdout] --> src/ui/widget.rs:5:63 [INFO] [stdout] | [INFO] [stdout] 5 | use crossterm::style::{Print, ResetColor, SetForegroundColor, Stylize}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExecutableCommand` and `QueueableCommand` [INFO] [stdout] --> src/ui/widget.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use crossterm::{queue, ExecutableCommand, QueueableCommand}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CommandHandler` [INFO] [stdout] --> src/cli.rs:2:46 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::impls::handlers::{CombineHandler, CommandHandler}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ComplexFloat` [INFO] [stdout] --> src/impls/music.rs:7:37 [INFO] [stdout] | [INFO] [stdout] 7 | use rustfft::num_complex::{Complex, ComplexFloat}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/impls/music.rs:10:42 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::{stdout, BufReader, Cursor, Read, Seek, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnicodeWidthChar` [INFO] [stdout] --> src/impls/games/thunder_fighter/game.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | use unicode_width::{UnicodeWidthChar, UnicodeWidthStr}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/ui/widget.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::{self, Stdout, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `is_playing` is never read [INFO] [stdout] --> src/impls/music.rs:199:17 [INFO] [stdout] | [INFO] [stdout] 199 | is_playing = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/impls/music.rs:139:56 [INFO] [stdout] | [INFO] [stdout] 139 | let sink = Sink::try_new(&handle).map_err(|e| CliError::UnknownError("播放音频出现错误!!!".to_owned()))?; [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: variable does not need to be mutable [INFO] [stdout] --> src/impls/osystem/disk.rs:60:14 [INFO] [stdout] | [INFO] [stdout] 60 | let (mut x,y) = (self.coordinate().x+2, self.coordinate().y+2); [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: variable does not need to be mutable [INFO] [stdout] --> src/impls/games/thunder_fighter/game.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | let mut game = Arc::new(Mutex::new(ThunderFighterGameState::new( [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/ui/widget.rs:25:32 [INFO] [stdout] | [INFO] [stdout] 25 | fn handle_event(&mut self, event: KeyCode) -> bool { false } [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `focused` [INFO] [stdout] --> src/ui/widget.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | fn set_focus(&mut self, focused: bool) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_focused` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_bound` [INFO] [stdout] --> src/impls/games/thunder_fighter/entity.rs:74:47 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn update_bullets_by_speed(&mut self, max_bound: u16) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_bound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left_top` [INFO] [stdout] --> src/impls/os.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | let left_top = self.layout.get(&LayoutPosition::LeftTop).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_top` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left_bottom` [INFO] [stdout] --> src/impls/os.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | let left_bottom = self.layout.get(&LayoutPosition::LeftBottom).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_bottom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sys` [INFO] [stdout] --> src/impls/os.rs:154:56 [INFO] [stdout] | [INFO] [stdout] 154 | fn set_overview_panel_list(list: &mut List,sys: &mut System) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/impls/handlers.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/impls/handlers.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 25 | Commands::Weather(handler) => { [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 28 | Commands::Music(handler) => { [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 31 | Commands::Curl(handler) => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 34 | Commands::Game(handler) => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 40 | _ => { [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `WeatherResult` is more private than the item `WeatherHandler::get_now_weather` [INFO] [stdout] --> src/impls/weather.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn get_now_weather(&self,city: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `WeatherHandler::get_now_weather` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `WeatherResult` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/impls/weather.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | struct WeatherResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `NetCloudMusic` is more private than the item `MusicHandler::get_internet_music` [INFO] [stdout] --> src/impls/music.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn get_internet_music(&self, client: &Client) -> Result> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `MusicHandler::get_internet_music` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `NetCloudMusic` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/impls/music.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | struct NetCloudMusic { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/impls/weather.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl WeatherHandler { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 21 | pub fn new(city: String, mode: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `lyric` is never read [INFO] [stdout] --> src/impls/music.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct NetCloudMusic { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 42 | lyric: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetCloudMusic` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/impls/music.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl MusicHandler { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 50 | [INFO] [stdout] 51 | pub fn new(name: String, play: bool, loop_play: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update` is never used [INFO] [stdout] --> src/impls/games/thunder_fighter/entity.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 116 | impl Enemy { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 117 | /// Update the enemy position [INFO] [stdout] 118 | pub fn update(&mut self, max_bound: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `physical_core_count` is never read [INFO] [stdout] --> src/impls/osystem/cpu.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct CpuWidget { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | physical_core_count: usize, // CPU物理核心数 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HandlerParamMissError` is never constructed [INFO] [stdout] --> src/error.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum CliError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 6 | NoMatchHandlerError, [INFO] [stdout] 7 | HandlerParamMissError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CliError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIZE_KB` is never used [INFO] [stdout] --> src/utils/consts.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub const SIZE_KB: u64 = 1024; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `bounds` and `render_on_window` are never used [INFO] [stdout] --> src/ui/widget.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait Widget { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] 12 | /// 获取组件边界坐标 [INFO] [stdout] 13 | fn bounds(&self) -> (Coordinate, Coordinate) { (self.coordinate(), Coordinate::new(self.width(), self.height())) } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn render_on_window(&self, stdout: &mut Stdout,coordinate: Coordinate, content: String)-> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_item` is never used [INFO] [stdout] --> src/ui/widget.rs:162:12 [INFO] [stdout] | [INFO] [stdout] 140 | impl List { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn add_item(&mut self, item: T) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 08s [INFO] running `Command { std: "docker" "inspect" "5bb0f3aacafd4806c14abbe70cb1adaf874141e0906dc4274ae602e5957df116", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5bb0f3aacafd4806c14abbe70cb1adaf874141e0906dc4274ae602e5957df116", kill_on_drop: false }` [INFO] [stdout] 5bb0f3aacafd4806c14abbe70cb1adaf874141e0906dc4274ae602e5957df116 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3a41873445ac9d0ad278af7d4a0f9e161c3b2ec104b0b7a51482c9a89d40f458 [INFO] running `Command { std: "docker" "start" "-a" "3a41873445ac9d0ad278af7d4a0f9e161c3b2ec104b0b7a51482c9a89d40f458", kill_on_drop: false }` [INFO] [stderr] Compiling fun-cli v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::sync::LazyLock` [INFO] [stdout] --> src/impls/weather.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::LazyLock; [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 import: `Deserializer` [INFO] [stdout] --> src/impls/weather.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::IntoDeserializer` [INFO] [stdout] --> src/impls/weather.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::de::IntoDeserializer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::cli::Commands` [INFO] [stdout] --> src/impls/weather.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::cli::Commands; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/impls/music.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Seek` [INFO] [stdout] --> src/impls/music.rs:10:48 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::{stdout, BufReader, Cursor, Read, Seek, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/impls/music.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::consts` [INFO] [stdout] --> src/impls/music.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::utils::consts; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::string::ToString` [INFO] [stdout] --> src/impls/game.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::string::ToString; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `iter` [INFO] [stdout] --> src/impls/os.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{io, iter}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/impls/os.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/impls/os.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MoveTo` [INFO] [stdout] --> src/impls/os.rs:10:31 [INFO] [stdout] | [INFO] [stdout] 10 | use crossterm::cursor::{Hide, MoveTo, Show}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `queue` [INFO] [stdout] --> src/impls/os.rs:12:26 [INFO] [stdout] | [INFO] [stdout] 12 | use crossterm::{execute, queue}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Color`, `Print`, and `Stylize` [INFO] [stdout] --> src/impls/os.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | use crossterm::style::{Color, Print, SetBackgroundColor, Stylize}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `disable_raw_mode` and `enable_raw_mode` [INFO] [stdout] --> src/impls/os.rs:14:27 [INFO] [stdout] | [INFO] [stdout] 14 | use crossterm::terminal::{disable_raw_mode, enable_raw_mode, size, Clear, ClearType, EnterAlternateScreen, LeaveAlternateScreen}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Disk` [INFO] [stdout] --> src/impls/os.rs:15:27 [INFO] [stdout] | [INFO] [stdout] 15 | use sysinfo::{Components, Disk, System}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `KeyEventKind` [INFO] [stdout] --> src/impls/games/thunder_fighter/game.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use crossterm::event::{KeyCode, KeyEventKind}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Color` and `SetBackgroundColor` [INFO] [stdout] --> src/impls/games/thunder_fighter/game.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use crossterm::style::{Color, Print, SetBackgroundColor, Stylize}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `event`, `queue`, and `terminal` [INFO] [stdout] --> src/impls/games/thunder_fighter/game.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use crossterm::{cursor, event, execute, queue, terminal}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/impls/games/thunder_fighter/game.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `result` [INFO] [stdout] --> src/impls/games/thunder_fighter/game.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | use std::{result, thread}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::max` [INFO] [stdout] --> src/impls/games/thunder_fighter/entity.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::max; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stdout` [INFO] [stdout] --> src/impls/games/thunder_fighter/entity.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{stdout, Stdout}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crossterm::cursor::position` [INFO] [stdout] --> src/impls/games/thunder_fighter/entity.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crossterm::cursor::position; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/impls/osystem/cpu.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ExecutableCommand` [INFO] [stdout] --> src/impls/osystem/cpu.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use crossterm::{queue, ExecutableCommand}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cpu` [INFO] [stdout] --> src/impls/osystem/cpu.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use sysinfo::{Cpu, System}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Process` [INFO] [stdout] --> src/impls/osystem/process.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | use sysinfo::{Pid, Process, System}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crossterm::event::Event` [INFO] [stdout] --> src/impls/osystem/memory.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crossterm::event::Event; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stylize` [INFO] [stdout] --> src/impls/osystem/memory.rs:5:51 [INFO] [stdout] | [INFO] [stdout] 5 | use crossterm::style::{Print, SetForegroundColor, Stylize}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> src/impls/osystem/disk.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stylize` [INFO] [stdout] --> src/ui/widget.rs:5:63 [INFO] [stdout] | [INFO] [stdout] 5 | use crossterm::style::{Print, ResetColor, SetForegroundColor, Stylize}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExecutableCommand` and `QueueableCommand` [INFO] [stdout] --> src/ui/widget.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use crossterm::{queue, ExecutableCommand, QueueableCommand}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CommandHandler` [INFO] [stdout] --> src/cli.rs:2:46 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::impls::handlers::{CombineHandler, CommandHandler}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ComplexFloat` [INFO] [stdout] --> src/impls/music.rs:7:37 [INFO] [stdout] | [INFO] [stdout] 7 | use rustfft::num_complex::{Complex, ComplexFloat}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/impls/music.rs:10:42 [INFO] [stdout] | [INFO] [stdout] 10 | use std::io::{stdout, BufReader, Cursor, Read, Seek, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnicodeWidthChar` [INFO] [stdout] --> src/impls/games/thunder_fighter/game.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | use unicode_width::{UnicodeWidthChar, UnicodeWidthStr}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `is_playing` is never read [INFO] [stdout] --> src/impls/music.rs:199:17 [INFO] [stdout] | [INFO] [stdout] 199 | is_playing = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/impls/music.rs:139:56 [INFO] [stdout] | [INFO] [stdout] 139 | let sink = Sink::try_new(&handle).map_err(|e| CliError::UnknownError("播放音频出现错误!!!".to_owned()))?; [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: variable does not need to be mutable [INFO] [stdout] --> src/impls/osystem/disk.rs:60:14 [INFO] [stdout] | [INFO] [stdout] 60 | let (mut x,y) = (self.coordinate().x+2, self.coordinate().y+2); [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: `event` [INFO] [stdout] --> src/ui/widget.rs:25:32 [INFO] [stdout] | [INFO] [stdout] 25 | fn handle_event(&mut self, event: KeyCode) -> bool { false } [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `focused` [INFO] [stdout] --> src/ui/widget.rs:28:29 [INFO] [stdout] | [INFO] [stdout] 28 | fn set_focus(&mut self, focused: bool) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_focused` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/impls/games/thunder_fighter/game.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | let mut game = Arc::new(Mutex::new(ThunderFighterGameState::new( [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_bound` [INFO] [stdout] --> src/impls/games/thunder_fighter/entity.rs:74:47 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn update_bullets_by_speed(&mut self, max_bound: u16) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_bound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left_top` [INFO] [stdout] --> src/impls/os.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | let left_top = self.layout.get(&LayoutPosition::LeftTop).unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_top` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left_bottom` [INFO] [stdout] --> src/impls/os.rs:120:13 [INFO] [stdout] | [INFO] [stdout] 120 | let left_bottom = self.layout.get(&LayoutPosition::LeftBottom).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_bottom` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/impls/handlers.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/impls/handlers.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 25 | Commands::Weather(handler) => { [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 28 | Commands::Music(handler) => { [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 31 | Commands::Curl(handler) => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 34 | Commands::Game(handler) => { [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 40 | _ => { [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sys` [INFO] [stdout] --> src/impls/os.rs:154:56 [INFO] [stdout] | [INFO] [stdout] 154 | fn set_overview_panel_list(list: &mut List,sys: &mut System) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sys` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `WeatherResult` is more private than the item `WeatherHandler::get_now_weather` [INFO] [stdout] --> src/impls/weather.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn get_now_weather(&self,city: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `WeatherHandler::get_now_weather` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `WeatherResult` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/impls/weather.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | struct WeatherResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `NetCloudMusic` is more private than the item `music::MusicHandler::get_internet_music` [INFO] [stdout] --> src/impls/music.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn get_internet_music(&self, client: &Client) -> Result> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `music::MusicHandler::get_internet_music` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `NetCloudMusic` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/impls/music.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | struct NetCloudMusic { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/impls/weather.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl WeatherHandler { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 21 | pub fn new(city: String, mode: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SIZE_KB` is never used [INFO] [stdout] --> src/utils/consts.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | pub const SIZE_KB: u64 = 1024; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `physical_core_count` is never read [INFO] [stdout] --> src/impls/osystem/cpu.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct CpuWidget { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | physical_core_count: usize, // CPU物理核心数 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `lyric` is never read [INFO] [stdout] --> src/impls/music.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 34 | struct NetCloudMusic { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 42 | lyric: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetCloudMusic` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `bounds` and `render_on_window` are never used [INFO] [stdout] --> src/ui/widget.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait Widget { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] 12 | /// 获取组件边界坐标 [INFO] [stdout] 13 | fn bounds(&self) -> (Coordinate, Coordinate) { (self.coordinate(), Coordinate::new(self.width(), self.height())) } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn render_on_window(&self, stdout: &mut Stdout,coordinate: Coordinate, content: String)-> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_item` is never used [INFO] [stdout] --> src/ui/widget.rs:162:12 [INFO] [stdout] | [INFO] [stdout] 140 | impl List { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn add_item(&mut self, item: T) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HandlerParamMissError` is never constructed [INFO] [stdout] --> src/error.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum CliError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 6 | NoMatchHandlerError, [INFO] [stdout] 7 | HandlerParamMissError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CliError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update` is never used [INFO] [stdout] --> src/impls/games/thunder_fighter/entity.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 116 | impl Enemy { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 117 | /// Update the enemy position [INFO] [stdout] 118 | pub fn update(&mut self, max_bound: u16) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 24.22s [INFO] running `Command { std: "docker" "inspect" "3a41873445ac9d0ad278af7d4a0f9e161c3b2ec104b0b7a51482c9a89d40f458", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a41873445ac9d0ad278af7d4a0f9e161c3b2ec104b0b7a51482c9a89d40f458", kill_on_drop: false }` [INFO] [stdout] 3a41873445ac9d0ad278af7d4a0f9e161c3b2ec104b0b7a51482c9a89d40f458