[INFO] cloning repository https://github.com/Shital1009/dodo_payment
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Shital1009/dodo_payment" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShital1009%2Fdodo_payment", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShital1009%2Fdodo_payment'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 24d09a2666fea616f6cffab70b5d69ea91362560
[INFO] checking Shital1009/dodo_payment against master#c290daa1e5274a52e54a0f49e31bd70192abc606 for pr-133502-23
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShital1009%2Fdodo_payment" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Shital1009/dodo_payment
[INFO] finished tweaking git repo https://github.com/Shital1009/dodo_payment
[INFO] tweaked toml for git repo https://github.com/Shital1009/dodo_payment written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Shital1009/dodo_payment on toolchain c290daa1e5274a52e54a0f49e31bd70192abc606
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c290daa1e5274a52e54a0f49e31bd70192abc606" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Shital1009/dodo_payment 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" "+c290daa1e5274a52e54a0f49e31bd70192abc606" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded mutually_exclusive_features v0.1.0
[INFO] [stderr]   Downloaded tracing-actix-web v0.7.18
[INFO] [stderr]   Downloaded pq-sys v0.4.8
[INFO] [stderr]   Downloaded toml v0.8.22
[INFO] [stderr]   Downloaded serde_html_form v0.2.7
[INFO] [stderr]   Downloaded hermit-abi v0.5.1
[INFO] [stderr]   Downloaded diesel v2.2.10
[INFO] [stderr]   Downloaded actix-governor v0.6.0
[INFO] [stderr]   Downloaded migrations_internals v2.2.0
[INFO] [stderr]   Downloaded migrations_macros v2.2.0
[INFO] [stderr]   Downloaded actix-web-lab v0.19.2
[INFO] [stderr]   Downloaded diesel_migrations v2.2.0
[INFO] [stderr]   Downloaded actix-web-lab-derive v0.19.0
[INFO] [stderr]   Downloaded actix-cors v0.6.5
[INFO] [stderr]   Downloaded bcrypt v0.15.1
[INFO] [stderr]   Downloaded toml_write v0.1.1
[INFO] [stderr]   Downloaded diesel_derives v2.2.5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] c16a359bb93eac0c56dde12465196006659df667987cd5b410e5b3409d1b0178
[INFO] running `Command { std: "docker" "start" "c16a359bb93eac0c56dde12465196006659df667987cd5b410e5b3409d1b0178", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c16a359bb93eac0c56dde12465196006659df667987cd5b410e5b3409d1b0178", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c16a359bb93eac0c56dde12465196006659df667987cd5b410e5b3409d1b0178" "/opt/rustwide/cargo-home/bin/cargo" "+c290daa1e5274a52e54a0f49e31bd70192abc606" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c16a359bb93eac0c56dde12465196006659df667987cd5b410e5b3409d1b0178", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c16a359bb93eac0c56dde12465196006659df667987cd5b410e5b3409d1b0178" "/opt/rustwide/cargo-home/bin/cargo" "+c290daa1e5274a52e54a0f49e31bd70192abc606" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling zerocopy v0.8.25
[INFO] [stderr]     Checking tracing-core v0.1.33
[INFO] [stderr]     Checking hashbrown v0.15.3
[INFO] [stderr]     Checking futures-channel v0.3.31
[INFO] [stderr]    Compiling jobserver v0.1.33
[INFO] [stderr]     Checking mio v1.0.3
[INFO] [stderr]     Checking socket2 v0.5.9
[INFO] [stderr]     Checking getrandom v0.3.3
[INFO] [stderr]     Checking serde v1.0.219
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]     Checking futures-io v0.3.31
[INFO] [stderr]    Compiling time-core v0.1.4
[INFO] [stderr]     Checking deranged v0.4.0
[INFO] [stderr]     Checking local-waker v0.1.4
[INFO] [stderr]    Compiling zstd-safe v7.2.4
[INFO] [stderr]    Compiling time-macros v0.2.22
[INFO] [stderr]     Checking http v0.2.12
[INFO] [stderr]    Compiling actix-macros v0.2.4
[INFO] [stderr]     Checking rand_core v0.9.3
[INFO] [stderr]     Checking getrandom v0.2.16
[INFO] [stderr]    Compiling bytes v1.10.1
[INFO] [stderr]     Checking tracing v0.1.41
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling cc v1.2.23
[INFO] [stderr]     Checking tokio v1.45.0
[INFO] [stderr]     Checking miniz_oxide v0.8.8
[INFO] [stderr]     Checking indexmap v2.9.0
[INFO] [stderr]    Compiling derive_more-impl v2.0.1
[INFO] [stderr]     Checking brotli-decompressor v5.0.0
[INFO] [stderr]     Checking actix-utils v3.0.1
[INFO] [stderr]     Checking bytestring v1.4.0
[INFO] [stderr]    Compiling cookie v0.16.2
[INFO] [stderr]     Checking actix-service v2.0.3
[INFO] [stderr]     Checking futures-util v0.3.31
[INFO] [stderr]    Compiling regex-lite v0.1.6
[INFO] [stderr]     Checking sha1 v0.10.6
[INFO] [stderr]    Compiling darling_core v0.20.11
[INFO] [stderr]     Checking flate2 v1.1.1
[INFO] [stderr]     Checking local-channel v0.1.5
[INFO] [stderr]     Checking brotli v8.0.1
[INFO] [stderr]     Checking language-tags v0.3.2
[INFO] [stderr]    Compiling winnow v0.7.10
[INFO] [stderr]    Compiling toml_write v0.1.1
[INFO] [stderr]     Checking time v0.3.41
[INFO] [stderr]     Checking impl-more v0.1.9
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]    Compiling bigdecimal v0.4.8
[INFO] [stderr]    Compiling zstd-sys v2.0.15+zstd.1.5.7
[INFO] [stderr]    Compiling pq-sys v0.4.8
[INFO] [stderr]    Compiling portable-atomic v1.11.0
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling thiserror v2.0.12
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]     Checking rand v0.9.1
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking serde_json v1.0.140
[INFO] [stderr]     Checking actix-router v0.5.3
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking serde_spanned v0.6.8
[INFO] [stderr]     Checking toml_datetime v0.6.9
[INFO] [stderr]     Checking uuid v1.16.0
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]     Checking raw-cpuid v11.5.0
[INFO] [stderr]     Checking futures-executor v0.3.31
[INFO] [stderr]     Checking inout v0.1.4
[INFO] [stderr]     Checking scheduled-thread-pool v0.2.7
[INFO] [stderr]    Compiling diesel_table_macro_syntax v0.2.0
[INFO] [stderr]    Compiling actix-web-codegen v4.3.0
[INFO] [stderr]     Checking hashbrown v0.14.5
[INFO] [stderr]     Checking derive_more v2.0.1
[INFO] [stderr]    Compiling derive_more v0.99.20
[INFO] [stderr]     Checking futures v0.3.31
[INFO] [stderr]     Checking r2d2 v0.8.10
[INFO] [stderr]     Checking chrono v0.4.41
[INFO] [stderr]     Checking cipher v0.4.4
[INFO] [stderr]     Checking unicode-normalization v0.1.24
[INFO] [stderr]     Checking dashmap v5.5.3
[INFO] [stderr]     Checking toml_edit v0.22.26
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking spinning_top v0.3.0
[INFO] [stderr]    Compiling pin-project-internal v1.1.10
[INFO] [stderr]    Compiling darling_macro v0.20.11
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]     Checking csv-core v0.1.12
[INFO] [stderr]     Checking quanta v0.12.5
[INFO] [stderr]     Checking ipnetwork v0.21.1
[INFO] [stderr]     Checking unicode-bidi v0.3.18
[INFO] [stderr]    Compiling anyhow v1.0.98
[INFO] [stderr]     Checking csv v1.3.1
[INFO] [stderr]    Compiling darling v0.20.11
[INFO] [stderr]     Checking idna v0.4.0
[INFO] [stderr]    Compiling dsl_auto_type v0.1.3
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling validator_types v0.16.0
[INFO] [stderr]     Checking async-stream v0.3.6
[INFO] [stderr]     Checking itertools v0.11.0
[INFO] [stderr]     Checking blowfish v0.9.1
[INFO] [stderr]     Checking simple_asn1 v0.6.3
[INFO] [stderr]     Checking ahash v0.8.12
[INFO] [stderr]     Checking serde_html_form v0.2.7
[INFO] [stderr]     Checking tracing-log v0.2.0
[INFO] [stderr]     Checking governor v0.6.3
[INFO] [stderr]    Compiling diesel_derives v2.2.5
[INFO] [stderr]     Checking pem v3.0.5
[INFO] [stderr]    Compiling async-trait v0.1.88
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]     Checking is-terminal v0.4.16
[INFO] [stderr]     Checking thread_local v1.1.8
[INFO] [stderr]     Checking mutually_exclusive_features v0.1.0
[INFO] [stderr]     Checking mediatype v0.19.20
[INFO] [stderr]     Checking tokio-util v0.7.15
[INFO] [stderr]     Checking actix-rt v2.10.0
[INFO] [stderr]     Checking toml v0.8.22
[INFO] [stderr]     Checking tokio-stream v0.1.17
[INFO] [stderr]     Checking actix-server v2.6.0
[INFO] [stderr]     Checking pin-project v1.1.10
[INFO] [stderr]     Checking arc-swap v1.7.1
[INFO] [stderr]    Compiling diesel-derive-enum v2.1.0
[INFO] [stderr]     Checking env_logger v0.10.2
[INFO] [stderr]     Checking migrations_internals v2.2.0
[INFO] [stderr]     Checking bcrypt v0.15.1
[INFO] [stderr]     Checking tracing-subscriber v0.3.19
[INFO] [stderr]     Checking actix-codec v0.5.2
[INFO] [stderr]     Checking h2 v0.3.26
[INFO] [stderr]     Checking dotenv v0.15.0
[INFO] [stderr]     Checking tokio-test v0.4.4
[INFO] [stderr]     Checking thiserror v1.0.69
[INFO] [stderr]    Compiling actix-web-lab-derive v0.19.0
[INFO] [stderr]    Compiling validator_derive v0.16.0
[INFO] [stderr]    Compiling migrations_macros v2.2.0
[INFO] [stderr]     Checking validator v0.16.1
[INFO] [stderr]     Checking jsonwebtoken v9.3.1
[INFO] [stderr]     Checking zstd v0.13.3
[INFO] [stderr]     Checking diesel v2.2.10
[INFO] [stderr]     Checking actix-http v3.11.0
[INFO] [stderr]     Checking actix-web v4.11.0
[INFO] [stderr]     Checking actix-cors v0.6.5
[INFO] [stderr]     Checking actix-web-lab v0.19.2
[INFO] [stderr]     Checking actix-governor v0.6.0
[INFO] [stderr]     Checking tracing-actix-web v0.7.18
[INFO] [stderr]     Checking diesel_migrations v2.2.0
[INFO] [stderr]     Checking dodo_payments v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `Responder`
[INFO] [stdout]  --> src/handlers/transaction.rs:1:36
[INFO] [stdout]   |
[INFO] [stdout] 1 | use actix_web::{web, HttpResponse, Responder};
[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 imports: `TransactionResponse` and `Transaction`
[INFO] [stdout]   --> src/handlers/transaction.rs:10:56
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::models::transaction::{CreateTransactionDto, Transaction, TransactionResponse};
[INFO] [stdout]    |                                                        ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::models::TransactionStatus`
[INFO] [stdout]   --> src/handlers/transaction.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use crate::models::TransactionStatus;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NewUser`
[INFO] [stdout]  --> src/handlers/user.rs:5:59
[INFO] [stdout]   |
[INFO] [stdout] 5 |     BalanceResponse, CreateUserDto, DepositDto, LoginDto, NewUser, User, UserResponse,
[INFO] [stdout]   |                                                           ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::utils::jwt::generate_token`
[INFO] [stdout]  --> src/handlers/user.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::utils::jwt::generate_token;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Responder`
[INFO] [stdout]  --> src/handlers/user.rs:8:36
[INFO] [stdout]   |
[INFO] [stdout] 8 | use actix_web::{web, HttpResponse, Responder};
[INFO] [stdout]   |                                    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DEFAULT_COST`, `hash`, and `verify`
[INFO] [stdout]   --> src/handlers/user.rs:10:14
[INFO] [stdout]    |
[INFO] [stdout] 10 | use bcrypt::{hash, verify, DEFAULT_COST};
[INFO] [stdout]    |              ^^^^  ^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::borrow::Cow`
[INFO] [stdout]   --> src/handlers/user.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::borrow::Cow;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `info`
[INFO] [stdout]   --> src/handlers/user.rs:14:15
[INFO] [stdout]    |
[INFO] [stdout] 14 | use tracing::{info, instrument};
[INFO] [stdout]    |               ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ValidationErrors`
[INFO] [stdout]   --> src/handlers/user.rs:16:27
[INFO] [stdout]    |
[INFO] [stdout] 16 | use validator::{Validate, ValidationErrors};
[INFO] [stdout]    |                           ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Error`
[INFO] [stdout]  --> src/middleware/auth.rs:9:10
[INFO] [stdout]   |
[INFO] [stdout] 9 |     web, Error, HttpMessage, HttpResponse,
[INFO] [stdout]   |          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tracing::instrument`
[INFO] [stdout]   --> src/middleware/auth.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use tracing::instrument;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `uuid::Uuid`
[INFO] [stdout]   --> src/middleware/auth.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use uuid::Uuid;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ConnectionManager` and `Pool`
[INFO] [stdout]  --> src/test_utils.rs:2:20
[INFO] [stdout]   |
[INFO] [stdout] 2 | use diesel::r2d2::{ConnectionManager, Pool};
[INFO] [stdout]   |                    ^^^^^^^^^^^^^^^^^  ^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stdout]  --> src/lib.rs:8:1
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub mod test_utils;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `diesel::PgConnection`
[INFO] [stdout]  --> src/test_utils.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use diesel::PgConnection;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stdout]  --> src/lib.rs:8:1
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub mod test_utils;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::http::header`
[INFO] [stdout]  --> src/utils/response_headers.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use actix_web::http::header;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::middleware::ErrorHandlerResponse`
[INFO] [stdout]  --> src/utils/response_headers.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use actix_web::middleware::ErrorHandlerResponse;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Result` and `dev`
[INFO] [stdout]  --> src/utils/response_headers.rs:3:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | use actix_web::{dev, middleware, Result};
[INFO] [stdout]   |                 ^^^              ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Responder`
[INFO] [stdout]  --> src/handlers/transaction.rs:1:36
[INFO] [stdout]   |
[INFO] [stdout] 1 | use actix_web::{web, HttpResponse, Responder};
[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 imports: `TransactionResponse` and `Transaction`
[INFO] [stdout]   --> src/handlers/transaction.rs:10:56
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::models::transaction::{CreateTransactionDto, Transaction, TransactionResponse};
[INFO] [stdout]    |                                                        ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::models::TransactionStatus`
[INFO] [stdout]   --> src/handlers/transaction.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use crate::models::TransactionStatus;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NewUser`
[INFO] [stdout]  --> src/handlers/user.rs:5:59
[INFO] [stdout]   |
[INFO] [stdout] 5 |     BalanceResponse, CreateUserDto, DepositDto, LoginDto, NewUser, User, UserResponse,
[INFO] [stdout]   |                                                           ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::utils::jwt::generate_token`
[INFO] [stdout]  --> src/handlers/user.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::utils::jwt::generate_token;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Responder`
[INFO] [stdout]  --> src/handlers/user.rs:8:36
[INFO] [stdout]   |
[INFO] [stdout] 8 | use actix_web::{web, HttpResponse, Responder};
[INFO] [stdout]   |                                    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DEFAULT_COST`, `hash`, and `verify`
[INFO] [stdout]   --> src/handlers/user.rs:10:14
[INFO] [stdout]    |
[INFO] [stdout] 10 | use bcrypt::{hash, verify, DEFAULT_COST};
[INFO] [stdout]    |              ^^^^  ^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::borrow::Cow`
[INFO] [stdout]   --> src/handlers/user.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::borrow::Cow;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `info`
[INFO] [stdout]   --> src/handlers/user.rs:14:15
[INFO] [stdout]    |
[INFO] [stdout] 14 | use tracing::{info, instrument};
[INFO] [stdout]    |               ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ValidationErrors`
[INFO] [stdout]   --> src/handlers/user.rs:16:27
[INFO] [stdout]    |
[INFO] [stdout] 16 | use validator::{Validate, ValidationErrors};
[INFO] [stdout]    |                           ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `NewUser` and `User`
[INFO] [stdout]    --> src/management/user_management.rs:132:56
[INFO] [stdout]     |
[INFO] [stdout] 132 |     use crate::models::user::{CreateUserDto, LoginDto, NewUser, User};
[INFO] [stdout]     |                                                        ^^^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]    --> src/management/user_management.rs:136:9
[INFO] [stdout]     |
[INFO] [stdout] 136 |     use std::env;
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Error`
[INFO] [stdout]  --> src/middleware/auth.rs:9:10
[INFO] [stdout]   |
[INFO] [stdout] 9 |     web, Error, HttpMessage, HttpResponse,
[INFO] [stdout]   |          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tracing::instrument`
[INFO] [stdout]   --> src/middleware/auth.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use tracing::instrument;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `uuid::Uuid`
[INFO] [stdout]   --> src/middleware/auth.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use uuid::Uuid;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ConnectionManager` and `Pool`
[INFO] [stdout]  --> src/test_utils.rs:2:20
[INFO] [stdout]   |
[INFO] [stdout] 2 | use diesel::r2d2::{ConnectionManager, Pool};
[INFO] [stdout]   |                    ^^^^^^^^^^^^^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `diesel::PgConnection`
[INFO] [stdout]  --> src/test_utils.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use diesel::PgConnection;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::http::header`
[INFO] [stdout]  --> src/utils/response_headers.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use actix_web::http::header;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::middleware::ErrorHandlerResponse`
[INFO] [stdout]  --> src/utils/response_headers.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use actix_web::middleware::ErrorHandlerResponse;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Result` and `dev`
[INFO] [stdout]  --> src/utils/response_headers.rs:3:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | use actix_web::{dev, middleware, Result};
[INFO] [stdout]   |                 ^^^              ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/middleware/auth.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 |     mut req: ServiceRequest,
[INFO] [stdout]    |     ----^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/middleware/auth.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 |     mut req: ServiceRequest,
[INFO] [stdout]    |     ----^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/middleware/auth.rs:68:41
[INFO] [stdout]    |
[INFO] [stdout] 68 |     let conn = &mut pool.get().map_err(|e| {
[INFO] [stdout]    |                                         ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user`
[INFO] [stdout]   --> src/middleware/auth.rs:79:9
[INFO] [stdout]    |
[INFO] [stdout] 79 |     let user = users.find(user_id).first::<User>(conn).map_err(|_| {
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `conn`
[INFO] [stdout]    --> src/management/user_management.rs:187:13
[INFO] [stdout]     |
[INFO] [stdout] 187 |         let conn = &mut pool.get().unwrap();
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_conn`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `conn`
[INFO] [stdout]    --> src/management/user_management.rs:206:13
[INFO] [stdout]     |
[INFO] [stdout] 206 |         let conn = &mut pool.get().unwrap();
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_conn`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user`
[INFO] [stdout]    --> src/management/user_management.rs:209:13
[INFO] [stdout]     |
[INFO] [stdout] 209 |         let user = create_test_user(&pool);
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `conn`
[INFO] [stdout]    --> src/management/user_management.rs:224:13
[INFO] [stdout]     |
[INFO] [stdout] 224 |         let conn = &mut pool.get().unwrap();
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_conn`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `conn`
[INFO] [stdout]    --> src/management/user_management.rs:252:13
[INFO] [stdout]     |
[INFO] [stdout] 252 |         let conn = &mut pool.get().unwrap();
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_conn`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user`
[INFO] [stdout]    --> src/management/user_management.rs:255:13
[INFO] [stdout]     |
[INFO] [stdout] 255 |         let user = create_test_user(&pool);
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/middleware/auth.rs:68:41
[INFO] [stdout]    |
[INFO] [stdout] 68 |     let conn = &mut pool.get().map_err(|e| {
[INFO] [stdout]    |                                         ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user`
[INFO] [stdout]   --> src/middleware/auth.rs:79:9
[INFO] [stdout]    |
[INFO] [stdout] 79 |     let user = users.find(user_id).first::<User>(conn).map_err(|_| {
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpResponse`, `ServiceRequest`, and `TestRequest`
[INFO] [stdout]  --> tests/ntegration_tests.rs:3:20
[INFO] [stdout]   |
[INFO] [stdout] 3 |     dev::{Service, ServiceRequest, ServiceResponse},
[INFO] [stdout]   |                    ^^^^^^^^^^^^^^
[INFO] [stdout] 4 |     test::{self, TestRequest},
[INFO] [stdout]   |                  ^^^^^^^^^^^
[INFO] [stdout] 5 |     web, App, HttpResponse,
[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 imports: `ConnectionManager` and `Pool`
[INFO] [stdout]  --> tests/ntegration_tests.rs:9:20
[INFO] [stdout]   |
[INFO] [stdout] 9 | use diesel::r2d2::{ConnectionManager, Pool};
[INFO] [stdout]   |                    ^^^^^^^^^^^^^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `diesel::PgConnection`
[INFO] [stdout]   --> tests/ntegration_tests.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use diesel::PgConnection;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `EmbeddedMigrations`, `MigrationHarness`, and `embed_migrations`
[INFO] [stdout]   --> tests/ntegration_tests.rs:11:25
[INFO] [stdout]    |
[INFO] [stdout] 11 | use diesel_migrations::{embed_migrations, EmbeddedMigrations, MigrationHarness};
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]   --> tests/ntegration_tests.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::env;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `establish_connection`
[INFO] [stdout]   --> tests/ntegration_tests.rs:15:39
[INFO] [stdout]    |
[INFO] [stdout] 15 | use dodo_payments::config::database::{establish_connection, DbPool};
[INFO] [stdout]    |                                       ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `dodo_payments::error::ApiError`
[INFO] [stdout]   --> tests/ntegration_tests.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use dodo_payments::error::ApiError;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Responder`
[INFO] [stdout]  --> src/handlers/transaction.rs:1:36
[INFO] [stdout]   |
[INFO] [stdout] 1 | use actix_web::{web, HttpResponse, Responder};
[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 imports: `TransactionResponse` and `Transaction`
[INFO] [stdout]   --> src/handlers/transaction.rs:10:56
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::models::transaction::{CreateTransactionDto, Transaction, TransactionResponse};
[INFO] [stdout]    |                                                        ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::models::TransactionStatus`
[INFO] [stdout]   --> src/handlers/transaction.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use crate::models::TransactionStatus;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NewUser`
[INFO] [stdout]  --> src/handlers/user.rs:5:59
[INFO] [stdout]   |
[INFO] [stdout] 5 |     BalanceResponse, CreateUserDto, DepositDto, LoginDto, NewUser, User, UserResponse,
[INFO] [stdout]   |                                                           ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::utils::jwt::generate_token`
[INFO] [stdout]  --> src/handlers/user.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::utils::jwt::generate_token;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Responder`
[INFO] [stdout]  --> src/handlers/user.rs:8:36
[INFO] [stdout]   |
[INFO] [stdout] 8 | use actix_web::{web, HttpResponse, Responder};
[INFO] [stdout]   |                                    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DEFAULT_COST`, `hash`, and `verify`
[INFO] [stdout]   --> src/handlers/user.rs:10:14
[INFO] [stdout]    |
[INFO] [stdout] 10 | use bcrypt::{hash, verify, DEFAULT_COST};
[INFO] [stdout]    |              ^^^^  ^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::borrow::Cow`
[INFO] [stdout]   --> src/handlers/user.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::borrow::Cow;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `info`
[INFO] [stdout]   --> src/handlers/user.rs:14:15
[INFO] [stdout]    |
[INFO] [stdout] 14 | use tracing::{info, instrument};
[INFO] [stdout]    |               ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ValidationErrors`
[INFO] [stdout]   --> src/handlers/user.rs:16:27
[INFO] [stdout]    |
[INFO] [stdout] 16 | use validator::{Validate, ValidationErrors};
[INFO] [stdout]    |                           ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Error`
[INFO] [stdout]  --> src/middleware/auth.rs:9:10
[INFO] [stdout]   |
[INFO] [stdout] 9 |     web, Error, HttpMessage, HttpResponse,
[INFO] [stdout]   |          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tracing::instrument`
[INFO] [stdout]   --> src/middleware/auth.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use tracing::instrument;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `uuid::Uuid`
[INFO] [stdout]   --> src/middleware/auth.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use uuid::Uuid;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::http::header`
[INFO] [stdout]  --> src/utils/response_headers.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use actix_web::http::header;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::middleware::ErrorHandlerResponse`
[INFO] [stdout]  --> src/utils/response_headers.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use actix_web::middleware::ErrorHandlerResponse;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Result` and `dev`
[INFO] [stdout]  --> src/utils/response_headers.rs:3:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | use actix_web::{dev, middleware, Result};
[INFO] [stdout]   |                 ^^^              ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]   --> src/main.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | use std::time::Duration;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tracing_subscriber`
[INFO] [stdout]   --> src/main.rs:23:5
[INFO] [stdout]    |
[INFO] [stdout] 23 | use tracing_subscriber;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `email`
[INFO] [stdout]   --> tests/ntegration_tests.rs:79:37
[INFO] [stdout]    |
[INFO] [stdout] 79 | fn cleanup_test_user(pool: &DbPool, email: &str) {
[INFO] [stdout]    |                                     ^^^^^ help: if this is intentional, prefix it with an underscore: `_email`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user`
[INFO] [stdout]    --> tests/ntegration_tests.rs:153:9
[INFO] [stdout]     |
[INFO] [stdout] 153 |     let user: UserResponse = test::read_body_json(resp).await;
[INFO] [stdout]     |         ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user`
[INFO] [stdout]    --> tests/ntegration_tests.rs:272:9
[INFO] [stdout]     |
[INFO] [stdout] 272 |     let user: UserResponse = test::read_body_json(resp).await;
[INFO] [stdout]     |         ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `body`
[INFO] [stdout]    --> tests/ntegration_tests.rs:296:9
[INFO] [stdout]     |
[INFO] [stdout] 296 |     let body = test::read_body(resp).await;
[INFO] [stdout]     |         ^^^^ help: if this is intentional, prefix it with an underscore: `_body`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `transaction_id`
[INFO] [stdout]    --> tests/ntegration_tests.rs:379:9
[INFO] [stdout]     |
[INFO] [stdout] 379 |     let transaction_id = transaction["id"].as_str().unwrap();
[INFO] [stdout]     |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transaction_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Responder`
[INFO] [stdout]  --> src/handlers/transaction.rs:1:36
[INFO] [stdout]   |
[INFO] [stdout] 1 | use actix_web::{web, HttpResponse, Responder};
[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 imports: `TransactionResponse` and `Transaction`
[INFO] [stdout]   --> src/handlers/transaction.rs:10:56
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::models::transaction::{CreateTransactionDto, Transaction, TransactionResponse};
[INFO] [stdout]    |                                                        ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::models::TransactionStatus`
[INFO] [stdout]   --> src/handlers/transaction.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use crate::models::TransactionStatus;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NewUser`
[INFO] [stdout]  --> src/handlers/user.rs:5:59
[INFO] [stdout]   |
[INFO] [stdout] 5 |     BalanceResponse, CreateUserDto, DepositDto, LoginDto, NewUser, User, UserResponse,
[INFO] [stdout]   |                                                           ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::utils::jwt::generate_token`
[INFO] [stdout]  --> src/handlers/user.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::utils::jwt::generate_token;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Responder`
[INFO] [stdout]  --> src/handlers/user.rs:8:36
[INFO] [stdout]   |
[INFO] [stdout] 8 | use actix_web::{web, HttpResponse, Responder};
[INFO] [stdout]   |                                    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DEFAULT_COST`, `hash`, and `verify`
[INFO] [stdout]   --> src/handlers/user.rs:10:14
[INFO] [stdout]    |
[INFO] [stdout] 10 | use bcrypt::{hash, verify, DEFAULT_COST};
[INFO] [stdout]    |              ^^^^  ^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::borrow::Cow`
[INFO] [stdout]   --> src/handlers/user.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::borrow::Cow;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `info`
[INFO] [stdout]   --> src/handlers/user.rs:14:15
[INFO] [stdout]    |
[INFO] [stdout] 14 | use tracing::{info, instrument};
[INFO] [stdout]    |               ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ValidationErrors`
[INFO] [stdout]   --> src/handlers/user.rs:16:27
[INFO] [stdout]    |
[INFO] [stdout] 16 | use validator::{Validate, ValidationErrors};
[INFO] [stdout]    |                           ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `NewUser` and `User`
[INFO] [stdout]    --> src/management/user_management.rs:132:56
[INFO] [stdout]     |
[INFO] [stdout] 132 |     use crate::models::user::{CreateUserDto, LoginDto, NewUser, User};
[INFO] [stdout]     |                                                        ^^^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]    --> src/management/user_management.rs:136:9
[INFO] [stdout]     |
[INFO] [stdout] 136 |     use std::env;
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Error`
[INFO] [stdout]  --> src/middleware/auth.rs:9:10
[INFO] [stdout]   |
[INFO] [stdout] 9 |     web, Error, HttpMessage, HttpResponse,
[INFO] [stdout]   |          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tracing::instrument`
[INFO] [stdout]   --> src/middleware/auth.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use tracing::instrument;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `uuid::Uuid`
[INFO] [stdout]   --> src/middleware/auth.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use uuid::Uuid;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::http::header`
[INFO] [stdout]  --> src/utils/response_headers.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use actix_web::http::header;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::middleware::ErrorHandlerResponse`
[INFO] [stdout]  --> src/utils/response_headers.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use actix_web::middleware::ErrorHandlerResponse;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Result` and `dev`
[INFO] [stdout]  --> src/utils/response_headers.rs:3:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | use actix_web::{dev, middleware, Result};
[INFO] [stdout]   |                 ^^^              ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]   --> src/main.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | use std::time::Duration;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tracing_subscriber`
[INFO] [stdout]   --> src/main.rs:23:5
[INFO] [stdout]    |
[INFO] [stdout] 23 | use tracing_subscriber;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/middleware/auth.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 |     mut req: ServiceRequest,
[INFO] [stdout]    |     ----^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/middleware/auth.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 |     mut req: ServiceRequest,
[INFO] [stdout]    |     ----^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/middleware/auth.rs:68:41
[INFO] [stdout]    |
[INFO] [stdout] 68 |     let conn = &mut pool.get().map_err(|e| {
[INFO] [stdout]    |                                         ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user`
[INFO] [stdout]   --> src/middleware/auth.rs:79:9
[INFO] [stdout]    |
[INFO] [stdout] 79 |     let user = users.find(user_id).first::<User>(conn).map_err(|_| {
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `conn`
[INFO] [stdout]    --> src/management/user_management.rs:187:13
[INFO] [stdout]     |
[INFO] [stdout] 187 |         let conn = &mut pool.get().unwrap();
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_conn`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `conn`
[INFO] [stdout]    --> src/management/user_management.rs:206:13
[INFO] [stdout]     |
[INFO] [stdout] 206 |         let conn = &mut pool.get().unwrap();
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_conn`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user`
[INFO] [stdout]    --> src/management/user_management.rs:209:13
[INFO] [stdout]     |
[INFO] [stdout] 209 |         let user = create_test_user(&pool);
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `conn`
[INFO] [stdout]    --> src/management/user_management.rs:224:13
[INFO] [stdout]     |
[INFO] [stdout] 224 |         let conn = &mut pool.get().unwrap();
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_conn`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `conn`
[INFO] [stdout]    --> src/management/user_management.rs:252:13
[INFO] [stdout]     |
[INFO] [stdout] 252 |         let conn = &mut pool.get().unwrap();
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_conn`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user`
[INFO] [stdout]    --> src/management/user_management.rs:255:13
[INFO] [stdout]     |
[INFO] [stdout] 255 |         let user = create_test_user(&pool);
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/middleware/auth.rs:68:41
[INFO] [stdout]    |
[INFO] [stdout] 68 |     let conn = &mut pool.get().map_err(|e| {
[INFO] [stdout]    |                                         ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user`
[INFO] [stdout]   --> src/middleware/auth.rs:79:9
[INFO] [stdout]    |
[INFO] [stdout] 79 |     let user = users.find(user_id).first::<User>(conn).map_err(|_| {
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 10s
[INFO] running `Command { std: "docker" "inspect" "c16a359bb93eac0c56dde12465196006659df667987cd5b410e5b3409d1b0178", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c16a359bb93eac0c56dde12465196006659df667987cd5b410e5b3409d1b0178", kill_on_drop: false }`
[INFO] [stdout] c16a359bb93eac0c56dde12465196006659df667987cd5b410e5b3409d1b0178
