[INFO] cloning repository https://github.com/LingKerly/sparklingtop [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LingKerly/sparklingtop" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLingKerly%2Fsparklingtop", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLingKerly%2Fsparklingtop'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2378ffcd40908396bcf6f519abf00bd7e9577330 [INFO] checking LingKerly/sparklingtop against master#8c52f735abd1af9a73941b78fe7ed2ab08b9c0dd for pr-150557 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLingKerly%2Fsparklingtop" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/LingKerly/sparklingtop [INFO] finished tweaking git repo https://github.com/LingKerly/sparklingtop [INFO] tweaked toml for git repo https://github.com/LingKerly/sparklingtop written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/LingKerly/sparklingtop on toolchain 8c52f735abd1af9a73941b78fe7ed2ab08b9c0dd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c52f735abd1af9a73941b78fe7ed2ab08b9c0dd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/LingKerly/sparklingtop 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" "+8c52f735abd1af9a73941b78fe7ed2ab08b9c0dd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded utoipa v4.2.3 [INFO] [stderr] Downloaded utoipa-gen v4.3.1 [INFO] [stderr] Downloaded axum-macros v0.4.2 [INFO] [stderr] Downloaded utoipa-swagger-ui v6.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+8c52f735abd1af9a73941b78fe7ed2ab08b9c0dd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fb271d7feced51e25f7ff7160da8ecbff6d78ed62a8be407a94c4e87d5e90505 [INFO] running `Command { std: "docker" "start" "-a" "fb271d7feced51e25f7ff7160da8ecbff6d78ed62a8be407a94c4e87d5e90505", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fb271d7feced51e25f7ff7160da8ecbff6d78ed62a8be407a94c4e87d5e90505", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb271d7feced51e25f7ff7160da8ecbff6d78ed62a8be407a94c4e87d5e90505", kill_on_drop: false }` [INFO] [stdout] fb271d7feced51e25f7ff7160da8ecbff6d78ed62a8be407a94c4e87d5e90505 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+8c52f735abd1af9a73941b78fe7ed2ab08b9c0dd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 57cc6cad5279e863b8b60face960efa5ea1714bb683c935f66cab1b1bb3781f4 [INFO] running `Command { std: "docker" "start" "-a" "57cc6cad5279e863b8b60face960efa5ea1714bb683c935f66cab1b1bb3781f4", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling libc v0.2.178 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling zerocopy v0.8.31 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Checking tracing-core v0.1.35 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling base64ct v1.8.1 [INFO] [stderr] Compiling num-bigint-dig v0.8.6 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Checking tokio v1.48.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Checking tracing v0.1.43 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling uuid v1.19.0 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling simd-adler32 v0.3.8 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling indexmap v2.12.1 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling rsa v0.9.9 [INFO] [stderr] Compiling flate2 v1.1.5 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling zip v0.6.6 [INFO] [stderr] Compiling rust-embed-utils v8.9.0 [INFO] [stderr] Checking time v0.3.44 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking hyper-util v0.1.19 [INFO] [stderr] Compiling utoipa-swagger-ui v6.0.0 [INFO] [stderr] Compiling rust-embed-impl v8.9.0 [INFO] [stderr] Compiling utoipa-gen v4.3.1 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling axum-macros v0.4.2 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Checking pem v3.0.6 [INFO] [stderr] Checking rust-embed v8.9.0 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Compiling validator_derive v0.18.2 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking password-hash v0.5.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking tracing-subscriber v0.3.22 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking argon2 v0.5.3 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking validator v0.18.1 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Checking utoipa v4.2.3 [INFO] [stderr] Compiling sqlx-mysql v0.7.4 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking cloud_controller v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `close_pool` [INFO] [stdout] --> src/db/mod.rs:7:40 [INFO] [stdout] | [INFO] [stdout] 7 | pub use connection::{check_connection, close_pool, create_pool, DatabasePool}; [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: `close_pool` [INFO] [stdout] --> src/db/mod.rs:7:40 [INFO] [stdout] | [INFO] [stdout] 7 | pub use connection::{check_connection, close_pool, create_pool, DatabasePool}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `jwt`, `rust_log`, and `argon2` are never read [INFO] [stdout] --> src/config/mod.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct AppConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | pub jwt: JwtConfig, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub rust_log: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 35 | /// Argon2 密码哈希配置 [INFO] [stdout] 36 | pub argon2: Argon2Config, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token_type` is never read [INFO] [stdout] --> src/config/jwt.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct JwtConfig { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | pub token_type: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JwtConfig` 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: fields `pool` and `config` are never read [INFO] [stdout] --> src/state.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct AppState { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 11 | /// 数据库连接池 [INFO] [stdout] 12 | pub pool: DatabasePool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | /// 应用配置 [INFO] [stdout] 14 | pub config: AppConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `VerifyError` is never constructed [INFO] [stdout] --> src/utils/password.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum PasswordError { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 18 | VerifyError, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PasswordError` 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 `jwt`, `rust_log`, and `argon2` are never read [INFO] [stdout] --> src/config/mod.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct AppConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | pub jwt: JwtConfig, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub rust_log: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 35 | /// Argon2 密码哈希配置 [INFO] [stdout] 36 | pub argon2: Argon2Config, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `m_cost`, `t_cost`, `p_cost`, and `output_len` are never read [INFO] [stdout] --> src/config/argon2.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Argon2Config { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 11 | /// 内存成本(KB),默认 19456(19 MB) [INFO] [stdout] 12 | pub m_cost: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 13 | /// 时间成本(迭代次数),默认 2 [INFO] [stdout] 14 | pub t_cost: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 15 | /// 并行度,默认 1 [INFO] [stdout] 16 | pub p_cost: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | /// 输出哈希长度(字节),默认 32 [INFO] [stdout] 18 | pub output_len: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Argon2Config` 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: method `build_argon2` is never used [INFO] [stdout] --> src/config/argon2.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl Argon2Config { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn build_argon2(&self) -> argon2::Argon2<'static> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `secret`, `expires_in`, `algorithm`, `token_type`, `issuer`, and `audience` are never read [INFO] [stdout] --> src/config/jwt.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct JwtConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 12 | /// JWT 签名密钥(必填,建议至少 256 位) [INFO] [stdout] 13 | pub secret: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | /// Token 过期时间(秒),默认 86400(24小时) [INFO] [stdout] 15 | pub expires_in: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 16 | /// 签名算法,默认 "HS256" [INFO] [stdout] 17 | pub algorithm: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 18 | /// Token 类型,默认 "Bearer" [INFO] [stdout] 19 | pub token_type: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 20 | /// 签发者(可选) [INFO] [stdout] 21 | pub issuer: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | /// 受众(可选) [INFO] [stdout] 23 | pub audience: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JwtConfig` 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 `encoding_key`, `decoding_key`, `get_algorithm`, and `validation` are never used [INFO] [stdout] --> src/config/jwt.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl JwtConfig { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn encoding_key(&self) -> EncodingKey { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn decoding_key(&self) -> DecodingKey { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn get_algorithm(&self) -> Algorithm { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn validation(&self) -> Validation { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `close_pool` is never used [INFO] [stdout] --> src/db/connection.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | pub async fn close_pool(pool: DatabasePool) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pool` and `config` are never read [INFO] [stdout] --> src/state.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct AppState { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 11 | /// 数据库连接池 [INFO] [stdout] 12 | pub pool: DatabasePool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | /// 应用配置 [INFO] [stdout] 14 | pub config: AppConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Claims` is never constructed [INFO] [stdout] --> src/utils/jwt.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Claims { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `is_expired` are never used [INFO] [stdout] --> src/utils/jwt.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl Claims { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 34 | /// 创建新的 Claims [INFO] [stdout] 35 | pub fn new(user_id: u64, uuid: Uuid, role: String, config: &JwtConfig) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn is_expired(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_token` is never used [INFO] [stdout] --> src/utils/jwt.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn generate_token( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_token` is never used [INFO] [stdout] --> src/utils/jwt.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn verify_token( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_token_from_header` is never used [INFO] [stdout] --> src/utils/jwt.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn extract_token_from_header(auth_header: &str) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PasswordError` is never used [INFO] [stdout] --> src/utils/password.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum PasswordError { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_password` is never used [INFO] [stdout] --> src/utils/password.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn hash_password(password: &str, config: &Argon2Config) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_password_default` is never used [INFO] [stdout] --> src/utils/password.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn hash_password_default(password: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_password` is never used [INFO] [stdout] --> src/utils/password.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn verify_password(password: &str, hash: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_password_strength` is never used [INFO] [stdout] --> src/utils/password.rs:88:8 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn validate_password_strength(password: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 07s [INFO] running `Command { std: "docker" "inspect" "57cc6cad5279e863b8b60face960efa5ea1714bb683c935f66cab1b1bb3781f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57cc6cad5279e863b8b60face960efa5ea1714bb683c935f66cab1b1bb3781f4", kill_on_drop: false }` [INFO] [stdout] 57cc6cad5279e863b8b60face960efa5ea1714bb683c935f66cab1b1bb3781f4