[INFO] cloning repository https://github.com/quseop/ecommerce-engine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/quseop/ecommerce-engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquseop%2Fecommerce-engine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquseop%2Fecommerce-engine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d67dfe01ec9c29d1280d7f999de00e9bc9e56d08 [INFO] checking quseop/ecommerce-engine against try#95813608313bff49cfc1afc393a946a3c085b772 for pr-148946 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquseop%2Fecommerce-engine" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/quseop/ecommerce-engine [INFO] finished tweaking git repo https://github.com/quseop/ecommerce-engine [INFO] tweaked toml for git repo https://github.com/quseop/ecommerce-engine written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/quseop/ecommerce-engine on toolchain 95813608313bff49cfc1afc393a946a3c085b772 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+95813608313bff49cfc1afc393a946a3c085b772" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/quseop/ecommerce-engine 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" "+95813608313bff49cfc1afc393a946a3c085b772" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+95813608313bff49cfc1afc393a946a3c085b772" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dd7c954b0e6da9900fc9990ccd70b70ccd4630fbe8c5a4b166debc3f19352b43 [INFO] running `Command { std: "docker" "start" "-a" "dd7c954b0e6da9900fc9990ccd70b70ccd4630fbe8c5a4b166debc3f19352b43", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dd7c954b0e6da9900fc9990ccd70b70ccd4630fbe8c5a4b166debc3f19352b43", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd7c954b0e6da9900fc9990ccd70b70ccd4630fbe8c5a4b166debc3f19352b43", kill_on_drop: false }` [INFO] [stdout] dd7c954b0e6da9900fc9990ccd70b70ccd4630fbe8c5a4b166debc3f19352b43 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+95813608313bff49cfc1afc393a946a3c085b772" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0d2c7ddd919fb251eafaa88634325ae9b9dbf50c8163f52c32d3cbce49e5b4d6 [INFO] running `Command { std: "docker" "start" "-a" "0d2c7ddd919fb251eafaa88634325ae9b9dbf50c8163f52c32d3cbce49e5b4d6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Checking mio v1.1.0 [INFO] [stderr] Compiling cc v1.2.43 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling rustls v0.23.34 [INFO] [stderr] Checking serde_json v1.0.145 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Checking webpki-roots v1.0.3 [INFO] [stderr] Compiling rustls-pki-types v1.13.0 [INFO] [stderr] Checking semver v1.0.27 [INFO] [stderr] Checking tinyvec v1.10.0 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Checking webpki-roots v0.26.11 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling syn v2.0.108 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Checking stringprep v0.1.5 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking time v0.3.44 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling bytestring v1.5.0 [INFO] [stderr] Checking headers-core v0.3.0 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking strfmt v0.2.5 [INFO] [stderr] Compiling mongocrypt-sys v0.1.4+1.12.0 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Compiling regex-lite v0.1.8 [INFO] [stderr] Checking headers v0.4.1 [INFO] [stderr] Checking brotli v8.0.2 [INFO] [stderr] Checking serde_bytes v0.11.19 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking rustc_version v0.4.1 [INFO] [stderr] Checking pbkdf2 v0.11.0 [INFO] [stderr] Checking cookie v0.16.2 [INFO] [stderr] Compiling rustc_version_runtime v0.3.0 [INFO] [stderr] Checking rustls-webpki v0.103.7 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.21.3 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Compiling serde_derive v1.0.228 [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 tokio-macros v2.6.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling typeshare-annotation v1.0.4 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling macro_magic_core_macros v0.5.1 [INFO] [stderr] Compiling derive-syn-parse v0.2.0 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling typed-builder-macro v0.20.1 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling macro_magic_core v0.5.1 [INFO] [stderr] Compiling derive-where v1.6.0 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Compiling macro_magic_macros v0.5.1 [INFO] [stderr] Compiling darling_macro v0.21.3 [INFO] [stderr] Checking thiserror v2.0.17 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Checking strum v0.27.2 [INFO] [stderr] Compiling darling v0.21.3 [INFO] [stderr] Compiling serde_with_macros v3.15.1 [INFO] [stderr] Checking tungstenite v0.27.0 [INFO] [stderr] Compiling macro_magic v0.5.1 [INFO] [stderr] Compiling mongodb-internal-macros v3.3.0 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking typed-builder v0.20.1 [INFO] [stderr] Checking derive_more v2.0.1 [INFO] [stderr] Checking serde_with v3.15.1 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking uuid v1.18.1 [INFO] [stderr] Checking tracing-serde v0.2.0 [INFO] [stderr] Checking actix-router v0.5.3 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Checking bson v2.15.0 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking tracing-subscriber v0.3.20 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Checking typeshare v1.0.4 [INFO] [stderr] Checking shuttle-common v0.57.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking mongocrypt v0.3.1 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Checking shuttle-service v0.57.0 [INFO] [stderr] Compiling shuttle-ifc v0.57.0 [INFO] [stderr] Compiling shuttle-codegen v0.57.0 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking actix-rt v2.11.0 [INFO] [stderr] Checking hickory-proto v0.24.4 [INFO] [stderr] Compiling sqlx-postgres v0.8.6 [INFO] [stderr] Checking tokio-tungstenite v0.27.0 [INFO] [stderr] Checking actix-server v2.6.0 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking hickory-resolver v0.24.4 [INFO] [stderr] Checking mongodb v3.3.0 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking actix-http v3.11.2 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Checking hyper-util v0.1.17 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking actix-web v4.11.0 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking shuttle-shared-db v0.57.0 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking reqwest v0.12.24 [INFO] [stderr] Checking reqwest-middleware v0.4.2 [INFO] [stderr] Checking shuttle-api-client v0.57.0 [INFO] [stderr] Checking shuttle-runtime v0.57.0 [INFO] [stderr] Checking shuttle-actix-web v0.57.0 [INFO] [stderr] Checking ecommerce-engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::product::models::category::ProductCategory` [INFO] [stdout] --> src/product/models/product_new.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::product::models::category::ProductCategory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Decode` and `Encode` [INFO] [stdout] --> src/product/models/category.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::{Decode, Encode, Type}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::product::models::category::ProductCategory` [INFO] [stdout] --> src/product/models/dto/product_dto.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::product::models::category::ProductCategory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `JsonBody` [INFO] [stdout] --> src/fulfillment/order/api/order_api.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::web::{Json, JsonBody}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/fulfillment/order/repository/implementation/postgres_order_repo.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> src/fulfillment/shipping/models/shipping.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Local, Utc}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::PgPool` [INFO] [stdout] --> src/fulfillment/payment/payment_state.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::PgPool; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> src/fulfillment/payment/models/domain/payment.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Local, Utc}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::fulfillment::order::models::domain::order::Order` [INFO] [stdout] --> src/fulfillment/payment/models/domain/payment.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::fulfillment::order::models::domain::order::Order; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRow` and `Type` [INFO] [stdout] --> src/fulfillment/payment/models/payment_status.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::{Decode, FromRow, Type}; [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/app_state.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Json`, `Result`, `get`, and `post` [INFO] [stdout] --> src/main.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use actix_web::{get, post, web::{self, Json, ServiceConfig}, Result}; [INFO] [stdout] | ^^^ ^^^^ ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Data` and `post` [INFO] [stdout] --> src/main.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | use actix_web::web::{post, Data}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientOptions`, `ServerApiVersion`, `ServerApi`, and `bson::doc` [INFO] [stdout] --> src/main.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | use mongodb::{bson::doc, options::{ClientOptions, ServerApi, ServerApiVersion}, Client}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/main.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromRow` [INFO] [stdout] --> src/main.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | use sqlx::{FromRow, PgPool}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::postgres::PgSeverity::Log` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use sqlx::postgres::PgSeverity::Log; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::cart::repository::implementation::mongo_cart_repo::MongoCartRepo` [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::cart::repository::implementation::mongo_cart_repo::MongoCartRepo; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::fulfillment::order::order_state::OrderAppState` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::fulfillment::order::order_state::OrderAppState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::fulfillment::order::repository::implementation::postgres_order_repo::PostgresOrderRepo` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use crate::fulfillment::order::repository::implementation::postgres_order_repo::PostgresOrderRepo; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::product::product_state::ProductAppState` [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use crate::product::product_state::ProductAppState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::product::repository::implementation::mongo_product_repo::MongoProductRepo` [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use crate::product::repository::implementation::mongo_product_repo::MongoProductRepo; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::product::models::category::ProductCategory` [INFO] [stdout] --> src/product/models/product_new.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::product::models::category::ProductCategory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Decode` and `Encode` [INFO] [stdout] --> src/product/models/category.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::{Decode, Encode, Type}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::product::models::category::ProductCategory` [INFO] [stdout] --> src/product/models/dto/product_dto.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::product::models::category::ProductCategory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `JsonBody` [INFO] [stdout] --> src/fulfillment/order/api/order_api.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::web::{Json, JsonBody}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/fulfillment/order/repository/implementation/postgres_order_repo.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> src/fulfillment/shipping/models/shipping.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Local, Utc}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::PgPool` [INFO] [stdout] --> src/fulfillment/payment/payment_state.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sqlx::PgPool; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Utc` [INFO] [stdout] --> src/fulfillment/payment/models/domain/payment.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{Local, Utc}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::fulfillment::order::models::domain::order::Order` [INFO] [stdout] --> src/fulfillment/payment/models/domain/payment.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::fulfillment::order::models::domain::order::Order; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRow` and `Type` [INFO] [stdout] --> src/fulfillment/payment/models/payment_status.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::{Decode, FromRow, Type}; [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/app_state.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Json`, `Result`, `get`, and `post` [INFO] [stdout] --> src/main.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use actix_web::{get, post, web::{self, Json, ServiceConfig}, Result}; [INFO] [stdout] | ^^^ ^^^^ ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Data` and `post` [INFO] [stdout] --> src/main.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | use actix_web::web::{post, Data}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClientOptions`, `ServerApiVersion`, `ServerApi`, and `bson::doc` [INFO] [stdout] --> src/main.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | use mongodb::{bson::doc, options::{ClientOptions, ServerApi, ServerApiVersion}, Client}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/main.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromRow` [INFO] [stdout] --> src/main.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | use sqlx::{FromRow, PgPool}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::postgres::PgSeverity::Log` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use sqlx::postgres::PgSeverity::Log; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::cart::repository::implementation::mongo_cart_repo::MongoCartRepo` [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::cart::repository::implementation::mongo_cart_repo::MongoCartRepo; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::fulfillment::order::order_state::OrderAppState` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::fulfillment::order::order_state::OrderAppState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::fulfillment::order::repository::implementation::postgres_order_repo::PostgresOrderRepo` [INFO] [stdout] --> src/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use crate::fulfillment::order::repository::implementation::postgres_order_repo::PostgresOrderRepo; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::product::product_state::ProductAppState` [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use crate::product::product_state::ProductAppState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::product::repository::implementation::mongo_product_repo::MongoProductRepo` [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use crate::product::repository::implementation::mongo_product_repo::MongoProductRepo; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::SinkExt` [INFO] [stdout] --> src/fulfillment/order/api/order_api.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use futures::SinkExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::SinkExt` [INFO] [stdout] --> src/fulfillment/order/api/order_api.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use futures::SinkExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shipping` [INFO] [stdout] --> src/fulfillment/shipping/repository/implementation/postgres_shipping_repo.rs:11:34 [INFO] [stdout] | [INFO] [stdout] 11 | async fn add_shipping(&self, shipping: ShippingNew) -> actix_web::Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shipping` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shipping` [INFO] [stdout] --> src/fulfillment/shipping/repository/implementation/postgres_shipping_repo.rs:11:34 [INFO] [stdout] | [INFO] [stdout] 11 | async fn add_shipping(&self, shipping: ShippingNew) -> actix_web::Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_shipping` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DB_NAME` is never used [INFO] [stdout] --> src/main.rs:32:7 [INFO] [stdout] | [INFO] [stdout] 32 | const DB_NAME: &str = "agapao_db"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLL_NAME` is never used [INFO] [stdout] --> src/main.rs:33:7 [INFO] [stdout] | [INFO] [stdout] 33 | const COLL_NAME: &str = "products"; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cart/cart_state.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl CartAppState { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(repo: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `to_db` and `from_db` are never used [INFO] [stdout] --> src/cart/models/cart.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Cart { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn to_db(&self) -> CartDB { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn from_db(cart_db: CartDB, items: Vec) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CartDB` is never constructed [INFO] [stdout] --> src/cart/models/domain/cart_db.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct CartDB { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PostgresCartRepository` is never constructed [INFO] [stdout] --> src/cart/repository/implementation/postgres_cart_repo.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct PostgresCartRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PostgresProductRepo` is never constructed [INFO] [stdout] --> src/product/repository/implementation/postgres_product_repo.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct PostgresProductRepo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `to_dto`, `to_image_dto`, `to_size_dto`, and `from_dto` are never used [INFO] [stdout] --> src/product/models/product.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Product { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn to_dto(&self) -> ProductDTO { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn to_image_dto(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn to_size_dto(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn from_dto(product_dto: &ProductDTO, image_dto: &Vec, size_dto: &Vec) -> Product { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/product/models/category.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl ProductCategory { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 15 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProductDTO` is never constructed [INFO] [stdout] --> src/product/models/dto/product_dto.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct ProductDTO { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProductSizeDTO` is never constructed [INFO] [stdout] --> src/product/models/dto/product_size_dto.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ProductSizeDTO { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProductImageDTO` is never constructed [INFO] [stdout] --> src/product/models/dto/product_image_dto.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ProductImageDTO { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/fulfillment/order/models/domain/order_item.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl OrderItem { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 17 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shipping` is never constructed [INFO] [stdout] --> src/fulfillment/shipping/models/shipping.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Shipping { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShippingNew` is never constructed [INFO] [stdout] --> src/fulfillment/shipping/models/shipping.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ShippingNew { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `from_new` are never used [INFO] [stdout] --> src/fulfillment/shipping/models/shipping.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Shipping { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 27 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn from_new(shipping: ShippingNew) -> Shipping { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ShippingStatus` is never used [INFO] [stdout] --> src/fulfillment/shipping/models/shipping.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | pub enum ShippingStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `as_str` and `from_str` are never used [INFO] [stdout] --> src/fulfillment/shipping/models/shipping.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 64 | impl ShippingStatus { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 65 | pub fn as_str(&self) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn from_str(s: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Address` is never constructed [INFO] [stdout] --> src/fulfillment/shipping/models/address.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Address { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AddressNew` is never constructed [INFO] [stdout] --> src/fulfillment/shipping/models/address.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AddressNew { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ShippingRepository` is never used [INFO] [stdout] --> src/fulfillment/shipping/repository/interface/shipping_repo.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait ShippingRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PostgresShippingRepo` is never constructed [INFO] [stdout] --> src/fulfillment/shipping/repository/implementation/postgres_shipping_repo.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PostgresShippingRepo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `make_payment` is never used [INFO] [stdout] --> src/fulfillment/payment/payment_state.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 16 | impl PaymentState { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub async fn make_payment(&self) -> actix_web::Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `pending` is never used [INFO] [stdout] --> src/fulfillment/payment/models/domain/payment.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Payment { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn pending(order_id: String, amount_cents: i64) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `payment_state` is never read [INFO] [stdout] --> src/app_state.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct AppStates { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | pub payment_state: web::Data, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DB_NAME` is never used [INFO] [stdout] --> src/main.rs:32:7 [INFO] [stdout] | [INFO] [stdout] 32 | const DB_NAME: &str = "agapao_db"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLL_NAME` is never used [INFO] [stdout] --> src/main.rs:33:7 [INFO] [stdout] | [INFO] [stdout] 33 | const COLL_NAME: &str = "products"; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cart/cart_state.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl CartAppState { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 10 | pub fn new(repo: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `to_db` and `from_db` are never used [INFO] [stdout] --> src/cart/models/cart.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Cart { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn to_db(&self) -> CartDB { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn from_db(cart_db: CartDB, items: Vec) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CartDB` is never constructed [INFO] [stdout] --> src/cart/models/domain/cart_db.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct CartDB { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PostgresCartRepository` is never constructed [INFO] [stdout] --> src/cart/repository/implementation/postgres_cart_repo.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct PostgresCartRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PostgresProductRepo` is never constructed [INFO] [stdout] --> src/product/repository/implementation/postgres_product_repo.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct PostgresProductRepo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `to_dto`, `to_image_dto`, `to_size_dto`, and `from_dto` are never used [INFO] [stdout] --> src/product/models/product.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Product { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn to_dto(&self) -> ProductDTO { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn to_image_dto(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn to_size_dto(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn from_dto(product_dto: &ProductDTO, image_dto: &Vec, size_dto: &Vec) -> Product { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/product/models/category.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl ProductCategory { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 15 | pub fn to_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProductDTO` is never constructed [INFO] [stdout] --> src/product/models/dto/product_dto.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct ProductDTO { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProductSizeDTO` is never constructed [INFO] [stdout] --> src/product/models/dto/product_size_dto.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ProductSizeDTO { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProductImageDTO` is never constructed [INFO] [stdout] --> src/product/models/dto/product_image_dto.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ProductImageDTO { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/fulfillment/order/models/domain/order_item.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl OrderItem { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 17 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shipping` is never constructed [INFO] [stdout] --> src/fulfillment/shipping/models/shipping.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Shipping { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShippingNew` is never constructed [INFO] [stdout] --> src/fulfillment/shipping/models/shipping.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ShippingNew { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `from_new` are never used [INFO] [stdout] --> src/fulfillment/shipping/models/shipping.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Shipping { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 27 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn from_new(shipping: ShippingNew) -> Shipping { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ShippingStatus` is never used [INFO] [stdout] --> src/fulfillment/shipping/models/shipping.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | pub enum ShippingStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `as_str` and `from_str` are never used [INFO] [stdout] --> src/fulfillment/shipping/models/shipping.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 64 | impl ShippingStatus { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 65 | pub fn as_str(&self) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn from_str(s: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Address` is never constructed [INFO] [stdout] --> src/fulfillment/shipping/models/address.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Address { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AddressNew` is never constructed [INFO] [stdout] --> src/fulfillment/shipping/models/address.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AddressNew { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ShippingRepository` is never used [INFO] [stdout] --> src/fulfillment/shipping/repository/interface/shipping_repo.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait ShippingRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PostgresShippingRepo` is never constructed [INFO] [stdout] --> src/fulfillment/shipping/repository/implementation/postgres_shipping_repo.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PostgresShippingRepo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `make_payment` is never used [INFO] [stdout] --> src/fulfillment/payment/payment_state.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 16 | impl PaymentState { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub async fn make_payment(&self) -> actix_web::Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `pending` is never used [INFO] [stdout] --> src/fulfillment/payment/models/domain/payment.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Payment { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn pending(order_id: String, amount_cents: i64) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `payment_state` is never read [INFO] [stdout] --> src/app_state.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct AppStates { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | pub payment_state: web::Data, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 23s [INFO] running `Command { std: "docker" "inspect" "0d2c7ddd919fb251eafaa88634325ae9b9dbf50c8163f52c32d3cbce49e5b4d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d2c7ddd919fb251eafaa88634325ae9b9dbf50c8163f52c32d3cbce49e5b4d6", kill_on_drop: false }` [INFO] [stdout] 0d2c7ddd919fb251eafaa88634325ae9b9dbf50c8163f52c32d3cbce49e5b4d6