[INFO] cloning repository https://github.com/AptS-1547/rust-hwsystem-next [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AptS-1547/rust-hwsystem-next" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAptS-1547%2Frust-hwsystem-next", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAptS-1547%2Frust-hwsystem-next'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b4f3bcc647e56e6407366241a163dce7c3a34456 [INFO] checking AptS-1547/rust-hwsystem-next against master#e43d139a82620a268d3828a73e12a8679339e8f8 for pr-143545 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAptS-1547%2Frust-hwsystem-next" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/AptS-1547/rust-hwsystem-next [INFO] finished tweaking git repo https://github.com/AptS-1547/rust-hwsystem-next [INFO] tweaked toml for git repo https://github.com/AptS-1547/rust-hwsystem-next written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/AptS-1547/rust-hwsystem-next on toolchain e43d139a82620a268d3828a73e12a8679339e8f8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e43d139a82620a268d3828a73e12a8679339e8f8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/AptS-1547/rust-hwsystem-next 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" "+e43d139a82620a268d3828a73e12a8679339e8f8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ref-cast-impl v1.0.24 [INFO] [stderr] Downloaded ctor-proc-macro v0.0.5 [INFO] [stderr] Downloaded dtor-proc-macro v0.0.5 [INFO] [stderr] Downloaded dtor v0.0.6 [INFO] [stderr] Downloaded env v1.0.1 [INFO] [stderr] Downloaded pest_generator v2.8.1 [INFO] [stderr] Downloaded rust-ini v0.21.2 [INFO] [stderr] Downloaded argon2 v0.5.3 [INFO] [stderr] Downloaded password-hash v0.5.0 [INFO] [stderr] Downloaded toml v0.9.0 [INFO] [stderr] Downloaded yaml-rust2 v0.10.3 [INFO] [stderr] Downloaded security-framework v3.2.0 [INFO] [stderr] Downloaded schemars v1.0.4 [INFO] [stderr] Downloaded config v0.15.12 [INFO] [stderr] Downloaded pest v2.8.1 [INFO] [stderr] Downloaded serde_with v3.14.0 [INFO] [stderr] Downloaded schemars v0.9.0 [INFO] [stderr] Downloaded pest_meta v2.8.1 [INFO] [stderr] Downloaded pest_derive v2.8.1 [INFO] [stderr] Downloaded core-foundation v0.10.1 [INFO] [stderr] Downloaded rustls-native-certs v0.8.1 [INFO] [stderr] Downloaded toml_parser v1.0.0 [INFO] [stderr] Downloaded redis v0.32.3 [INFO] [stderr] Downloaded toml_datetime v0.7.0 [INFO] [stderr] Downloaded serde_spanned v1.0.0 [INFO] [stderr] Downloaded ctor v0.4.2 [INFO] [stderr] Downloaded dyn-clone v1.0.19 [INFO] [stderr] Downloaded ref-cast v1.0.24 [INFO] [stderr] Downloaded tracing-appender v0.2.3 [INFO] [stderr] Downloaded serde_with_macros v3.14.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+e43d139a82620a268d3828a73e12a8679339e8f8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7d84eb8057f6b28654856e73b89e4e5dd17c013ea91a430e73f287132c5985f2 [INFO] running `Command { std: "docker" "start" "-a" "7d84eb8057f6b28654856e73b89e4e5dd17c013ea91a430e73f287132c5985f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7d84eb8057f6b28654856e73b89e4e5dd17c013ea91a430e73f287132c5985f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d84eb8057f6b28654856e73b89e4e5dd17c013ea91a430e73f287132c5985f2", kill_on_drop: false }` [INFO] [stdout] 7d84eb8057f6b28654856e73b89e4e5dd17c013ea91a430e73f287132c5985f2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+e43d139a82620a268d3828a73e12a8679339e8f8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c49ccaf6bbd5ae71d10a98d769a0b09ea51dcc621dcf91917fbf6af4897c528b [INFO] running `Command { std: "docker" "start" "-a" "c49ccaf6bbd5ae71d10a98d769a0b09ea51dcc621dcf91917fbf6af4897c528b", kill_on_drop: false }` [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking const-oid v0.9.6 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling base64ct v1.8.0 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Checking indexmap v2.10.0 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling rustls v0.23.28 [INFO] [stderr] Compiling webpki-roots v1.0.1 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Checking tokio v1.46.1 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling event-listener v5.4.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling cc v1.2.29 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling pest v2.8.1 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling pest_meta v2.8.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Checking winnow v0.7.11 [INFO] [stderr] Compiling aws-lc-sys v0.29.0 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling rsa v0.9.8 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking actix-router v0.5.3 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking actix-rt v2.10.0 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Compiling pest_generator v2.8.1 [INFO] [stderr] Checking actix-server v2.6.0 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking toml_parser v1.0.0 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking ordered-multimap v0.7.3 [INFO] [stderr] Checking event-listener-strategy v0.5.4 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking crossbeam-channel v0.5.15 [INFO] [stderr] Checking toml_datetime v0.7.0 [INFO] [stderr] Checking serde_spanned v1.0.0 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking arraydeque v0.5.1 [INFO] [stderr] Compiling dtor-proc-macro v0.0.5 [INFO] [stderr] Compiling moka v0.12.10 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking rustls-native-certs v0.8.1 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking toml v0.9.0 [INFO] [stderr] Checking rust-ini v0.21.2 [INFO] [stderr] Checking async-lock v3.4.0 [INFO] [stderr] Checking yaml-rust2 v0.10.3 [INFO] [stderr] Checking dtor v0.0.6 [INFO] [stderr] Checking combine v4.6.7 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling pest_derive v2.8.1 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Compiling serde_with_macros v3.14.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking uuid v1.17.0 [INFO] [stderr] Checking password-hash v0.5.0 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling ctor-proc-macro v0.0.5 [INFO] [stderr] Checking sha1_smol v1.0.1 [INFO] [stderr] Checking tagptr v0.2.0 [INFO] [stderr] Checking pathdiff v0.2.3 [INFO] [stderr] Checking env v1.0.1 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking argon2 v0.5.3 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Checking ctor v0.4.2 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Checking serde_with v3.14.0 [INFO] [stderr] Checking tracing-appender v0.2.3 [INFO] [stderr] Checking config v0.15.12 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Compiling rustls-webpki v0.103.3 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Checking actix-http v3.11.0 [INFO] [stderr] Checking actix-web v4.11.0 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Compiling aws-lc-rs v1.13.1 [INFO] [stderr] Checking actix-cors v0.7.1 [INFO] [stderr] Compiling sqlx-postgres v0.8.6 [INFO] [stderr] Compiling sqlx-mysql v0.8.6 [INFO] [stderr] Compiling sqlx-sqlite v0.8.6 [INFO] [stderr] Checking tokio-rustls v0.26.2 [INFO] [stderr] Checking redis v0.32.3 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking rust-hwsystem-next v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `generate_access_token` and `generate_refresh_token` are never used [INFO] [stdout] --> src/api_models/users/entities.rs:132:18 [INFO] [stdout] | [INFO] [stdout] 130 | impl User { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 131 | // 生成访问令牌(使用真正的 JWT) [INFO] [stdout] 132 | pub async fn generate_access_token(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub async fn generate_refresh_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserResponse` is never constructed [INFO] [stdout] --> src/api_models/users/responses.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct UserResponse { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove` and `invalidate_all` are never used [INFO] [stdout] --> src/cache/traits.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 18 | pub trait ObjectCache: Send + Sync { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 26 | async fn remove(&self, key: &str); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | async fn invalidate_all(&self); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get`, `insert_with_default_ttl`, and `load_l2_cache` are never used [INFO] [stdout] --> src/cache/traits.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub trait TypedObjectCache { [INFO] [stdout] | ---------------- methods in this trait [INFO] [stdout] 34 | /// 获取指定类型的缓存值 [INFO] [stdout] 35 | fn get(&self, key: &str) -> impl std::future::Future> + Send [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn insert_with_default_ttl( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn load_l2_cache( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DatabaseConfig` is never constructed [INFO] [stdout] --> src/errors.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum HWSystemError { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 5 | DatabaseConfig(String), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HWSystemError` 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: associated functions `database_config`, `file_operation`, and `serialization` are never used [INFO] [stdout] --> src/errors.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl HWSystemError { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] 34 | pub fn database_config>(msg: T) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn file_operation>(msg: T) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn serialization>(msg: T) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `extract_user_claims`, `has_role`, and `has_any_role` are never used [INFO] [stdout] --> src/middlewares/require_jwt.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 206 | impl RequireJWT { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn extract_user_claims(req: &actix_web::HttpRequest) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | pub fn has_role(req: &actix_web::HttpRequest, required_role: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 250 | pub fn has_any_role(req: &actix_web::HttpRequest, roles: &[&str]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_any` and `new_all` are never used [INFO] [stdout] --> src/middlewares/require_role.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl RequireRole { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn new_any(roles: &[&str]) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn new_all(roles: &[&str]) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_development` is never used [INFO] [stdout] --> src/system/app_config/app_config.rs:178:12 [INFO] [stdout] | [INFO] [stdout] 103 | impl AppConfig { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 178 | pub fn is_development(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `verify_access_token` is never used [INFO] [stdout] --> src/utils/jwt.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl JwtUtils { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn verify_access_token(token: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `generate_access_token` and `generate_refresh_token` are never used [INFO] [stdout] --> src/api_models/users/entities.rs:132:18 [INFO] [stdout] | [INFO] [stdout] 130 | impl User { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 131 | // 生成访问令牌(使用真正的 JWT) [INFO] [stdout] 132 | pub async fn generate_access_token(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub async fn generate_refresh_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserResponse` is never constructed [INFO] [stdout] --> src/api_models/users/responses.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct UserResponse { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove` and `invalidate_all` are never used [INFO] [stdout] --> src/cache/traits.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 18 | pub trait ObjectCache: Send + Sync { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 26 | async fn remove(&self, key: &str); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | async fn invalidate_all(&self); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get`, `insert_with_default_ttl`, and `load_l2_cache` are never used [INFO] [stdout] --> src/cache/traits.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub trait TypedObjectCache { [INFO] [stdout] | ---------------- methods in this trait [INFO] [stdout] 34 | /// 获取指定类型的缓存值 [INFO] [stdout] 35 | fn get(&self, key: &str) -> impl std::future::Future> + Send [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn insert_with_default_ttl( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn load_l2_cache( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `DatabaseConfig` is never constructed [INFO] [stdout] --> src/errors.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum HWSystemError { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 5 | DatabaseConfig(String), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HWSystemError` 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: associated functions `database_config`, `file_operation`, and `serialization` are never used [INFO] [stdout] --> src/errors.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl HWSystemError { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] 34 | pub fn database_config>(msg: T) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn file_operation>(msg: T) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn serialization>(msg: T) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `extract_user_claims`, `has_role`, and `has_any_role` are never used [INFO] [stdout] --> src/middlewares/require_jwt.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 206 | impl RequireJWT { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn extract_user_claims(req: &actix_web::HttpRequest) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | pub fn has_role(req: &actix_web::HttpRequest, required_role: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 250 | pub fn has_any_role(req: &actix_web::HttpRequest, roles: &[&str]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_any` and `new_all` are never used [INFO] [stdout] --> src/middlewares/require_role.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl RequireRole { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn new_any(roles: &[&str]) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn new_all(roles: &[&str]) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_development` is never used [INFO] [stdout] --> src/system/app_config/app_config.rs:178:12 [INFO] [stdout] | [INFO] [stdout] 103 | impl AppConfig { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 178 | pub fn is_development(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `verify_access_token` is never used [INFO] [stdout] --> src/utils/jwt.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl JwtUtils { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn verify_access_token(token: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 35s [INFO] running `Command { std: "docker" "inspect" "c49ccaf6bbd5ae71d10a98d769a0b09ea51dcc621dcf91917fbf6af4897c528b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c49ccaf6bbd5ae71d10a98d769a0b09ea51dcc621dcf91917fbf6af4897c528b", kill_on_drop: false }` [INFO] [stdout] c49ccaf6bbd5ae71d10a98d769a0b09ea51dcc621dcf91917fbf6af4897c528b