[INFO] cloning repository https://github.com/Marhead/dairy-back [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Marhead/dairy-back" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMarhead%2Fdairy-back", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMarhead%2Fdairy-back'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c74e392b27ea93e07415c040a9b4cdad598bd047 [INFO] testing Marhead/dairy-back against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMarhead%2Fdairy-back" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Marhead/dairy-back [INFO] finished tweaking git repo https://github.com/Marhead/dairy-back [INFO] tweaked toml for git repo https://github.com/Marhead/dairy-back written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Marhead/dairy-back 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/Marhead/dairy-back 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.18.0 [INFO] [stderr] Downloaded whoami v1.6.1 [INFO] [stderr] Downloaded sqlformat v0.2.6 [INFO] [stderr] Downloaded proc-macro2 v1.0.97 [INFO] [stderr] Downloaded tower-http v0.5.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 99208b2356d3a850ddf8e2edc222621bf5dfa7bcca09062448ffb235eb0802e8 [INFO] running `Command { std: "docker" "start" "-a" "99208b2356d3a850ddf8e2edc222621bf5dfa7bcca09062448ffb235eb0802e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "99208b2356d3a850ddf8e2edc222621bf5dfa7bcca09062448ffb235eb0802e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99208b2356d3a850ddf8e2edc222621bf5dfa7bcca09062448ffb235eb0802e8", kill_on_drop: false }` [INFO] [stdout] 99208b2356d3a850ddf8e2edc222621bf5dfa7bcca09062448ffb235eb0802e8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b160d87e32012e79b8e5244b193578b8c73f5a27ef39395cd37cb25e59344c69 [INFO] running `Command { std: "docker" "start" "-a" "b160d87e32012e79b8e5244b193578b8c73f5a27ef39395cd37cb25e59344c69", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.97 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling cc v1.2.32 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling uuid v1.18.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling sqlx v0.7.4 [INFO] [stderr] Compiling dairy-back v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/infrastructure/repositories.rs:47:32 [INFO] [stdout] | [INFO] [stdout] 47 | async fn find_by_id(&self, id: Uuid) -> DomainResult> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/infrastructure/repositories.rs:111:28 [INFO] [stdout] | [INFO] [stdout] 111 | async fn delete(&self, id: Uuid) -> DomainResult<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/infrastructure/repositories.rs:163:32 [INFO] [stdout] | [INFO] [stdout] 163 | async fn find_by_id(&self, id: Uuid) -> DomainResult> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `twilio_sid` [INFO] [stdout] --> src/infrastructure/repositories.rs:183:40 [INFO] [stdout] | [INFO] [stdout] 183 | async fn find_by_twilio_sid(&self, twilio_sid: &str) -> DomainResult> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_twilio_sid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contact_id` [INFO] [stdout] --> src/infrastructure/repositories.rs:229:40 [INFO] [stdout] | [INFO] [stdout] 229 | async fn find_by_contact_id(&self, contact_id: Uuid) -> DomainResult> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contact_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Contact` is never constructed [INFO] [stdout] --> src/domain/entities.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Contact { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Call` is never constructed [INFO] [stdout] --> src/domain/entities.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Call { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CallStatus` is never used [INFO] [stdout] --> src/domain/entities.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum CallStatus { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_twilio_status` is never used [INFO] [stdout] --> src/domain/entities.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl CallStatus { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 40 | pub fn from_twilio_status(status: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateCallRequest` is never constructed [INFO] [stdout] --> src/domain/entities.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct CreateCallRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateContactRequest` is never constructed [INFO] [stdout] --> src/domain/entities.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct CreateContactRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateCallStatusRequest` is never constructed [INFO] [stdout] --> src/domain/entities.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct UpdateCallStatusRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ContactRepository` is never used [INFO] [stdout] --> src/domain/repositories.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait ContactRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CallRepository` is never used [INFO] [stdout] --> src/domain/repositories.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub trait CallRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CallService` is never used [INFO] [stdout] --> src/domain/services.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait CallService { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ContactNotFound`, `CallNotFound`, `InvalidPhoneNumber`, and `ValidationError` are never constructed [INFO] [stdout] --> src/domain/errors.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum DomainError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 5 | #[error("Contact not found: {0}")] [INFO] [stdout] 6 | ContactNotFound(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | CallNotFound(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | InvalidPhoneNumber(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | ValidationError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DomainError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ContactRepositoryImpl` is never constructed [INFO] [stdout] --> src/infrastructure/repositories.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ContactRepositoryImpl { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/infrastructure/repositories.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl ContactRepositoryImpl { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(_pool: ()) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CallRepositoryImpl` is never constructed [INFO] [stdout] --> src/infrastructure/repositories.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct CallRepositoryImpl { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/infrastructure/repositories.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 129 | impl CallRepositoryImpl { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 130 | pub fn new(_pool: ()) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `status` is never read [INFO] [stdout] --> src/infrastructure/twilio.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | struct TwilioCallResponse { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 21 | sid: String, [INFO] [stdout] 22 | status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TwilioCallResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CallServiceImpl` is never constructed [INFO] [stdout] --> src/application/services.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct CallServiceImpl { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/application/services.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 18 | / impl CallServiceImpl [INFO] [stdout] 19 | | where [INFO] [stdout] 20 | | CR: CallRepository, [INFO] [stdout] 21 | | CCR: ContactRepository, [INFO] [stdout] | |___________________________- associated function in this implementation [INFO] [stdout] 22 | { [INFO] [stdout] 23 | pub fn new(call_repository: CR, contact_repository: CCR, twilio_client: TwilioClient) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CallHandler` is never constructed [INFO] [stdout] --> src/presentation/handlers.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct CallHandler { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `create_call`, `get_call`, `update_call_status`, `create_contact`, and `get_contacts` are never used [INFO] [stdout] --> src/presentation/handlers.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl CallHandler { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] 21 | pub fn new(service: CallServiceImpl) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub async fn create_call( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub async fn get_call( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub async fn update_call_status( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub async fn create_contact( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub async fn get_contacts( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `To` should have a snake case name [INFO] [stdout] --> src/infrastructure/twilio.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | To: String, [INFO] [stdout] | ^^ help: convert the identifier to snake case: `to` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `From` should have a snake case name [INFO] [stdout] --> src/infrastructure/twilio.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | From: String, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Twiml` should have a snake case name [INFO] [stdout] --> src/infrastructure/twilio.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | Twiml: String, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `twiml` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 59s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "b160d87e32012e79b8e5244b193578b8c73f5a27ef39395cd37cb25e59344c69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b160d87e32012e79b8e5244b193578b8c73f5a27ef39395cd37cb25e59344c69", kill_on_drop: false }` [INFO] [stdout] b160d87e32012e79b8e5244b193578b8c73f5a27ef39395cd37cb25e59344c69 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 04a9e7becb76761336634981f47f894e7c9436fb8e448ade668bcb3933220017 [INFO] running `Command { std: "docker" "start" "-a" "04a9e7becb76761336634981f47f894e7c9436fb8e448ade668bcb3933220017", kill_on_drop: false }` [INFO] [stderr] Compiling dairy-back v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/infrastructure/repositories.rs:47:32 [INFO] [stdout] | [INFO] [stdout] 47 | async fn find_by_id(&self, id: Uuid) -> DomainResult> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/infrastructure/repositories.rs:111:28 [INFO] [stdout] | [INFO] [stdout] 111 | async fn delete(&self, id: Uuid) -> DomainResult<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/infrastructure/repositories.rs:163:32 [INFO] [stdout] | [INFO] [stdout] 163 | async fn find_by_id(&self, id: Uuid) -> DomainResult> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `twilio_sid` [INFO] [stdout] --> src/infrastructure/repositories.rs:183:40 [INFO] [stdout] | [INFO] [stdout] 183 | async fn find_by_twilio_sid(&self, twilio_sid: &str) -> DomainResult> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_twilio_sid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contact_id` [INFO] [stdout] --> src/infrastructure/repositories.rs:229:40 [INFO] [stdout] | [INFO] [stdout] 229 | async fn find_by_contact_id(&self, contact_id: Uuid) -> DomainResult> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contact_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Contact` is never constructed [INFO] [stdout] --> src/domain/entities.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Contact { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Call` is never constructed [INFO] [stdout] --> src/domain/entities.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Call { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CallStatus` is never used [INFO] [stdout] --> src/domain/entities.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum CallStatus { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_twilio_status` is never used [INFO] [stdout] --> src/domain/entities.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl CallStatus { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 40 | pub fn from_twilio_status(status: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateCallRequest` is never constructed [INFO] [stdout] --> src/domain/entities.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct CreateCallRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateContactRequest` is never constructed [INFO] [stdout] --> src/domain/entities.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct CreateContactRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateCallStatusRequest` is never constructed [INFO] [stdout] --> src/domain/entities.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct UpdateCallStatusRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ContactRepository` is never used [INFO] [stdout] --> src/domain/repositories.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait ContactRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CallRepository` is never used [INFO] [stdout] --> src/domain/repositories.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub trait CallRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CallService` is never used [INFO] [stdout] --> src/domain/services.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait CallService { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ContactNotFound`, `CallNotFound`, `InvalidPhoneNumber`, and `ValidationError` are never constructed [INFO] [stdout] --> src/domain/errors.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum DomainError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 5 | #[error("Contact not found: {0}")] [INFO] [stdout] 6 | ContactNotFound(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | CallNotFound(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | InvalidPhoneNumber(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | ValidationError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DomainError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ContactRepositoryImpl` is never constructed [INFO] [stdout] --> src/infrastructure/repositories.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ContactRepositoryImpl { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/infrastructure/repositories.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl ContactRepositoryImpl { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 15 | pub fn new(_pool: ()) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CallRepositoryImpl` is never constructed [INFO] [stdout] --> src/infrastructure/repositories.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub struct CallRepositoryImpl { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/infrastructure/repositories.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 129 | impl CallRepositoryImpl { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 130 | pub fn new(_pool: ()) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `status` is never read [INFO] [stdout] --> src/infrastructure/twilio.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | struct TwilioCallResponse { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 21 | sid: String, [INFO] [stdout] 22 | status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TwilioCallResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CallServiceImpl` is never constructed [INFO] [stdout] --> src/application/services.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct CallServiceImpl { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/application/services.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 18 | / impl CallServiceImpl [INFO] [stdout] 19 | | where [INFO] [stdout] 20 | | CR: CallRepository, [INFO] [stdout] 21 | | CCR: ContactRepository, [INFO] [stdout] | |___________________________- associated function in this implementation [INFO] [stdout] 22 | { [INFO] [stdout] 23 | pub fn new(call_repository: CR, contact_repository: CCR, twilio_client: TwilioClient) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CallHandler` is never constructed [INFO] [stdout] --> src/presentation/handlers.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct CallHandler { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `create_call`, `get_call`, `update_call_status`, `create_contact`, and `get_contacts` are never used [INFO] [stdout] --> src/presentation/handlers.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl CallHandler { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] 21 | pub fn new(service: CallServiceImpl) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub async fn create_call( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub async fn get_call( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub async fn update_call_status( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub async fn create_contact( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub async fn get_contacts( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `To` should have a snake case name [INFO] [stdout] --> src/infrastructure/twilio.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | To: String, [INFO] [stdout] | ^^ help: convert the identifier to snake case: `to` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `From` should have a snake case name [INFO] [stdout] --> src/infrastructure/twilio.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | From: String, [INFO] [stdout] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Twiml` should have a snake case name [INFO] [stdout] --> src/infrastructure/twilio.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | Twiml: String, [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `twiml` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.94s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "04a9e7becb76761336634981f47f894e7c9436fb8e448ade668bcb3933220017", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04a9e7becb76761336634981f47f894e7c9436fb8e448ade668bcb3933220017", kill_on_drop: false }` [INFO] [stdout] 04a9e7becb76761336634981f47f894e7c9436fb8e448ade668bcb3933220017 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5351cf9c2613681a138bc8f4e155e941b4f03fd90aa192928c57e2631e206808 [INFO] running `Command { std: "docker" "start" "-a" "5351cf9c2613681a138bc8f4e155e941b4f03fd90aa192928c57e2631e206808", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/infrastructure/repositories.rs:47:32 [INFO] [stderr] | [INFO] [stderr] 47 | async fn find_by_id(&self, id: Uuid) -> DomainResult> { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/infrastructure/repositories.rs:111:28 [INFO] [stderr] | [INFO] [stderr] 111 | async fn delete(&self, id: Uuid) -> DomainResult<()> { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/infrastructure/repositories.rs:163:32 [INFO] [stderr] | [INFO] [stderr] 163 | async fn find_by_id(&self, id: Uuid) -> DomainResult> { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `twilio_sid` [INFO] [stderr] --> src/infrastructure/repositories.rs:183:40 [INFO] [stderr] | [INFO] [stderr] 183 | async fn find_by_twilio_sid(&self, twilio_sid: &str) -> DomainResult> { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_twilio_sid` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `contact_id` [INFO] [stderr] --> src/infrastructure/repositories.rs:229:40 [INFO] [stderr] | [INFO] [stderr] 229 | async fn find_by_contact_id(&self, contact_id: Uuid) -> DomainResult> { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contact_id` [INFO] [stderr] [INFO] [stderr] warning: struct `Contact` is never constructed [INFO] [stderr] --> src/domain/entities.rs:6:12 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct Contact { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: struct `Call` is never constructed [INFO] [stderr] --> src/domain/entities.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 16 | pub struct Call { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `CallStatus` is never used [INFO] [stderr] --> src/domain/entities.rs:27:10 [INFO] [stderr] | [INFO] [stderr] 27 | pub enum CallStatus { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from_twilio_status` is never used [INFO] [stderr] --> src/domain/entities.rs:40:12 [INFO] [stderr] | [INFO] [stderr] 39 | impl CallStatus { [INFO] [stderr] | --------------- associated function in this implementation [INFO] [stderr] 40 | pub fn from_twilio_status(status: &str) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `CreateCallRequest` is never constructed [INFO] [stderr] --> src/domain/entities.rs:56:12 [INFO] [stderr] | [INFO] [stderr] 56 | pub struct CreateCallRequest { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `CreateContactRequest` is never constructed [INFO] [stderr] --> src/domain/entities.rs:62:12 [INFO] [stderr] | [INFO] [stderr] 62 | pub struct CreateContactRequest { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `UpdateCallStatusRequest` is never constructed [INFO] [stderr] --> src/domain/entities.rs:69:12 [INFO] [stderr] | [INFO] [stderr] 69 | pub struct UpdateCallStatusRequest { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `ContactRepository` is never used [INFO] [stderr] --> src/domain/repositories.rs:8:11 [INFO] [stderr] | [INFO] [stderr] 8 | pub trait ContactRepository { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `CallRepository` is never used [INFO] [stderr] --> src/domain/repositories.rs:17:11 [INFO] [stderr] | [INFO] [stderr] 17 | pub trait CallRepository { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `CallService` is never used [INFO] [stderr] --> src/domain/services.rs:7:11 [INFO] [stderr] | [INFO] [stderr] 7 | pub trait CallService { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `ContactNotFound`, `CallNotFound`, `InvalidPhoneNumber`, and `ValidationError` are never constructed [INFO] [stderr] --> src/domain/errors.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub enum DomainError { [INFO] [stderr] | ----------- variants in this enum [INFO] [stderr] 5 | #[error("Contact not found: {0}")] [INFO] [stderr] 6 | ContactNotFound(String), [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 9 | CallNotFound(String), [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 12 | InvalidPhoneNumber(String), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 21 | ValidationError(String), [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `DomainError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `ContactRepositoryImpl` is never constructed [INFO] [stderr] --> src/infrastructure/repositories.rs:10:12 [INFO] [stderr] | [INFO] [stderr] 10 | pub struct ContactRepositoryImpl { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/infrastructure/repositories.rs:15:12 [INFO] [stderr] | [INFO] [stderr] 14 | impl ContactRepositoryImpl { [INFO] [stderr] | -------------------------- associated function in this implementation [INFO] [stderr] 15 | pub fn new(_pool: ()) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `CallRepositoryImpl` is never constructed [INFO] [stderr] --> src/infrastructure/repositories.rs:125:12 [INFO] [stderr] | [INFO] [stderr] 125 | pub struct CallRepositoryImpl { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/infrastructure/repositories.rs:130:12 [INFO] [stderr] | [INFO] [stderr] 129 | impl CallRepositoryImpl { [INFO] [stderr] | ----------------------- associated function in this implementation [INFO] [stderr] 130 | pub fn new(_pool: ()) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: field `status` is never read [INFO] [stderr] --> src/infrastructure/twilio.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 20 | struct TwilioCallResponse { [INFO] [stderr] | ------------------ field in this struct [INFO] [stderr] 21 | sid: String, [INFO] [stderr] 22 | status: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TwilioCallResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `CallServiceImpl` is never constructed [INFO] [stderr] --> src/application/services.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 12 | pub struct CallServiceImpl { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/application/services.rs:23:12 [INFO] [stderr] | [INFO] [stderr] 18 | / impl CallServiceImpl [INFO] [stderr] 19 | | where [INFO] [stderr] 20 | | CR: CallRepository, [INFO] [stderr] 21 | | CCR: ContactRepository, [INFO] [stderr] | |___________________________- associated function in this implementation [INFO] [stderr] 22 | { [INFO] [stderr] 23 | pub fn new(call_repository: CR, contact_repository: CCR, twilio_client: TwilioClient) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `CallHandler` is never constructed [INFO] [stderr] --> src/presentation/handlers.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 16 | pub struct CallHandler { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `new`, `create_call`, `get_call`, `update_call_status`, `create_contact`, and `get_contacts` are never used [INFO] [stderr] --> src/presentation/handlers.rs:21:12 [INFO] [stderr] | [INFO] [stderr] 20 | impl CallHandler { [INFO] [stderr] | ---------------- associated functions in this implementation [INFO] [stderr] 21 | pub fn new(service: CallServiceImpl) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 25 | pub async fn create_call( [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 51 | pub async fn get_call( [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 77 | pub async fn update_call_status( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 103 | pub async fn create_contact( [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 128 | pub async fn get_contacts( [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: structure field `To` should have a snake case name [INFO] [stderr] --> src/infrastructure/twilio.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | To: String, [INFO] [stderr] | ^^ help: convert the identifier to snake case: `to` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: structure field `From` should have a snake case name [INFO] [stderr] --> src/infrastructure/twilio.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | From: String, [INFO] [stderr] | ^^^^ help: convert the identifier to snake case (notice the capitalization): `from` [INFO] [stderr] [INFO] [stderr] warning: structure field `Twiml` should have a snake case name [INFO] [stderr] --> src/infrastructure/twilio.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | Twiml: String, [INFO] [stderr] | ^^^^^ help: convert the identifier to snake case: `twiml` [INFO] [stderr] [INFO] [stderr] warning: `dairy-back` (bin "dairy-back" test) generated 28 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.41s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/dairy_back-ae07b892c62ab4f3) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "5351cf9c2613681a138bc8f4e155e941b4f03fd90aa192928c57e2631e206808", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5351cf9c2613681a138bc8f4e155e941b4f03fd90aa192928c57e2631e206808", kill_on_drop: false }` [INFO] [stdout] 5351cf9c2613681a138bc8f4e155e941b4f03fd90aa192928c57e2631e206808