[INFO] cloning repository https://github.com/Lil-mast/smart-loan-recovery
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Lil-mast/smart-loan-recovery" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLil-mast%2Fsmart-loan-recovery", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLil-mast%2Fsmart-loan-recovery'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 093265ca45ee96cedc91274e1068eff512825bf8
[INFO] checking Lil-mast/smart-loan-recovery against 1.95.0 for pr-155915
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLil-mast%2Fsmart-loan-recovery" "/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/Lil-mast/smart-loan-recovery
[INFO] finished tweaking git repo https://github.com/Lil-mast/smart-loan-recovery
[INFO] tweaked toml for git repo https://github.com/Lil-mast/smart-loan-recovery written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Lil-mast/smart-loan-recovery on toolchain 1.95.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.95.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Lil-mast/smart-loan-recovery 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" "+1.95.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded firebase-auth v0.4.3
[INFO] [stderr]   Downloaded actix-identity v0.7.1
[INFO] [stderr]   Downloaded actix-session v0.9.0
[INFO] [stderr]   Downloaded actix-files v0.6.10
[INFO] [stderr]   Downloaded oauth2 v4.4.2
[INFO] [stderr]   Downloaded actix-http v3.12.0
[INFO] [stderr]   Downloaded tokio v1.51.0
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] aee4fcc904953704e781e070d2b7d8e4dc9df359f67489b4c9529edeee5b9399
[INFO] running `Command { std: "docker" "start" "-a" "aee4fcc904953704e781e070d2b7d8e4dc9df359f67489b4c9529edeee5b9399", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "aee4fcc904953704e781e070d2b7d8e4dc9df359f67489b4c9529edeee5b9399", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "aee4fcc904953704e781e070d2b7d8e4dc9df359f67489b4c9529edeee5b9399", kill_on_drop: false }`
[INFO] [stdout] aee4fcc904953704e781e070d2b7d8e4dc9df359f67489b4c9529edeee5b9399
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.95.0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] cc3db3fb0ad1ca8de91629c3bad173aa6473e5fa90551bb838e2f501220da24e
[INFO] running `Command { std: "docker" "start" "-a" "cc3db3fb0ad1ca8de91629c3bad173aa6473e5fa90551bb838e2f501220da24e", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.184
[INFO] [stderr]     Checking futures-io v0.3.32
[INFO] [stderr]    Compiling zerocopy v0.8.48
[INFO] [stderr]     Checking indexmap v2.13.1
[INFO] [stderr]     Checking writeable v0.6.3
[INFO] [stderr]     Checking litemap v0.8.2
[INFO] [stderr]     Checking http v0.2.12
[INFO] [stderr]    Compiling icu_properties_data v2.2.0
[INFO] [stderr]    Compiling syn v2.0.117
[INFO] [stderr]    Compiling icu_normalizer_data v2.2.0
[INFO] [stderr]    Compiling num-conv v0.2.1
[INFO] [stderr]     Checking serde_json v1.0.149
[INFO] [stderr]     Checking regex-automata v0.4.14
[INFO] [stderr]     Checking http v1.4.0
[INFO] [stderr]    Compiling unicode-segmentation v1.13.2
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling time-macros v0.2.27
[INFO] [stderr]    Compiling pin-project-lite v0.2.17
[INFO] [stderr]     Checking simd-adler32 v0.3.9
[INFO] [stderr]    Compiling bytes v1.11.1
[INFO] [stderr]    Compiling tracing-core v0.1.36
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]     Checking miniz_oxide v0.8.9
[INFO] [stderr]    Compiling convert_case v0.10.0
[INFO] [stderr]     Checking actix-utils v3.0.1
[INFO] [stderr]     Checking actix-service v2.0.3
[INFO] [stderr]    Compiling cookie v0.16.2
[INFO] [stderr]    Compiling tracing v0.1.44
[INFO] [stderr]    Compiling bytestring v1.5.0
[INFO] [stderr]     Checking http-body v1.0.1
[INFO] [stderr]    Compiling regex-lite v0.1.9
[INFO] [stderr]     Checking flate2 v1.1.9
[INFO] [stderr]     Checking local-channel v0.1.5
[INFO] [stderr]     Checking base64 v0.20.0
[INFO] [stderr]    Compiling rustls v0.21.12
[INFO] [stderr]     Checking http-body v0.4.6
[INFO] [stderr]     Checking http-body-util v0.1.3
[INFO] [stderr]    Compiling thiserror v2.0.18
[INFO] [stderr]     Checking serde_path_to_error v0.1.20
[INFO] [stderr]     Checking sync_wrapper v0.1.2
[INFO] [stderr]    Compiling v_htmlescape v0.15.8
[INFO] [stderr]     Checking pem v3.0.6
[INFO] [stderr]     Checking iri-string v0.7.12
[INFO] [stderr]     Checking fallible-iterator v0.3.0
[INFO] [stderr]     Checking http-range v0.1.5
[INFO] [stderr]    Compiling actix-router v0.5.4
[INFO] [stderr]     Checking time v0.3.47
[INFO] [stderr]    Compiling jobserver v0.1.34
[INFO] [stderr]     Checking getrandom v0.2.17
[INFO] [stderr]     Checking parking_lot_core v0.9.12
[INFO] [stderr]     Checking errno v0.3.14
[INFO] [stderr]     Checking mio v1.2.0
[INFO] [stderr]     Checking socket2 v0.6.3
[INFO] [stderr]     Checking socket2 v0.5.10
[INFO] [stderr]     Checking getrandom v0.3.4
[INFO] [stderr]     Checking getrandom v0.4.2
[INFO] [stderr]     Checking num-integer v0.1.46
[INFO] [stderr]     Checking regex v1.12.3
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]    Compiling cc v1.2.59
[INFO] [stderr]     Checking signal-hook-registry v1.4.8
[INFO] [stderr]     Checking parking_lot v0.12.5
[INFO] [stderr]     Checking rand_core v0.9.5
[INFO] [stderr]     Checking num-bigint v0.4.6
[INFO] [stderr]     Checking uuid v1.23.0
[INFO] [stderr]     Checking crypto-common v0.1.7
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]     Checking cipher v0.4.4
[INFO] [stderr]     Checking universal-hash v0.5.1
[INFO] [stderr]     Checking aead v0.5.2
[INFO] [stderr]     Checking env_filter v1.0.1
[INFO] [stderr]     Checking polyval v0.6.2
[INFO] [stderr]     Checking hmac v0.12.1
[INFO] [stderr]     Checking sha2 v0.10.9
[INFO] [stderr]     Checking sha1 v0.10.6
[INFO] [stderr]     Checking ghash v0.5.1
[INFO] [stderr]     Checking env_logger v0.11.10
[INFO] [stderr]     Checking ctr v0.9.2
[INFO] [stderr]     Checking aes v0.8.4
[INFO] [stderr]     Checking hkdf v0.12.4
[INFO] [stderr]     Checking aes-gcm v0.10.3
[INFO] [stderr]    Compiling zstd-sys v2.0.16+zstd.1.5.7
[INFO] [stderr]    Compiling openssl-sys v0.9.112
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling libsqlite3-sys v0.28.0
[INFO] [stderr]    Compiling openssl v0.10.76
[INFO] [stderr]    Compiling native-tls v0.2.18
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]     Checking ahash v0.8.12
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]     Checking hashbrown v0.14.5
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]    Compiling tokio-macros v2.7.0
[INFO] [stderr]    Compiling tracing-attributes v0.1.31
[INFO] [stderr]    Compiling futures-macro v0.3.32
[INFO] [stderr]    Compiling zerovec-derive v0.11.3
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling actix-macros v0.2.4
[INFO] [stderr]    Compiling derive_more-impl v2.1.1
[INFO] [stderr]    Compiling zerofrom-derive v0.1.7
[INFO] [stderr]    Compiling yoke-derive v0.8.2
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]     Checking rand v0.9.2
[INFO] [stderr]    Compiling actix-web-codegen v4.3.0
[INFO] [stderr]     Checking rustls-webpki v0.101.7
[INFO] [stderr]     Checking sct v0.7.1
[INFO] [stderr]    Compiling zstd-safe v7.2.4
[INFO] [stderr]    Compiling thiserror-impl v2.0.18
[INFO] [stderr]     Checking tokio v1.51.0
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]     Checking zstd v0.13.3
[INFO] [stderr]     Checking futures-util v0.3.32
[INFO] [stderr]    Compiling derive_more v0.99.20
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]     Checking hashlink v0.9.1
[INFO] [stderr]    Compiling clap_derive v4.6.0
[INFO] [stderr]     Checking zerofrom v0.1.7
[INFO] [stderr]     Checking yoke v0.8.2
[INFO] [stderr]     Checking zerovec v0.11.6
[INFO] [stderr]     Checking zerotrie v0.2.4
[INFO] [stderr]     Checking simple_asn1 v0.6.4
[INFO] [stderr]     Checking tinystr v0.8.3
[INFO] [stderr]     Checking potential_utf v0.1.5
[INFO] [stderr]     Checking thiserror v1.0.69
[INFO] [stderr]     Checking icu_collections v2.2.0
[INFO] [stderr]     Checking icu_locale_core v2.2.0
[INFO] [stderr]     Checking derive_more v2.1.1
[INFO] [stderr]     Checking clap v4.6.0
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking jsonwebtoken v9.3.1
[INFO] [stderr]     Checking chrono v0.4.44
[INFO] [stderr]     Checking icu_provider v2.2.0
[INFO] [stderr]     Checking icu_properties v2.2.0
[INFO] [stderr]     Checking icu_normalizer v2.2.0
[INFO] [stderr]     Checking axum-core v0.4.5
[INFO] [stderr]     Checking futures-executor v0.3.32
[INFO] [stderr]     Checking futures v0.3.32
[INFO] [stderr]     Checking idna_adapter v1.2.1
[INFO] [stderr]     Checking idna v1.1.0
[INFO] [stderr]     Checking url v2.5.8
[INFO] [stderr]     Checking tokio-util v0.7.18
[INFO] [stderr]     Checking actix-rt v2.11.0
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking tokio-rustls v0.24.1
[INFO] [stderr]     Checking tower v0.5.3
[INFO] [stderr]     Checking actix-server v2.6.0
[INFO] [stderr]     Checking tower-http v0.6.8
[INFO] [stderr]     Checking h2 v0.3.27
[INFO] [stderr]     Checking actix-codec v0.5.2
[INFO] [stderr]     Checking h2 v0.4.13
[INFO] [stderr]     Checking rusqlite v0.31.0
[INFO] [stderr]     Checking actix-http v3.12.0
[INFO] [stderr]     Checking hyper v0.14.32
[INFO] [stderr]     Checking hyper v1.9.0
[INFO] [stderr]     Checking hyper-util v0.1.20
[INFO] [stderr]     Checking actix-web v4.13.0
[INFO] [stderr]     Checking hyper-tls v0.5.0
[INFO] [stderr]     Checking hyper-rustls v0.24.2
[INFO] [stderr]     Checking hyper-tls v0.6.0
[INFO] [stderr]     Checking axum v0.7.9
[INFO] [stderr]     Checking reqwest v0.11.27
[INFO] [stderr]     Checking reqwest v0.12.28
[INFO] [stderr]     Checking oauth2 v4.4.2
[INFO] [stderr]     Checking actix-web-httpauth v0.8.2
[INFO] [stderr]     Checking actix-session v0.9.0
[INFO] [stderr]     Checking actix-cors v0.7.1
[INFO] [stderr]     Checking actix-files v0.6.10
[INFO] [stderr]     Checking actix-identity v0.7.1
[INFO] [stderr]     Checking firebase-auth v0.4.3
[INFO] [stderr]     Checking lendwise-recovery v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode
[INFO] [stdout]   --> src/auth/services/firebase.rs:42:39
[INFO] [stdout]    |
[INFO] [stdout] 42 |                 let decoded = base64::decode(key_base64)?;
[INFO] [stdout]    |                                       ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode
[INFO] [stdout]   --> src/auth/services/firebase.rs:42:39
[INFO] [stdout]    |
[INFO] [stdout] 42 |                 let decoded = base64::decode(key_base64)?;
[INFO] [stdout]    |                                       ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `check_role` is never used
[INFO] [stdout]   --> src/auth/middleware/rbac.rs:57:8
[INFO] [stdout]    |
[INFO] [stdout] 24 | impl RequireRole {
[INFO] [stdout]    | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 57 |     fn check_role(&self, user_role: &UserRole) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `project_id` and `service_account_key` are never read
[INFO] [stdout]   --> src/auth/services/firebase.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct FirebaseAuthService {
[INFO] [stdout]    |            ------------------- fields in this struct
[INFO] [stdout] 17 |     client: Client,
[INFO] [stdout] 18 |     project_id: String,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 19 |     api_key: String,
[INFO] [stdout] 20 |     service_account_key: Option<Value>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `jwt_secret` is never read
[INFO] [stdout]   --> src/auth/services/jwt.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct JwtService {
[INFO] [stdout]    |            ---------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 19 |     jwt_secret: String,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `check_role` is never used
[INFO] [stdout]   --> src/auth/middleware/rbac.rs:57:8
[INFO] [stdout]    |
[INFO] [stdout] 24 | impl RequireRole {
[INFO] [stdout]    | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 57 |     fn check_role(&self, user_role: &UserRole) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `project_id` and `service_account_key` are never read
[INFO] [stdout]   --> src/auth/services/firebase.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct FirebaseAuthService {
[INFO] [stdout]    |            ------------------- fields in this struct
[INFO] [stdout] 17 |     client: Client,
[INFO] [stdout] 18 |     project_id: String,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 19 |     api_key: String,
[INFO] [stdout] 20 |     service_account_key: Option<Value>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `jwt_secret` is never read
[INFO] [stdout]   --> src/auth/services/jwt.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct JwtService {
[INFO] [stdout]    |            ---------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 19 |     jwt_secret: String,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode
[INFO] [stdout]   --> src/auth/services/firebase.rs:42:39
[INFO] [stdout]    |
[INFO] [stdout] 42 |                 let decoded = base64::decode(key_base64)?;
[INFO] [stdout]    |                                       ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode
[INFO] [stdout]   --> src/auth/services/firebase.rs:42:39
[INFO] [stdout]    |
[INFO] [stdout] 42 |                 let decoded = base64::decode(key_base64)?;
[INFO] [stdout]    |                                       ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_user_link_by_local_id` is never used
[INFO] [stdout]    --> src/db.rs:468:12
[INFO] [stdout]     |
[INFO] [stdout]  12 | impl Db {
[INFO] [stdout]     | ------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 468 |     pub fn get_user_link_by_local_id(&self, local_user_id: &str) -> Result<Option<crate::auth::models::UserLink>> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `verify_google_token` is never used
[INFO] [stdout]    --> src/auth/handlers/google.rs:130:14
[INFO] [stdout]     |
[INFO] [stdout] 130 | pub async fn verify_google_token(
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `role` is never read
[INFO] [stdout]   --> src/auth/middleware/mod.rs:18:9
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct AuthContext {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] 17 |     pub claims: FirebaseClaims,
[INFO] [stdout] 18 |     pub role: UserRole,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AuthContext` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `email`, `role`, `is_admin`, `is_lender`, and `is_borrower` are never used
[INFO] [stdout]   --> src/auth/middleware/mod.rs:35:12
[INFO] [stdout]    |
[INFO] [stdout] 21 | impl AuthContext {
[INFO] [stdout]    | ---------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 35 |     pub fn email(&self) -> Option<&str> {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub fn role(&self) -> &UserRole {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 43 |     pub fn is_admin(&self) -> bool {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 47 |     pub fn is_lender(&self) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |     pub fn is_borrower(&self) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `optional` is never used
[INFO] [stdout]   --> src/auth/middleware/auth.rs:35:12
[INFO] [stdout]    |
[INFO] [stdout] 25 | impl JwtAuth {
[INFO] [stdout]    | ------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 35 |     pub fn optional(mut self) -> Self {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RequireRole` is never constructed
[INFO] [stdout]   --> src/auth/middleware/rbac.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct RequireRole {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `any_of`, `role`, `admin`, `lender`, `borrower`, and `check_role` are never used
[INFO] [stdout]   --> src/auth/middleware/rbac.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 24 | impl RequireRole {
[INFO] [stdout]    | ---------------- associated items in this implementation
[INFO] [stdout] 25 |     /// Create middleware requiring any of the specified roles
[INFO] [stdout] 26 |     pub fn any_of(roles: Vec<UserRole>) -> Self {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 34 |     pub fn role(role: UserRole) -> Self {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 42 |     pub fn admin() -> Self {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 47 |     pub fn lender() -> Self {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 52 |     pub fn borrower() -> Self {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |     fn check_role(&self, user_role: &UserRole) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RbacMiddleware` is never constructed
[INFO] [stdout]    --> src/auth/middleware/rbac.rs:102:12
[INFO] [stdout]     |
[INFO] [stdout] 102 | pub struct RbacMiddleware<S> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ResourceOwnership` is never constructed
[INFO] [stdout]    --> src/auth/middleware/rbac.rs:180:12
[INFO] [stdout]     |
[INFO] [stdout] 180 | pub struct ResourceOwnership;
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `can_access` is never used
[INFO] [stdout]    --> src/auth/middleware/rbac.rs:184:12
[INFO] [stdout]     |
[INFO] [stdout] 182 | impl ResourceOwnership {
[INFO] [stdout]     | ---------------------- associated function in this implementation
[INFO] [stdout] 183 |     /// Check if user can access a resource
[INFO] [stdout] 184 |     pub fn can_access(
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `claims` is never read
[INFO] [stdout]    --> src/auth/models.rs:105:9
[INFO] [stdout]     |
[INFO] [stdout]  99 | pub struct DecodedFirebaseToken {
[INFO] [stdout]     |            -------------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 105 |     pub claims: serde_json::Value,
[INFO] [stdout]     |         ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `DecodedFirebaseToken` 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 `project_id` and `service_account_key` are never read
[INFO] [stdout]   --> src/auth/services/firebase.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct FirebaseAuthService {
[INFO] [stdout]    |            ------------------- fields in this struct
[INFO] [stdout] 17 |     client: Client,
[INFO] [stdout] 18 |     project_id: String,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 19 |     api_key: String,
[INFO] [stdout] 20 |     service_account_key: Option<Value>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `get_link_by_local_id` is never used
[INFO] [stdout]    --> src/auth/services/firebase.rs:246:12
[INFO] [stdout]     |
[INFO] [stdout]  23 | impl FirebaseAuthService {
[INFO] [stdout]     | ------------------------ associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 246 |     pub fn get_link_by_local_id(
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `jwt_secret` is never read
[INFO] [stdout]   --> src/auth/services/jwt.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct JwtService {
[INFO] [stdout]    |            ---------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 19 |     jwt_secret: String,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `extract_client_ip` is never used
[INFO] [stdout]  --> src/auth/utils/mod.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub fn extract_client_ip(req: &HttpRequest) -> Option<String> {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `extract_user_agent` is never used
[INFO] [stdout]   --> src/auth/utils/mod.rs:29:8
[INFO] [stdout]    |
[INFO] [stdout] 29 | pub fn extract_user_agent(req: &HttpRequest) -> Option<String> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sanitize_email` is never used
[INFO] [stdout]   --> src/auth/utils/mod.rs:37:8
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub fn sanitize_email(email: &str) -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `validate_password_strength` is never used
[INFO] [stdout]   --> src/auth/utils/mod.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub fn validate_password_strength(password: &str) -> Result<(), &'static str> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_user_link_by_local_id` is never used
[INFO] [stdout]    --> src/db.rs:468:12
[INFO] [stdout]     |
[INFO] [stdout]  12 | impl Db {
[INFO] [stdout]     | ------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 468 |     pub fn get_user_link_by_local_id(&self, local_user_id: &str) -> Result<Option<crate::auth::models::UserLink>> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `verify_google_token` is never used
[INFO] [stdout]    --> src/auth/handlers/google.rs:130:14
[INFO] [stdout]     |
[INFO] [stdout] 130 | pub async fn verify_google_token(
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `role` is never read
[INFO] [stdout]   --> src/auth/middleware/mod.rs:18:9
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct AuthContext {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] 17 |     pub claims: FirebaseClaims,
[INFO] [stdout] 18 |     pub role: UserRole,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AuthContext` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `email`, `role`, `is_admin`, `is_lender`, and `is_borrower` are never used
[INFO] [stdout]   --> src/auth/middleware/mod.rs:35:12
[INFO] [stdout]    |
[INFO] [stdout] 21 | impl AuthContext {
[INFO] [stdout]    | ---------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 35 |     pub fn email(&self) -> Option<&str> {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub fn role(&self) -> &UserRole {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 43 |     pub fn is_admin(&self) -> bool {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 47 |     pub fn is_lender(&self) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |     pub fn is_borrower(&self) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `optional` is never used
[INFO] [stdout]   --> src/auth/middleware/auth.rs:35:12
[INFO] [stdout]    |
[INFO] [stdout] 25 | impl JwtAuth {
[INFO] [stdout]    | ------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 35 |     pub fn optional(mut self) -> Self {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RequireRole` is never constructed
[INFO] [stdout]   --> src/auth/middleware/rbac.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct RequireRole {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `any_of`, `role`, `admin`, `lender`, `borrower`, and `check_role` are never used
[INFO] [stdout]   --> src/auth/middleware/rbac.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 24 | impl RequireRole {
[INFO] [stdout]    | ---------------- associated items in this implementation
[INFO] [stdout] 25 |     /// Create middleware requiring any of the specified roles
[INFO] [stdout] 26 |     pub fn any_of(roles: Vec<UserRole>) -> Self {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 34 |     pub fn role(role: UserRole) -> Self {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 42 |     pub fn admin() -> Self {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 47 |     pub fn lender() -> Self {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 52 |     pub fn borrower() -> Self {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 57 |     fn check_role(&self, user_role: &UserRole) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RbacMiddleware` is never constructed
[INFO] [stdout]    --> src/auth/middleware/rbac.rs:102:12
[INFO] [stdout]     |
[INFO] [stdout] 102 | pub struct RbacMiddleware<S> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ResourceOwnership` is never constructed
[INFO] [stdout]    --> src/auth/middleware/rbac.rs:180:12
[INFO] [stdout]     |
[INFO] [stdout] 180 | pub struct ResourceOwnership;
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `can_access` is never used
[INFO] [stdout]    --> src/auth/middleware/rbac.rs:184:12
[INFO] [stdout]     |
[INFO] [stdout] 182 | impl ResourceOwnership {
[INFO] [stdout]     | ---------------------- associated function in this implementation
[INFO] [stdout] 183 |     /// Check if user can access a resource
[INFO] [stdout] 184 |     pub fn can_access(
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `claims` is never read
[INFO] [stdout]    --> src/auth/models.rs:105:9
[INFO] [stdout]     |
[INFO] [stdout]  99 | pub struct DecodedFirebaseToken {
[INFO] [stdout]     |            -------------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 105 |     pub claims: serde_json::Value,
[INFO] [stdout]     |         ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `DecodedFirebaseToken` 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 `project_id` and `service_account_key` are never read
[INFO] [stdout]   --> src/auth/services/firebase.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct FirebaseAuthService {
[INFO] [stdout]    |            ------------------- fields in this struct
[INFO] [stdout] 17 |     client: Client,
[INFO] [stdout] 18 |     project_id: String,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 19 |     api_key: String,
[INFO] [stdout] 20 |     service_account_key: Option<Value>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `get_link_by_local_id` is never used
[INFO] [stdout]    --> src/auth/services/firebase.rs:246:12
[INFO] [stdout]     |
[INFO] [stdout]  23 | impl FirebaseAuthService {
[INFO] [stdout]     | ------------------------ associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 246 |     pub fn get_link_by_local_id(
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `jwt_secret` is never read
[INFO] [stdout]   --> src/auth/services/jwt.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct JwtService {
[INFO] [stdout]    |            ---------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 19 |     jwt_secret: String,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `extract_client_ip` is never used
[INFO] [stdout]  --> src/auth/utils/mod.rs:8:8
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub fn extract_client_ip(req: &HttpRequest) -> Option<String> {
[INFO] [stdout]   |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `extract_user_agent` is never used
[INFO] [stdout]   --> src/auth/utils/mod.rs:29:8
[INFO] [stdout]    |
[INFO] [stdout] 29 | pub fn extract_user_agent(req: &HttpRequest) -> Option<String> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sanitize_email` is never used
[INFO] [stdout]   --> src/auth/utils/mod.rs:37:8
[INFO] [stdout]    |
[INFO] [stdout] 37 | pub fn sanitize_email(email: &str) -> String {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `validate_password_strength` is never used
[INFO] [stdout]   --> src/auth/utils/mod.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub fn validate_password_strength(password: &str) -> Result<(), &'static str> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 34.56s
[INFO] running `Command { std: "docker" "inspect" "cc3db3fb0ad1ca8de91629c3bad173aa6473e5fa90551bb838e2f501220da24e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cc3db3fb0ad1ca8de91629c3bad173aa6473e5fa90551bb838e2f501220da24e", kill_on_drop: false }`
[INFO] [stdout] cc3db3fb0ad1ca8de91629c3bad173aa6473e5fa90551bb838e2f501220da24e
