[INFO] cloning repository https://github.com/joelewaldo/rust-password-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/joelewaldo/rust-password-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoelewaldo%2Frust-password-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoelewaldo%2Frust-password-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 62e88dbe8719c03a0a88eababa6aae80c4d6c012 [INFO] building joelewaldo/rust-password-server against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoelewaldo%2Frust-password-server" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/joelewaldo/rust-password-server [INFO] finished tweaking git repo https://github.com/joelewaldo/rust-password-server [INFO] tweaked toml for git repo https://github.com/joelewaldo/rust-password-server written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/joelewaldo/rust-password-server on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/joelewaldo/rust-password-server already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded uuid v1.13.1 [INFO] [stderr] Downloaded axum-core v0.5.0 [INFO] [stderr] Downloaded axum v0.8.1 [INFO] [stderr] Downloaded tower-http v0.6.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 99ef566315506a36610334edb19cc10a36c2a713a281ef35ec390fbab6b16047 [INFO] running `Command { std: "docker" "start" "-a" "99ef566315506a36610334edb19cc10a36c2a713a281ef35ec390fbab6b16047", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "99ef566315506a36610334edb19cc10a36c2a713a281ef35ec390fbab6b16047", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99ef566315506a36610334edb19cc10a36c2a713a281ef35ec390fbab6b16047", kill_on_drop: false }` [INFO] [stdout] 99ef566315506a36610334edb19cc10a36c2a713a281ef35ec390fbab6b16047 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dddbb422ffd17310d903a60fa91f15159399e9dae06b432d52584c6e31ac5286 [INFO] running `Command { std: "docker" "start" "-a" "dddbb422ffd17310d903a60fa91f15159399e9dae06b432d52584c6e31ac5286", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling once_cell v1.20.3 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling bytes v1.10.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling openssl-sys v0.9.105 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling openssl v0.10.70 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling serde_json v1.0.138 [INFO] [stderr] Compiling foldhash v0.1.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling native-tls v0.2.13 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Compiling bitflags v2.8.0 [INFO] [stderr] Compiling http v1.2.0 [INFO] [stderr] Compiling tinyvec v1.8.1 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling indexmap v2.7.1 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling chrono v0.4.39 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling uuid v1.13.1 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling rustversion v1.0.19 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling ghash v0.5.1 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling aes-gcm v0.10.3 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling tempfile v3.16.0 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling axum-core v0.5.0 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling async-trait v0.1.86 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling serde_path_to_error v0.1.16 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling sqlx-core v0.8.3 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling sqlx-postgres v0.8.3 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tower-http v0.6.2 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling axum v0.8.1 [INFO] [stderr] Compiling sqlx-macros-core v0.8.3 [INFO] [stderr] Compiling sqlx-macros v0.8.3 [INFO] [stderr] Compiling sqlx v0.8.3 [INFO] [stderr] Compiling rust-password-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `test_db_url` and `pagination_default_size` are never read [INFO] [stdout] --> src/bounded_context/infrastructure/config/app_config.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct AppConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 6 | pub test_db_url: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | pub pagination_default_size: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppConfig` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_pool` and `get_connection` are never used [INFO] [stdout] --> src/bounded_context/infrastructure/db/postgres_db.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Database { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get_pool(&self) -> &PgPool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub async fn get_connection(&self) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bounded_context/domain/password.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Password { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 20 | pub fn new(id: Uuid, service: String, nonce: String, cipher: String) -> Password { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASTER_KEY_SIZE` is never used [INFO] [stdout] --> src/bounded_context/utility/encryption.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const MASTER_KEY_SIZE: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_key` is never used [INFO] [stdout] --> src/bounded_context/utility/encryption.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn generate_key() -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_masterkey` is never used [INFO] [stdout] --> src/bounded_context/utility/encryption.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn is_valid_masterkey(master_key: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encrypt` is never used [INFO] [stdout] --> src/bounded_context/utility/encryption.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn encrypt(master_key: &str, password: String) -> (String, String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decrypt` is never used [INFO] [stdout] --> src/bounded_context/utility/encryption.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn decrypt(master_key: &str, nonce_hex: &str, cipher_hex: &str) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResponseMessage` is never constructed [INFO] [stdout] --> src/bounded_context/application/get_password.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct ResponseMessage { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResponseMessage` is never constructed [INFO] [stdout] --> src/bounded_context/application/search_password.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ResponseMessage { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SearchPasswordError` is never used [INFO] [stdout] --> src/bounded_context/application/search_password.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum SearchPasswordError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResponseMessage` is never constructed [INFO] [stdout] --> src/bounded_context/application/sort_password.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ResponseMessage { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SortPasswordError` is never used [INFO] [stdout] --> src/bounded_context/application/sort_password.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum SortPasswordError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 43s [INFO] running `Command { std: "docker" "inspect" "dddbb422ffd17310d903a60fa91f15159399e9dae06b432d52584c6e31ac5286", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dddbb422ffd17310d903a60fa91f15159399e9dae06b432d52584c6e31ac5286", kill_on_drop: false }` [INFO] [stdout] dddbb422ffd17310d903a60fa91f15159399e9dae06b432d52584c6e31ac5286 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4a0c20003d0bc74ed7a16a698a7460b26971aaba5bde9ce80396ef5fae0f50b2 [INFO] running `Command { std: "docker" "start" "-a" "4a0c20003d0bc74ed7a16a698a7460b26971aaba5bde9ce80396ef5fae0f50b2", kill_on_drop: false }` [INFO] [stderr] Compiling rust-password-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `test_db_url` and `pagination_default_size` are never read [INFO] [stdout] --> src/bounded_context/infrastructure/config/app_config.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct AppConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 6 | pub test_db_url: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | pub pagination_default_size: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppConfig` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_pool` and `get_connection` are never used [INFO] [stdout] --> src/bounded_context/infrastructure/db/postgres_db.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Database { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get_pool(&self) -> &PgPool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub async fn get_connection(&self) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bounded_context/domain/password.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Password { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 20 | pub fn new(id: Uuid, service: String, nonce: String, cipher: String) -> Password { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASTER_KEY_SIZE` is never used [INFO] [stdout] --> src/bounded_context/utility/encryption.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const MASTER_KEY_SIZE: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_key` is never used [INFO] [stdout] --> src/bounded_context/utility/encryption.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn generate_key() -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_masterkey` is never used [INFO] [stdout] --> src/bounded_context/utility/encryption.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn is_valid_masterkey(master_key: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encrypt` is never used [INFO] [stdout] --> src/bounded_context/utility/encryption.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn encrypt(master_key: &str, password: String) -> (String, String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decrypt` is never used [INFO] [stdout] --> src/bounded_context/utility/encryption.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn decrypt(master_key: &str, nonce_hex: &str, cipher_hex: &str) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResponseMessage` is never constructed [INFO] [stdout] --> src/bounded_context/application/get_password.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct ResponseMessage { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResponseMessage` is never constructed [INFO] [stdout] --> src/bounded_context/application/search_password.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ResponseMessage { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SearchPasswordError` is never used [INFO] [stdout] --> src/bounded_context/application/search_password.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum SearchPasswordError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResponseMessage` is never constructed [INFO] [stdout] --> src/bounded_context/application/sort_password.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ResponseMessage { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SortPasswordError` is never used [INFO] [stdout] --> src/bounded_context/application/sort_password.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum SortPasswordError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PgPool` and `query` [INFO] [stdout] --> tests/infrastructure_db_postgres_db_test.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::{query, Executor, PgPool}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NONCE_SIZE` is never used [INFO] [stdout] --> tests/utility_encryption_test.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const NONCE_SIZE: usize = 12; [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 `test_db_url` and `pagination_default_size` are never read [INFO] [stdout] --> src/bounded_context/infrastructure/config/app_config.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct AppConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 6 | pub test_db_url: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | pub pagination_default_size: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppConfig` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_pool` and `get_connection` are never used [INFO] [stdout] --> src/bounded_context/infrastructure/db/postgres_db.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Database { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get_pool(&self) -> &PgPool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub async fn get_connection(&self) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bounded_context/domain/password.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Password { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 20 | pub fn new(id: Uuid, service: String, nonce: String, cipher: String) -> Password { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASTER_KEY_SIZE` is never used [INFO] [stdout] --> src/bounded_context/utility/encryption.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const MASTER_KEY_SIZE: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_key` is never used [INFO] [stdout] --> src/bounded_context/utility/encryption.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn generate_key() -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid_masterkey` is never used [INFO] [stdout] --> src/bounded_context/utility/encryption.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn is_valid_masterkey(master_key: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encrypt` is never used [INFO] [stdout] --> src/bounded_context/utility/encryption.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn encrypt(master_key: &str, password: String) -> (String, String) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decrypt` is never used [INFO] [stdout] --> src/bounded_context/utility/encryption.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn decrypt(master_key: &str, nonce_hex: &str, cipher_hex: &str) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResponseMessage` is never constructed [INFO] [stdout] --> src/bounded_context/application/get_password.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct ResponseMessage { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResponseMessage` is never constructed [INFO] [stdout] --> src/bounded_context/application/search_password.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ResponseMessage { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SearchPasswordError` is never used [INFO] [stdout] --> src/bounded_context/application/search_password.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum SearchPasswordError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResponseMessage` is never constructed [INFO] [stdout] --> src/bounded_context/application/sort_password.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ResponseMessage { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SortPasswordError` is never used [INFO] [stdout] --> src/bounded_context/application/sort_password.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum SortPasswordError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 12.41s [INFO] running `Command { std: "docker" "inspect" "4a0c20003d0bc74ed7a16a698a7460b26971aaba5bde9ce80396ef5fae0f50b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a0c20003d0bc74ed7a16a698a7460b26971aaba5bde9ce80396ef5fae0f50b2", kill_on_drop: false }` [INFO] [stdout] 4a0c20003d0bc74ed7a16a698a7460b26971aaba5bde9ce80396ef5fae0f50b2