[INFO] cloning repository https://github.com/rocha19/isi-dev-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rocha19/isi-dev-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frocha19%2Fisi-dev-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frocha19%2Fisi-dev-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 480226dad84832a5cc95ce1287d457b3c5139c38 [INFO] building rocha19/isi-dev-server against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frocha19%2Fisi-dev-server" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rocha19/isi-dev-server [INFO] finished tweaking git repo https://github.com/rocha19/isi-dev-server [INFO] tweaked toml for git repo https://github.com/rocha19/isi-dev-server written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rocha19/isi-dev-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/rocha19/isi-dev-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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded deadpool-runtime v0.1.4 [INFO] [stderr] Downloaded cargo-husky v1.5.0 [INFO] [stderr] Downloaded sdd v3.0.8 [INFO] [stderr] Downloaded deadpool v0.12.2 [INFO] [stderr] Downloaded scc v2.3.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] f46035f5f1610090478361a33ebd32df7e312bd19fa046c1e764197dd7d0417a [INFO] running `Command { std: "docker" "start" "-a" "f46035f5f1610090478361a33ebd32df7e312bd19fa046c1e764197dd7d0417a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f46035f5f1610090478361a33ebd32df7e312bd19fa046c1e764197dd7d0417a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f46035f5f1610090478361a33ebd32df7e312bd19fa046c1e764197dd7d0417a", kill_on_drop: false }` [INFO] [stdout] f46035f5f1610090478361a33ebd32df7e312bd19fa046c1e764197dd7d0417a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 2278473135a4c2397807ac81532ab77c3262e4b2a7bfa88d5b9e0853429a81c9 [INFO] running `Command { std: "docker" "start" "-a" "2278473135a4c2397807ac81532ab77c3262e4b2a7bfa88d5b9e0853429a81c9", kill_on_drop: false }` [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling whoami v1.6.0 [INFO] [stderr] Compiling postgres-protocol v0.6.8 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling postgres-types v0.2.9 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling cargo-husky v1.5.0 [INFO] [stderr] Compiling if_chain v1.0.2 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling axum-macros v0.4.2 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling validator_types v0.16.0 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling validator_derive v0.16.0 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling validator v0.16.1 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Compiling deadpool-runtime v0.1.4 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling deadpool v0.10.0 [INFO] [stderr] Compiling deadpool v0.12.2 [INFO] [stderr] Compiling tokio-postgres v0.7.13 [INFO] [stderr] Compiling hyper-util v0.1.14 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Compiling deadpool-postgres v0.12.1 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Compiling sqlx v0.7.4 [INFO] [stderr] Compiling isi-dev v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> src/frameworks/axum/handler/coupon/get_coupons.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | query: Query, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> src/frameworks/axum/handler/coupon/get_coupons.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | query: Query, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InMemoryCouponRepository` is never constructed [INFO] [stdout] --> src/application/repository/coupon_in_memory_repository.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct InMemoryCouponRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/application/repository/coupon_in_memory_repository.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl InMemoryCouponRepository { [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] 22 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InMemoryProductRepository` is never constructed [INFO] [stdout] --> src/application/repository/product_in_memory_repository.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct InMemoryProductRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/application/repository/product_in_memory_repository.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl InMemoryProductRepository { [INFO] [stdout] | ------------------------------ associated function in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/domain/entity/coupon_entity.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 76 | impl Coupon { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 77 | pub fn new(coupon: CreateCoupon) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/domain/entity/coupon_entity.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 106 | impl UpdateCoupon { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 107 | pub fn new(coupon: UpdateCoupon) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ApplyPercentDiscount` is never constructed [INFO] [stdout] --> src/domain/entity/product_entity.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct ApplyPercentDiscount { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ApplyCoupon` is never constructed [INFO] [stdout] --> src/domain/entity/product_entity.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub struct ApplyCoupon { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find_valid_coupon_by_code` and `increment_uses` are never used [INFO] [stdout] --> src/domain/repository/coupon_repository.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait CouponRepository: Send + Sync { [INFO] [stdout] | ---------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 24 | async fn find_valid_coupon_by_code(&self, code: &str) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | async fn increment_uses(&self, coupon_id: String); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 13s [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 4` [INFO] running `Command { std: "docker" "inspect" "2278473135a4c2397807ac81532ab77c3262e4b2a7bfa88d5b9e0853429a81c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2278473135a4c2397807ac81532ab77c3262e4b2a7bfa88d5b9e0853429a81c9", kill_on_drop: false }` [INFO] [stdout] 2278473135a4c2397807ac81532ab77c3262e4b2a7bfa88d5b9e0853429a81c9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 3b8448730974ae3c40e04a9e6a18cfdf0362eedcd78227d99125c063fa435ad6 [INFO] running `Command { std: "docker" "start" "-a" "3b8448730974ae3c40e04a9e6a18cfdf0362eedcd78227d99125c063fa435ad6", kill_on_drop: false }` [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling sdd v3.0.8 [INFO] [stderr] Compiling serial_test_derive v3.2.0 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling scc v2.3.4 [INFO] [stderr] Compiling h2 v0.4.10 [INFO] [stderr] Compiling pretty_assertions v1.4.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Compiling tokio-postgres v0.7.13 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling serial_test v3.2.0 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling deadpool-postgres v0.12.1 [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.14 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.20 [INFO] [stderr] Compiling sqlx v0.7.4 [INFO] [stderr] Compiling isi-dev v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> src/frameworks/axum/handler/coupon/get_coupons.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | query: Query, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> src/frameworks/axum/handler/coupon/get_coupons.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | query: Query, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> src/frameworks/axum/handler/coupon/get_coupons.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | query: Query, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> src/frameworks/axum/handler/coupon/get_coupons.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | query: Query, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InMemoryCouponRepository` is never constructed [INFO] [stdout] --> src/application/repository/coupon_in_memory_repository.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct InMemoryCouponRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/application/repository/coupon_in_memory_repository.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl InMemoryCouponRepository { [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] 22 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InMemoryProductRepository` is never constructed [INFO] [stdout] --> src/application/repository/product_in_memory_repository.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct InMemoryProductRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/application/repository/product_in_memory_repository.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl InMemoryProductRepository { [INFO] [stdout] | ------------------------------ associated function in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/domain/entity/coupon_entity.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 76 | impl Coupon { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 77 | pub fn new(coupon: CreateCoupon) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/domain/entity/coupon_entity.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 106 | impl UpdateCoupon { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 107 | pub fn new(coupon: UpdateCoupon) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ApplyPercentDiscount` is never constructed [INFO] [stdout] --> src/domain/entity/product_entity.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct ApplyPercentDiscount { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ApplyCoupon` is never constructed [INFO] [stdout] --> src/domain/entity/product_entity.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub struct ApplyCoupon { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find_valid_coupon_by_code` and `increment_uses` are never used [INFO] [stdout] --> src/domain/repository/coupon_repository.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait CouponRepository: Send + Sync { [INFO] [stdout] | ---------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 24 | async fn find_valid_coupon_by_code(&self, code: &str) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | async fn increment_uses(&self, coupon_id: String); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InMemoryCouponRepository` is never constructed [INFO] [stdout] --> src/application/repository/coupon_in_memory_repository.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct InMemoryCouponRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/application/repository/coupon_in_memory_repository.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl InMemoryCouponRepository { [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] 22 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InMemoryProductRepository` is never constructed [INFO] [stdout] --> src/application/repository/product_in_memory_repository.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct InMemoryProductRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/application/repository/product_in_memory_repository.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl InMemoryProductRepository { [INFO] [stdout] | ------------------------------ associated function in this implementation [INFO] [stdout] 20 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/domain/entity/coupon_entity.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 76 | impl Coupon { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 77 | pub fn new(coupon: CreateCoupon) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/domain/entity/coupon_entity.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 106 | impl UpdateCoupon { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 107 | pub fn new(coupon: UpdateCoupon) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ApplyPercentDiscount` is never constructed [INFO] [stdout] --> src/domain/entity/product_entity.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct ApplyPercentDiscount { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ApplyCoupon` is never constructed [INFO] [stdout] --> src/domain/entity/product_entity.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub struct ApplyCoupon { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find_valid_coupon_by_code` and `increment_uses` are never used [INFO] [stdout] --> src/domain/repository/coupon_repository.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait CouponRepository: Send + Sync { [INFO] [stdout] | ---------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 24 | async fn find_valid_coupon_by_code(&self, code: &str) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | async fn increment_uses(&self, coupon_id: String); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 50.84s [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 4` [INFO] running `Command { std: "docker" "inspect" "3b8448730974ae3c40e04a9e6a18cfdf0362eedcd78227d99125c063fa435ad6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b8448730974ae3c40e04a9e6a18cfdf0362eedcd78227d99125c063fa435ad6", kill_on_drop: false }` [INFO] [stdout] 3b8448730974ae3c40e04a9e6a18cfdf0362eedcd78227d99125c063fa435ad6