[INFO] cloning repository https://github.com/web3qt/everscan [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/web3qt/everscan" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fweb3qt%2Feverscan", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fweb3qt%2Feverscan'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 08e8cb18ba061115f3bb28bc7fffb4787743264b [INFO] building web3qt/everscan against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fweb3qt%2Feverscan" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/web3qt/everscan [INFO] finished tweaking git repo https://github.com/web3qt/everscan [INFO] tweaked toml for git repo https://github.com/web3qt/everscan written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/web3qt/everscan on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/web3qt/everscan 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cron v0.12.1 [INFO] [stderr] Downloaded axum-macros v0.4.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0bf88961bfe3b327342005f94710de88e9c0ca64ef4e819334d3a5fc533e511e [INFO] running `Command { std: "docker" "start" "-a" "0bf88961bfe3b327342005f94710de88e9c0ca64ef4e819334d3a5fc533e511e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0bf88961bfe3b327342005f94710de88e9c0ca64ef4e819334d3a5fc533e511e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0bf88961bfe3b327342005f94710de88e9c0ca64ef4e819334d3a5fc533e511e", kill_on_drop: false }` [INFO] [stdout] 0bf88961bfe3b327342005f94710de88e9c0ca64ef4e819334d3a5fc533e511e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f19ed64129b1bb34d56584eada3e73b2dba746fb3dc290fef352b1d4c9f5497 [INFO] running `Command { std: "docker" "start" "-a" "6f19ed64129b1bb34d56584eada3e73b2dba746fb3dc290fef352b1d4c9f5497", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling cc v1.2.29 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling rustversion v1.0.21 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling http-range-header v0.4.2 [INFO] [stderr] Compiling base64ct v1.8.0 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling axum-macros v0.4.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tokio v1.46.1 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tungstenite v0.24.0 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tungstenite v0.21.0 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-tungstenite v0.24.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling tokio-tungstenite v0.21.0 [INFO] [stderr] Compiling hyper-util v0.1.15 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling cron v0.12.1 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling everscan v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/tasks/crypto_market_task.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [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: `warn` [INFO] [stdout] --> src/tasks/crypto_market_task.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use tracing::{info, error, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/tasks/crypto_market_task.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/tasks/fear_greed_task.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/tasks/fear_greed_task.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use tracing::{info, error, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/tasks/altcoin_season_task.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/tasks/altcoin_season_task.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use tracing::{info, error, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `task_manager::*` [INFO] [stdout] --> src/tasks/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use task_manager::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/web/cache.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stats_json` [INFO] [stdout] --> src/web/websocket.rs:89:39 [INFO] [stdout] | [INFO] [stdout] 89 | ... if let Ok(stats_json) = serde_json::to_string(&stats) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stats_json` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CmcFearGreedResponse` is never constructed [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | struct CmcFearGreedResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CmcFearGreedData` is never constructed [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | struct CmcFearGreedData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CmcFearGreedHistoryResponse` is never constructed [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | struct CmcFearGreedHistoryResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CmcFearGreedHistoryData` is never constructed [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | struct CmcFearGreedHistoryData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, `cmc_rank`, and `last_updated` are never read [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 151 | struct CmcIndexData { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 152 | id: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 153 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | cmc_rank: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 157 | last_updated: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CmcIndexData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 162 | struct Quote { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 168 | last_updated: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 169 | // 新增字段 [INFO] [stdout] 170 | fully_diluted_market_cap: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 171 | market_cap_dominance: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 172 | percent_change_1h: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 173 | percent_change_30d: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 174 | percent_change_60d: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 175 | percent_change_90d: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 176 | tvl: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 177 | volume_change_24h: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Quote` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `timestamp`, `elapsed`, `credit_count`, and `notice` are never read [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 182 | struct ApiStatus { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 183 | timestamp: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | elapsed: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 188 | credit_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 189 | notice: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiStatus` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:205:5 [INFO] [stdout] | [INFO] [stdout] 201 | struct CryptocurrencyInfo { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 205 | slug: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 206 | num_market_pairs: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 207 | date_added: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 208 | tags: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 209 | max_supply: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 210 | circulating_supply: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 211 | total_supply: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 212 | platform: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | infinite_supply: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 218 | is_active: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 219 | is_fiat: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 220 | self_reported_circulating_supply: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 221 | self_reported_market_cap: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 222 | tvl_ratio: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CryptocurrencyInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/web/mod.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct WebServer { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 32 | /// 应用配置 [INFO] [stdout] 33 | config: AppConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WebServer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `not_found` is never used [INFO] [stdout] --> src/web/mod.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | async fn not_found(Path(path): Path) -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TestResponse` is never constructed [INFO] [stdout] --> src/bin/test_fear_greed.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct TestResponse { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/tasks/crypto_market_task.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [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: `warn` [INFO] [stdout] --> src/tasks/crypto_market_task.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use tracing::{info, error, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/tasks/crypto_market_task.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/tasks/fear_greed_task.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/tasks/fear_greed_task.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use tracing::{info, error, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/tasks/altcoin_season_task.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/tasks/altcoin_season_task.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use tracing::{info, error, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `task_manager::*` [INFO] [stdout] --> src/tasks/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use task_manager::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/web/cache.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stats_json` [INFO] [stdout] --> src/web/websocket.rs:89:39 [INFO] [stdout] | [INFO] [stdout] 89 | ... if let Ok(stats_json) = serde_json::to_string(&stats) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stats_json` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `default` is never used [INFO] [stdout] --> src/config.rs:117:12 [INFO] [stdout] | [INFO] [stdout] 60 | impl AppConfig { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn default() -> 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: trait `ApiClient` is never used [INFO] [stdout] --> src/clients/mod.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait ApiClient { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HttpClientBuilder` is never constructed [INFO] [stdout] --> src/clients/mod.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct HttpClientBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `timeout`, `user_agent`, and `build` are never used [INFO] [stdout] --> src/clients/mod.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl HttpClientBuilder { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 45 | /// 创建新的HTTP客户端构建器 [INFO] [stdout] 46 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn timeout(mut self, timeout: Duration) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn user_agent(mut self, user_agent: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn build(self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CmcFearGreedResponse` is never constructed [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | struct CmcFearGreedResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CmcFearGreedData` is never constructed [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | struct CmcFearGreedData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CmcFearGreedHistoryResponse` is never constructed [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | struct CmcFearGreedHistoryResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CmcFearGreedHistoryData` is never constructed [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | struct CmcFearGreedHistoryData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, `cmc_rank`, and `last_updated` are never read [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 151 | struct CmcIndexData { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 152 | id: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 153 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | cmc_rank: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 157 | last_updated: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CmcIndexData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 162 | struct Quote { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 168 | last_updated: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 169 | // 新增字段 [INFO] [stdout] 170 | fully_diluted_market_cap: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 171 | market_cap_dominance: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 172 | percent_change_1h: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 173 | percent_change_30d: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 174 | percent_change_60d: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 175 | percent_change_90d: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 176 | tvl: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 177 | volume_change_24h: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Quote` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `timestamp`, `elapsed`, `credit_count`, and `notice` are never read [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 182 | struct ApiStatus { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 183 | timestamp: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | elapsed: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 188 | credit_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 189 | notice: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiStatus` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:205:5 [INFO] [stdout] | [INFO] [stdout] 201 | struct CryptocurrencyInfo { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 205 | slug: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 206 | num_market_pairs: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 207 | date_added: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 208 | tags: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 209 | max_supply: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 210 | circulating_supply: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 211 | total_supply: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 212 | platform: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | infinite_supply: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 218 | is_active: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 219 | is_fiat: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 220 | self_reported_circulating_supply: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 221 | self_reported_market_cap: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 222 | tvl_ratio: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CryptocurrencyInfo` 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 `health_check` is never used [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:557:18 [INFO] [stdout] | [INFO] [stdout] 225 | impl CoinMarketCapClient { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 557 | pub async fn health_check(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MetricFilter` is never constructed [INFO] [stdout] --> src/models/metric.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub struct MetricFilter { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TimeRange` is never constructed [INFO] [stdout] --> src/models/metric.rs:147:12 [INFO] [stdout] | [INFO] [stdout] 147 | pub struct TimeRange { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `source`, `metric_name`, `time_range`, `limit`, and `offset` are never used [INFO] [stdout] --> src/models/metric.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 154 | impl MetricFilter { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 155 | /// 创建新的过滤器 [INFO] [stdout] 156 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn source(mut self, source: impl Into) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn metric_name(mut self, metric_name: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn time_range(mut self, start: DateTime, end: DateTime) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | pub fn limit(mut self, limit: i64) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub fn offset(mut self, offset: i64) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MetricStats` is never constructed [INFO] [stdout] --> src/models/metric.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 207 | pub struct MetricStats { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `description`, `id`, and `interval_seconds` are never used [INFO] [stdout] --> src/tasks/mod.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait Task: Send + Sync { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 31 | fn description(&self) -> &str; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn id(&self) -> &str; [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn interval_seconds(&self) -> u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TaskStatus` is never used [INFO] [stdout] --> src/tasks/mod.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | pub enum TaskStatus { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `executed_at` is never read [INFO] [stdout] --> src/tasks/mod.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct TaskExecutionResult { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 90 | pub executed_at: DateTime, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TaskExecutionResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `stop` and `get_task_status` are never used [INFO] [stdout] --> src/tasks/mod.rs:174:18 [INFO] [stdout] | [INFO] [stdout] 104 | impl TaskManager { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 174 | pub async fn stop(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 266 | pub async fn get_task_status(&self) -> Vec<(String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `interval_seconds` is never read [INFO] [stdout] --> src/tasks/crypto_market_task.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct CryptoMarketTask { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | interval_seconds: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `interval_seconds` is never read [INFO] [stdout] --> src/tasks/fear_greed_task.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct FearGreedTask { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | interval_seconds: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `interval_seconds` is never read [INFO] [stdout] --> src/tasks/altcoin_season_task.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct AltcoinSeasonTask { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | interval_seconds: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WebServer` is never constructed [INFO] [stdout] --> src/web/mod.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct WebServer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `start`, and `create_app` are never used [INFO] [stdout] --> src/web/mod.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl WebServer { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub async fn start(&self, port: u16) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | fn create_app(&self) -> Router { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dashboard_page` is never used [INFO] [stdout] --> src/web/mod.rs:98:10 [INFO] [stdout] | [INFO] [stdout] 98 | async fn dashboard_page() -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `not_found` is never used [INFO] [stdout] --> src/web/mod.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | async fn not_found(Path(path): Path) -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_multiple_market_data`, `cleanup_expired_data`, `get_supported_coins`, `clear_all`, `size`, and `contains` are never used [INFO] [stdout] --> src/web/cache.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 117 | impl DataCache { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 174 | pub fn get_multiple_market_data(&self, coin_ids: &[String]) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn cleanup_expired_data(&self, max_age_hours: i64) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn get_supported_coins(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | pub fn clear_all(&self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 266 | pub fn contains(&self, coin_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `websocket_handler` is never used [INFO] [stdout] --> src/web/websocket.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn websocket_handler( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_socket` is never used [INFO] [stdout] --> src/web/websocket.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | async fn handle_socket(socket: WebSocket, cache: Arc) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 16s [INFO] running `Command { std: "docker" "inspect" "6f19ed64129b1bb34d56584eada3e73b2dba746fb3dc290fef352b1d4c9f5497", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f19ed64129b1bb34d56584eada3e73b2dba746fb3dc290fef352b1d4c9f5497", kill_on_drop: false }` [INFO] [stdout] 6f19ed64129b1bb34d56584eada3e73b2dba746fb3dc290fef352b1d4c9f5497 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 62a63cb9dbed9ee37a0244895749ff560e417b26ec2c13054aad24a7640338e9 [INFO] running `Command { std: "docker" "start" "-a" "62a63cb9dbed9ee37a0244895749ff560e417b26ec2c13054aad24a7640338e9", kill_on_drop: false }` [INFO] [stderr] Compiling tokio v1.46.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling tokio-tungstenite v0.24.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-tungstenite v0.21.0 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling tokio-test v0.4.4 [INFO] [stderr] Compiling hyper-util v0.1.15 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling everscan v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/tasks/crypto_market_task.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [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: `warn` [INFO] [stdout] --> src/tasks/crypto_market_task.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use tracing::{info, error, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/tasks/crypto_market_task.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/tasks/fear_greed_task.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/tasks/fear_greed_task.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use tracing::{info, error, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/tasks/altcoin_season_task.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/tasks/altcoin_season_task.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use tracing::{info, error, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `task_manager::*` [INFO] [stdout] --> src/tasks/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use task_manager::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/web/cache.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stats_json` [INFO] [stdout] --> src/web/websocket.rs:89:39 [INFO] [stdout] | [INFO] [stdout] 89 | ... if let Ok(stats_json) = serde_json::to_string(&stats) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stats_json` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CmcFearGreedResponse` is never constructed [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | struct CmcFearGreedResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CmcFearGreedData` is never constructed [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | struct CmcFearGreedData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CmcFearGreedHistoryResponse` is never constructed [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | struct CmcFearGreedHistoryResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CmcFearGreedHistoryData` is never constructed [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | struct CmcFearGreedHistoryData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, `cmc_rank`, and `last_updated` are never read [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 151 | struct CmcIndexData { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 152 | id: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 153 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | cmc_rank: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 157 | last_updated: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CmcIndexData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 162 | struct Quote { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 168 | last_updated: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 169 | // 新增字段 [INFO] [stdout] 170 | fully_diluted_market_cap: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 171 | market_cap_dominance: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 172 | percent_change_1h: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 173 | percent_change_30d: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 174 | percent_change_60d: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 175 | percent_change_90d: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 176 | tvl: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 177 | volume_change_24h: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Quote` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `timestamp`, `elapsed`, `credit_count`, and `notice` are never read [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 182 | struct ApiStatus { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 183 | timestamp: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | elapsed: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 188 | credit_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 189 | notice: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiStatus` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:205:5 [INFO] [stdout] | [INFO] [stdout] 201 | struct CryptocurrencyInfo { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 205 | slug: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 206 | num_market_pairs: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 207 | date_added: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 208 | tags: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 209 | max_supply: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 210 | circulating_supply: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 211 | total_supply: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 212 | platform: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | infinite_supply: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 218 | is_active: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 219 | is_fiat: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 220 | self_reported_circulating_supply: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 221 | self_reported_market_cap: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 222 | tvl_ratio: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CryptocurrencyInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/web/mod.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct WebServer { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 32 | /// 应用配置 [INFO] [stdout] 33 | config: AppConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WebServer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `not_found` is never used [INFO] [stdout] --> src/web/mod.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | async fn not_found(Path(path): Path) -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/tasks/crypto_market_task.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [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: `warn` [INFO] [stdout] --> src/tasks/crypto_market_task.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use tracing::{info, error, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/tasks/crypto_market_task.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/tasks/fear_greed_task.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/tasks/fear_greed_task.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use tracing::{info, error, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/tasks/altcoin_season_task.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/tasks/altcoin_season_task.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use tracing::{info, error, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `task_manager::*` [INFO] [stdout] --> src/tasks/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use task_manager::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/web/cache.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stats_json` [INFO] [stdout] --> src/web/websocket.rs:89:39 [INFO] [stdout] | [INFO] [stdout] 89 | ... if let Ok(stats_json) = serde_json::to_string(&stats) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stats_json` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CmcFearGreedResponse` is never constructed [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | struct CmcFearGreedResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CmcFearGreedData` is never constructed [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | struct CmcFearGreedData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CmcFearGreedHistoryResponse` is never constructed [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | struct CmcFearGreedHistoryResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CmcFearGreedHistoryData` is never constructed [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | struct CmcFearGreedHistoryData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, `cmc_rank`, and `last_updated` are never read [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 151 | struct CmcIndexData { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 152 | id: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 153 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | cmc_rank: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 157 | last_updated: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CmcIndexData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 162 | struct Quote { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 168 | last_updated: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 169 | // 新增字段 [INFO] [stdout] 170 | fully_diluted_market_cap: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 171 | market_cap_dominance: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 172 | percent_change_1h: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 173 | percent_change_30d: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 174 | percent_change_60d: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 175 | percent_change_90d: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 176 | tvl: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 177 | volume_change_24h: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Quote` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `timestamp`, `elapsed`, `credit_count`, and `notice` are never read [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 182 | struct ApiStatus { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 183 | timestamp: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | elapsed: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 188 | credit_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 189 | notice: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiStatus` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:205:5 [INFO] [stdout] | [INFO] [stdout] 201 | struct CryptocurrencyInfo { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 205 | slug: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 206 | num_market_pairs: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 207 | date_added: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 208 | tags: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 209 | max_supply: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 210 | circulating_supply: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 211 | total_supply: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 212 | platform: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | infinite_supply: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 218 | is_active: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 219 | is_fiat: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 220 | self_reported_circulating_supply: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 221 | self_reported_market_cap: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 222 | tvl_ratio: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CryptocurrencyInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/web/mod.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct WebServer { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 32 | /// 应用配置 [INFO] [stdout] 33 | config: AppConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WebServer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `not_found` is never used [INFO] [stdout] --> src/web/mod.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | async fn not_found(Path(path): Path) -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TestResponse` is never constructed [INFO] [stdout] --> src/bin/test_fear_greed.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct TestResponse { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/tasks/crypto_market_task.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [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: `warn` [INFO] [stdout] --> src/tasks/crypto_market_task.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use tracing::{info, error, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/tasks/crypto_market_task.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/tasks/fear_greed_task.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/tasks/fear_greed_task.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use tracing::{info, error, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/tasks/altcoin_season_task.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/tasks/altcoin_season_task.rs:5:28 [INFO] [stdout] | [INFO] [stdout] 5 | use tracing::{info, error, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `task_manager::*` [INFO] [stdout] --> src/tasks/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use task_manager::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/web/cache.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stats_json` [INFO] [stdout] --> src/web/websocket.rs:89:39 [INFO] [stdout] | [INFO] [stdout] 89 | ... if let Ok(stats_json) = serde_json::to_string(&stats) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stats_json` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `default` is never used [INFO] [stdout] --> src/config.rs:117:12 [INFO] [stdout] | [INFO] [stdout] 60 | impl AppConfig { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn default() -> 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: trait `ApiClient` is never used [INFO] [stdout] --> src/clients/mod.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait ApiClient { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HttpClientBuilder` is never constructed [INFO] [stdout] --> src/clients/mod.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct HttpClientBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `timeout`, `user_agent`, and `build` are never used [INFO] [stdout] --> src/clients/mod.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl HttpClientBuilder { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 45 | /// 创建新的HTTP客户端构建器 [INFO] [stdout] 46 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn timeout(mut self, timeout: Duration) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn user_agent(mut self, user_agent: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn build(self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CmcFearGreedResponse` is never constructed [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | struct CmcFearGreedResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CmcFearGreedData` is never constructed [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | struct CmcFearGreedData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CmcFearGreedHistoryResponse` is never constructed [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | struct CmcFearGreedHistoryResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CmcFearGreedHistoryData` is never constructed [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | struct CmcFearGreedHistoryData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, `cmc_rank`, and `last_updated` are never read [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 151 | struct CmcIndexData { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 152 | id: u64, [INFO] [stdout] | ^^ [INFO] [stdout] 153 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | cmc_rank: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 157 | last_updated: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CmcIndexData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 162 | struct Quote { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 168 | last_updated: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 169 | // 新增字段 [INFO] [stdout] 170 | fully_diluted_market_cap: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 171 | market_cap_dominance: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 172 | percent_change_1h: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 173 | percent_change_30d: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 174 | percent_change_60d: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 175 | percent_change_90d: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 176 | tvl: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 177 | volume_change_24h: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Quote` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `timestamp`, `elapsed`, `credit_count`, and `notice` are never read [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 182 | struct ApiStatus { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 183 | timestamp: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | elapsed: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 188 | credit_count: u64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 189 | notice: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiStatus` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:205:5 [INFO] [stdout] | [INFO] [stdout] 201 | struct CryptocurrencyInfo { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 205 | slug: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 206 | num_market_pairs: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 207 | date_added: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 208 | tags: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 209 | max_supply: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 210 | circulating_supply: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 211 | total_supply: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 212 | platform: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | infinite_supply: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 218 | is_active: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 219 | is_fiat: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 220 | self_reported_circulating_supply: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 221 | self_reported_market_cap: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 222 | tvl_ratio: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CryptocurrencyInfo` 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 `health_check` is never used [INFO] [stdout] --> src/clients/coinmarketcap_client.rs:557:18 [INFO] [stdout] | [INFO] [stdout] 225 | impl CoinMarketCapClient { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 557 | pub async fn health_check(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MetricFilter` is never constructed [INFO] [stdout] --> src/models/metric.rs:132:12 [INFO] [stdout] | [INFO] [stdout] 132 | pub struct MetricFilter { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TimeRange` is never constructed [INFO] [stdout] --> src/models/metric.rs:147:12 [INFO] [stdout] | [INFO] [stdout] 147 | pub struct TimeRange { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `source`, `metric_name`, `time_range`, `limit`, and `offset` are never used [INFO] [stdout] --> src/models/metric.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 154 | impl MetricFilter { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 155 | /// 创建新的过滤器 [INFO] [stdout] 156 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn source(mut self, source: impl Into) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn metric_name(mut self, metric_name: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn time_range(mut self, start: DateTime, end: DateTime) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | pub fn limit(mut self, limit: i64) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub fn offset(mut self, offset: i64) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MetricStats` is never constructed [INFO] [stdout] --> src/models/metric.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 207 | pub struct MetricStats { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `description`, `id`, and `interval_seconds` are never used [INFO] [stdout] --> src/tasks/mod.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait Task: Send + Sync { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 31 | fn description(&self) -> &str; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn id(&self) -> &str; [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 37 | fn interval_seconds(&self) -> u64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TaskStatus` is never used [INFO] [stdout] --> src/tasks/mod.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | pub enum TaskStatus { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `executed_at` is never read [INFO] [stdout] --> src/tasks/mod.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub struct TaskExecutionResult { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 90 | pub executed_at: DateTime, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TaskExecutionResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `stop` and `get_task_status` are never used [INFO] [stdout] --> src/tasks/mod.rs:174:18 [INFO] [stdout] | [INFO] [stdout] 104 | impl TaskManager { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 174 | pub async fn stop(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 266 | pub async fn get_task_status(&self) -> Vec<(String, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `interval_seconds` is never read [INFO] [stdout] --> src/tasks/crypto_market_task.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct CryptoMarketTask { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | interval_seconds: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `interval_seconds` is never read [INFO] [stdout] --> src/tasks/fear_greed_task.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct FearGreedTask { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | interval_seconds: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `interval_seconds` is never read [INFO] [stdout] --> src/tasks/altcoin_season_task.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct AltcoinSeasonTask { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | interval_seconds: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WebServer` is never constructed [INFO] [stdout] --> src/web/mod.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct WebServer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `start`, and `create_app` are never used [INFO] [stdout] --> src/web/mod.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl WebServer { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub async fn start(&self, port: u16) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | fn create_app(&self) -> Router { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dashboard_page` is never used [INFO] [stdout] --> src/web/mod.rs:98:10 [INFO] [stdout] | [INFO] [stdout] 98 | async fn dashboard_page() -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `not_found` is never used [INFO] [stdout] --> src/web/mod.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | async fn not_found(Path(path): Path) -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_multiple_market_data`, `cleanup_expired_data`, `get_supported_coins`, `clear_all`, `size`, and `contains` are never used [INFO] [stdout] --> src/web/cache.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 117 | impl DataCache { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 174 | pub fn get_multiple_market_data(&self, coin_ids: &[String]) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn cleanup_expired_data(&self, max_age_hours: i64) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn get_supported_coins(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | pub fn clear_all(&self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 266 | pub fn contains(&self, coin_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `websocket_handler` is never used [INFO] [stdout] --> src/web/websocket.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn websocket_handler( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_socket` is never used [INFO] [stdout] --> src/web/websocket.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | async fn handle_socket(socket: WebSocket, cache: Arc) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 40.60s [INFO] running `Command { std: "docker" "inspect" "62a63cb9dbed9ee37a0244895749ff560e417b26ec2c13054aad24a7640338e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62a63cb9dbed9ee37a0244895749ff560e417b26ec2c13054aad24a7640338e9", kill_on_drop: false }` [INFO] [stdout] 62a63cb9dbed9ee37a0244895749ff560e417b26ec2c13054aad24a7640338e9