[INFO] cloning repository https://github.com/astromonaa/Rust_server_App [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/astromonaa/Rust_server_App" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fastromonaa%2FRust_server_App", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fastromonaa%2FRust_server_App'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 28b1e91b93a027409e0aaabe303377f805a9736e [INFO] checking astromonaa/Rust_server_App against master#61cc47e367d7be91e13bcd01e4e96e0e233d4f6d for 2025-12-16-next-solver-global [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fastromonaa%2FRust_server_App" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/astromonaa/Rust_server_App [INFO] finished tweaking git repo https://github.com/astromonaa/Rust_server_App [INFO] tweaked toml for git repo https://github.com/astromonaa/Rust_server_App written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/astromonaa/Rust_server_App on toolchain 61cc47e367d7be91e13bcd01e4e96e0e233d4f6d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+61cc47e367d7be91e13bcd01e4e96e0e233d4f6d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/astromonaa/Rust_server_App 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" "+61cc47e367d7be91e13bcd01e4e96e0e233d4f6d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tower-cookies v0.11.0 [INFO] [stderr] Downloaded sea-bae v0.2.0 [INFO] [stderr] Downloaded sea-orm-cli v1.1.17 [INFO] [stderr] Downloaded sea-orm-macros v1.1.17 [INFO] [stderr] Downloaded sea-orm-migration v1.1.17 [INFO] [stderr] Downloaded webpki-roots v0.26.5 [INFO] [stderr] Downloaded sea-query v0.32.7 [INFO] [stderr] Downloaded rustls-webpki v0.102.7 [INFO] [stderr] Downloaded async-std v1.13.2 [INFO] [stderr] Downloaded bcrypt v0.17.0 [INFO] [stderr] Downloaded sea-orm v1.1.17 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+61cc47e367d7be91e13bcd01e4e96e0e233d4f6d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 595ec41d59d0c0836fda439ad536932eb07b744fcb60c66cce694957962b8f31 [INFO] running `Command { std: "docker" "start" "-a" "595ec41d59d0c0836fda439ad536932eb07b744fcb60c66cce694957962b8f31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "595ec41d59d0c0836fda439ad536932eb07b744fcb60c66cce694957962b8f31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "595ec41d59d0c0836fda439ad536932eb07b744fcb60c66cce694957962b8f31", kill_on_drop: false }` [INFO] [stdout] 595ec41d59d0c0836fda439ad536932eb07b744fcb60c66cce694957962b8f31 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+61cc47e367d7be91e13bcd01e4e96e0e233d4f6d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ade9e1ccd58063af73ef7148161c3a83ba851282e9c1a615f5a81fb91608c905 [INFO] running `Command { std: "docker" "start" "-a" "ade9e1ccd58063af73ef7148161c3a83ba851282e9c1a615f5a81fb91608c905", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Checking value-bag v1.11.1 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking cpufeatures v0.2.13 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling bigdecimal v0.4.8 [INFO] [stderr] Checking event-listener v5.4.1 [INFO] [stderr] Compiling rust_decimal v1.36.0 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking fastrand v2.1.1 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking crossbeam-queue v0.3.11 [INFO] [stderr] Checking unicode-properties v0.1.2 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking stringprep v0.1.5 [INFO] [stderr] Checking hkdf v0.12.4 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking futures-lite v2.6.1 [INFO] [stderr] Checking event-listener-strategy v0.5.4 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Checking regex-syntax v0.8.7 [INFO] [stderr] Checking linux-raw-sys v0.11.0 [INFO] [stderr] Checking home v0.5.9 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Checking whoami v1.5.2 [INFO] [stderr] Checking hashlink v0.10.0 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking atoi v2.0.0 [INFO] [stderr] Checking ordered-float v4.6.0 [INFO] [stderr] Checking anstream v0.6.21 [INFO] [stderr] Compiling async-io v2.6.0 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking clap_builder v4.5.48 [INFO] [stderr] Checking async-channel v2.5.0 [INFO] [stderr] Checking piper v0.2.4 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Checking async-lock v3.4.1 [INFO] [stderr] Checking sync_wrapper v1.0.1 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking async-executor v1.13.3 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking blocking v1.6.2 [INFO] [stderr] Checking glob v0.3.3 [INFO] [stderr] Compiling ucd-trie v0.1.6 [INFO] [stderr] Checking async-channel v1.9.0 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Compiling psm v0.1.26 [INFO] [stderr] Compiling rustls v0.23.12 [INFO] [stderr] Checking serde_json v1.0.145 [INFO] [stderr] Compiling stacker v0.1.21 [INFO] [stderr] Compiling axum-core v0.4.3 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking winnow v0.6.18 [INFO] [stderr] Checking regex-automata v0.4.12 [INFO] [stderr] Checking data-encoding v2.9.0 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking webpki-roots v0.26.5 [INFO] [stderr] Compiling axum v0.7.5 [INFO] [stderr] Checking unicode-segmentation v1.11.0 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking blowfish v0.9.1 [INFO] [stderr] Checking webpki-roots v1.0.3 [INFO] [stderr] Checking email-encoding v0.4.1 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking hostname v0.4.1 [INFO] [stderr] Checking nom v8.0.0 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking pathdiff v0.2.1 [INFO] [stderr] Checking http-range-header v0.4.1 [INFO] [stderr] Checking quoted_printable v0.5.1 [INFO] [stderr] Checking email_address v0.2.9 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Checking bcrypt v0.17.0 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Checking ordered-multimap v0.6.0 [INFO] [stderr] Checking rust-ini v0.19.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking rustls-webpki v0.102.7 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Checking regex v1.12.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [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 futures-macro v0.3.31 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Compiling inherent v1.0.11 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling ouroboros_macro v0.18.5 [INFO] [stderr] Compiling sea-bae v0.2.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Compiling sea-schema-derive v0.3.0 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling pest v2.7.11 [INFO] [stderr] Compiling sea-orm-macros v1.1.17 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking clap v4.5.48 [INFO] [stderr] Checking ouroboros v0.18.5 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling sea-query-derive v0.4.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking indexmap v2.5.0 [INFO] [stderr] Checking chumsky v0.9.3 [INFO] [stderr] Checking derive_more v2.0.1 [INFO] [stderr] Compiling pest_meta v2.7.11 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking deranged v0.4.0 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking uuid v1.18.1 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking serde_spanned v0.6.7 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.16 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking toml_edit v0.22.20 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Compiling pest_generator v2.7.11 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking axum-core v0.5.2 [INFO] [stderr] Compiling pest_derive v2.7.11 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking toml v0.8.19 [INFO] [stderr] Checking config v0.14.0 [INFO] [stderr] Checking sea-query v0.32.7 [INFO] [stderr] Checking cookie v0.18.1 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking sea-orm-cli v1.1.17 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Checking tower-cookies v0.11.0 [INFO] [stderr] Checking lettre v0.11.17 [INFO] [stderr] Checking tokio-stream v0.1.16 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking tokio-rustls v0.26.0 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking polling v3.11.0 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking sea-schema v0.16.2 [INFO] [stderr] Checking async-global-executor v2.4.1 [INFO] [stderr] Checking sqlx-core v0.8.6 [INFO] [stderr] Checking async-std v1.13.2 [INFO] [stderr] Checking hyper-util v0.1.17 [INFO] [stderr] Checking hyper-rustls v0.27.2 [INFO] [stderr] Checking reqwest v0.12.23 [INFO] [stderr] Checking sqlx-postgres v0.8.6 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking sea-query-binder v0.7.0 [INFO] [stderr] Checking sea-orm v1.1.17 [INFO] [stderr] Checking sea-orm-migration v1.1.17 [INFO] [stderr] Checking migration v0.1.0 (/opt/rustwide/workdir/migration) [INFO] [stderr] Checking rust_coctail_server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `sea_orm::DeleteResult` [INFO] [stdout] --> src/controllers/cart_controller/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sea_orm::DeleteResult; [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 import: `sea_orm::DeleteResult` [INFO] [stdout] --> src/services/cart_service/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sea_orm::DeleteResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Model as OrderItemModel` [INFO] [stdout] --> src/services/order_service/types.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::db::entities::order_item::{ Model as OrderItemModel }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Model as ProductModel` [INFO] [stdout] --> src/services/order_service/types.rs:7:37 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::db::entities::product::{ Model as ProductModel }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StatusCode` [INFO] [stdout] --> src/middleware/get_user_ws.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | http::{Request, StatusCode}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sea_orm::DeleteResult` [INFO] [stdout] --> src/controllers/cart_controller/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sea_orm::DeleteResult; [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 import: `sea_orm::DeleteResult` [INFO] [stdout] --> src/services/cart_service/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sea_orm::DeleteResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Model as OrderItemModel` [INFO] [stdout] --> src/services/order_service/types.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::db::entities::order_item::{ Model as OrderItemModel }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Model as ProductModel` [INFO] [stdout] --> src/services/order_service/types.rs:7:37 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::db::entities::product::{ Model as ProductModel }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StatusCode` [INFO] [stdout] --> src/middleware/get_user_ws.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | http::{Request, StatusCode}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `browser_info` [INFO] [stdout] --> src/websocket/mod.rs:47:47 [INFO] [stdout] | [INFO] [stdout] 47 | async fn handle_socket(mut socket: WebSocket, browser_info: BrowserInfo) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_browser_info` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PaymentData` is never constructed [INFO] [stdout] --> src/router/helpers/payment_router_helper.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PaymentData { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_payment` is never used [INFO] [stdout] --> src/router/helpers/payment_router_helper.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | pub async fn make_payment( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_controller` is never used [INFO] [stdout] --> src/router/payment_router/mod.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn build_controller(connection: &Arc) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup_router` is never used [INFO] [stdout] --> src/router/payment_router/mod.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn setup_router(connection: DatabaseConnection) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PaymentController` is never constructed [INFO] [stdout] --> src/controllers/payment_controller/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PaymentController { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `make_payment` are never used [INFO] [stdout] --> src/controllers/payment_controller/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl PaymentController { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(service: PaymentService) -> PaymentController { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub async fn make_payment(&self, _body: PaymentData, _user: Option) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_name` is never used [INFO] [stdout] --> src/controllers/order_controller/order_status_strategies.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait PaymentStrategy: Send + Sync { [INFO] [stdout] | --------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 14 | fn get_name(&self) -> String; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PaymentFailure` is never constructed [INFO] [stdout] --> src/controllers/order_controller/order_status_strategies.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct PaymentFailure<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/controllers/order_controller/order_status_strategies.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 54 | impl<'a> PaymentFailure<'a> { [INFO] [stdout] | --------------------------- associated function in this implementation [INFO] [stdout] 55 | fn new(service: &'a OrderService) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RefundSuccess` is never constructed [INFO] [stdout] --> src/controllers/order_controller/order_status_strategies.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct RefundSuccess<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `process` are never used [INFO] [stdout] --> src/controllers/order_controller/order_status_strategies.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 65 | impl<'a> RefundSuccess<'a> { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] 66 | fn new(service: &'a OrderService) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub async fn process(&self, _data: OrderNotificationData) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatController` is never constructed [INFO] [stdout] --> src/controllers/chat_controller/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ChatController { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateChatRequest` is never constructed [INFO] [stdout] --> src/controllers/chat_controller/mod.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct CreateChatRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SendMessageRequest` is never constructed [INFO] [stdout] --> src/controllers/chat_controller/mod.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct SendMessageRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatResponse` is never constructed [INFO] [stdout] --> src/controllers/chat_controller/mod.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct ChatResponse { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MessageResponse` is never constructed [INFO] [stdout] --> src/controllers/chat_controller/mod.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct MessageResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/controllers/chat_controller/mod.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl ChatController { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 36 | pub fn new(service: ChatService) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub async fn create_chat(&self, body: CreateChatRequest, user: Option) -> Result, (StatusCode, St... [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub async fn get_user_chats(&self, user: Option) -> Result>, (StatusCode, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub async fn get_chat(&self, chat_id: i32, user: Option) -> Result, (StatusCode, String)> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub async fn send_message(&self, chat_id: i32, body: SendMessageRequest, user: Option) -> Result) -> Result>, (StatusCode, St... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub async fn mark_messages_as_read(&self, chat_id: i32, user: Option) -> Result, (StatusCode, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuthService` is never constructed [INFO] [stdout] --> src/services/auth_service/mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct AuthService { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/services/auth_service/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl AuthService { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 9 | pub fn new(repository: DbAuthRepository) -> AuthService { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update_cart_product_quantity` is never used [INFO] [stdout] --> src/services/cart_service/mod.rs:53:18 [INFO] [stdout] | [INFO] [stdout] 16 | impl CartService { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub async fn update_cart_product_quantity(&self, _user: Option, _product_id: i32, _quantity: i32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `host` is never read [INFO] [stdout] --> src/services/mail_service/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct MailService { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 12 | mailer: SmtpTransport, [INFO] [stdout] 13 | host: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `failed_payment` is never used [INFO] [stdout] --> src/services/order_service/mod.rs:151:18 [INFO] [stdout] | [INFO] [stdout] 21 | impl OrderService { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 151 | pub async fn failed_payment(&self, _data: OrderNotificationData, ip: IpAddr) -> Result<(), OrderErrors> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatService` is never constructed [INFO] [stdout] --> src/services/chat_service/mod.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ChatService { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/services/chat_service/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl ChatService { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(repository: DBChatRepository) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub async fn create_chat(&self, user_id: Option, anonymous_user_id: i32, is_anonymous: bool) -> Result Result, ChatErrors> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub async fn get_user_chats(&self, user_id: i32) -> Result, ChatErrors> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub async fn send_message(&self, chat_id: i32, content: String, is_from_user: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub async fn get_chat_messages(&self, chat_id: i32) -> Result, ChatErrors> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub async fn mark_messages_as_read(&self, chat_id: i32) -> Result<(), ChatErrors> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ChatErrors` is never used [INFO] [stdout] --> src/services/chat_service/types.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ChatErrors { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Model` is never constructed [INFO] [stdout] --> src/db/entities/anonymous_user.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Model { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Relation` is never used [INFO] [stdout] --> src/db/entities/anonymous_user.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum Relation { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Model` is never constructed [INFO] [stdout] --> src/db/entities/chat.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Model { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Relation` is never used [INFO] [stdout] --> src/db/entities/chat.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum Relation { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Model` is never constructed [INFO] [stdout] --> src/db/entities/message.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Model { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Relation` is never used [INFO] [stdout] --> src/db/entities/message.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum Relation { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DbAuthRepository` is never constructed [INFO] [stdout] --> src/repository/auth_repository.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct DbAuthRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/repository/auth_repository.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl DbAuthRepository { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 8 | pub fn new(connection: DatabaseConnection) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DBChatRepository` is never constructed [INFO] [stdout] --> src/repository/chat_repository.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct DBChatRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatFilter` is never constructed [INFO] [stdout] --> src/repository/chat_repository.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct ChatFilter { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/repository/chat_repository.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl DBChatRepository { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 29 | pub fn new(connection: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub async fn create_chat(&self, user_id: Option, anonymous_user_id: i32, is_anonymous: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub async fn get_chat(&self, filter: ChatFilter) -> Result> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub async fn get_chats(&self, filter: ChatFilter) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub async fn create_message(&self, chat_id: i32, content: String, is_from_user: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub async fn get_messages(&self, chat_id: i32) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub async fn mark_messages_as_read(&self, chat_id: i32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `allowed_list` is never read [INFO] [stdout] --> src/payment_clients/yookassa_client/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct YooKassa { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | allowed_list: [&'static str; 7], [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `user_agent`, `ip_address`, and `device_fingerprint` are never read [INFO] [stdout] --> src/websocket/ws_helpers.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BrowserInfo { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 6 | pub user_agent: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 7 | pub ip_address: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | pub device_fingerprint: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `DTO` should have a snake case name [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | mod DTO; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `dto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/controllers/order_controller/order_status_strategies.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | self.service.failed_payment(data, ip).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 46 | let _ = self.service.failed_payment(data, ip).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Category` should have a snake case name [INFO] [stdout] --> src/DTO/product_dto.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub Category: Option, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `category` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `SubCategory` should have a snake case name [INFO] [stdout] --> src/DTO/product_dto.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub SubCategory: Option, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `sub_category` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `isInCart` should have a snake case name [INFO] [stdout] --> src/DTO/product_dto.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub isInCart: Option, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_in_cart` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `browser_info` [INFO] [stdout] --> src/websocket/mod.rs:47:47 [INFO] [stdout] | [INFO] [stdout] 47 | async fn handle_socket(mut socket: WebSocket, browser_info: BrowserInfo) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_browser_info` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PaymentData` is never constructed [INFO] [stdout] --> src/router/helpers/payment_router_helper.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PaymentData { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_payment` is never used [INFO] [stdout] --> src/router/helpers/payment_router_helper.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | pub async fn make_payment( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_controller` is never used [INFO] [stdout] --> src/router/payment_router/mod.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn build_controller(connection: &Arc) -> anyhow::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup_router` is never used [INFO] [stdout] --> src/router/payment_router/mod.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn setup_router(connection: DatabaseConnection) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PaymentController` is never constructed [INFO] [stdout] --> src/controllers/payment_controller/mod.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PaymentController { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `make_payment` are never used [INFO] [stdout] --> src/controllers/payment_controller/mod.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl PaymentController { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(service: PaymentService) -> PaymentController { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub async fn make_payment(&self, _body: PaymentData, _user: Option) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_name` is never used [INFO] [stdout] --> src/controllers/order_controller/order_status_strategies.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait PaymentStrategy: Send + Sync { [INFO] [stdout] | --------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 14 | fn get_name(&self) -> String; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PaymentFailure` is never constructed [INFO] [stdout] --> src/controllers/order_controller/order_status_strategies.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct PaymentFailure<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/controllers/order_controller/order_status_strategies.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 54 | impl<'a> PaymentFailure<'a> { [INFO] [stdout] | --------------------------- associated function in this implementation [INFO] [stdout] 55 | fn new(service: &'a OrderService) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RefundSuccess` is never constructed [INFO] [stdout] --> src/controllers/order_controller/order_status_strategies.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct RefundSuccess<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `process` are never used [INFO] [stdout] --> src/controllers/order_controller/order_status_strategies.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 65 | impl<'a> RefundSuccess<'a> { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] 66 | fn new(service: &'a OrderService) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub async fn process(&self, _data: OrderNotificationData) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatController` is never constructed [INFO] [stdout] --> src/controllers/chat_controller/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ChatController { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateChatRequest` is never constructed [INFO] [stdout] --> src/controllers/chat_controller/mod.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct CreateChatRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SendMessageRequest` is never constructed [INFO] [stdout] --> src/controllers/chat_controller/mod.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct SendMessageRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatResponse` is never constructed [INFO] [stdout] --> src/controllers/chat_controller/mod.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct ChatResponse { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MessageResponse` is never constructed [INFO] [stdout] --> src/controllers/chat_controller/mod.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct MessageResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/controllers/chat_controller/mod.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl ChatController { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 36 | pub fn new(service: ChatService) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub async fn create_chat(&self, body: CreateChatRequest, user: Option) -> Result, (StatusCode, St... [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub async fn get_user_chats(&self, user: Option) -> Result>, (StatusCode, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub async fn get_chat(&self, chat_id: i32, user: Option) -> Result, (StatusCode, String)> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub async fn send_message(&self, chat_id: i32, body: SendMessageRequest, user: Option) -> Result) -> Result>, (StatusCode, St... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub async fn mark_messages_as_read(&self, chat_id: i32, user: Option) -> Result, (StatusCode, String)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuthService` is never constructed [INFO] [stdout] --> src/services/auth_service/mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct AuthService { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/services/auth_service/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl AuthService { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 9 | pub fn new(repository: DbAuthRepository) -> AuthService { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update_cart_product_quantity` is never used [INFO] [stdout] --> src/services/cart_service/mod.rs:53:18 [INFO] [stdout] | [INFO] [stdout] 16 | impl CartService { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub async fn update_cart_product_quantity(&self, _user: Option, _product_id: i32, _quantity: i32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `host` is never read [INFO] [stdout] --> src/services/mail_service/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct MailService { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 12 | mailer: SmtpTransport, [INFO] [stdout] 13 | host: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `failed_payment` is never used [INFO] [stdout] --> src/services/order_service/mod.rs:151:18 [INFO] [stdout] | [INFO] [stdout] 21 | impl OrderService { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 151 | pub async fn failed_payment(&self, _data: OrderNotificationData, ip: IpAddr) -> Result<(), OrderErrors> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatService` is never constructed [INFO] [stdout] --> src/services/chat_service/mod.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ChatService { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/services/chat_service/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl ChatService { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(repository: DBChatRepository) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub async fn create_chat(&self, user_id: Option, anonymous_user_id: i32, is_anonymous: bool) -> Result Result, ChatErrors> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub async fn get_user_chats(&self, user_id: i32) -> Result, ChatErrors> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub async fn send_message(&self, chat_id: i32, content: String, is_from_user: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub async fn get_chat_messages(&self, chat_id: i32) -> Result, ChatErrors> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub async fn mark_messages_as_read(&self, chat_id: i32) -> Result<(), ChatErrors> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ChatErrors` is never used [INFO] [stdout] --> src/services/chat_service/types.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ChatErrors { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Model` is never constructed [INFO] [stdout] --> src/db/entities/anonymous_user.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Model { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Relation` is never used [INFO] [stdout] --> src/db/entities/anonymous_user.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | pub enum Relation { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Model` is never constructed [INFO] [stdout] --> src/db/entities/chat.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Model { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Relation` is never used [INFO] [stdout] --> src/db/entities/chat.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum Relation { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Model` is never constructed [INFO] [stdout] --> src/db/entities/message.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Model { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Relation` is never used [INFO] [stdout] --> src/db/entities/message.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum Relation { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DbAuthRepository` is never constructed [INFO] [stdout] --> src/repository/auth_repository.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct DbAuthRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/repository/auth_repository.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl DbAuthRepository { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 8 | pub fn new(connection: DatabaseConnection) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DBChatRepository` is never constructed [INFO] [stdout] --> src/repository/chat_repository.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct DBChatRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChatFilter` is never constructed [INFO] [stdout] --> src/repository/chat_repository.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct ChatFilter { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/repository/chat_repository.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl DBChatRepository { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 29 | pub fn new(connection: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub async fn create_chat(&self, user_id: Option, anonymous_user_id: i32, is_anonymous: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub async fn get_chat(&self, filter: ChatFilter) -> Result> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub async fn get_chats(&self, filter: ChatFilter) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub async fn create_message(&self, chat_id: i32, content: String, is_from_user: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub async fn get_messages(&self, chat_id: i32) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub async fn mark_messages_as_read(&self, chat_id: i32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `allowed_list` is never read [INFO] [stdout] --> src/payment_clients/yookassa_client/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct YooKassa { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | allowed_list: [&'static str; 7], [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `user_agent`, `ip_address`, and `device_fingerprint` are never read [INFO] [stdout] --> src/websocket/ws_helpers.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct BrowserInfo { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 6 | pub user_agent: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 7 | pub ip_address: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | pub device_fingerprint: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `DTO` should have a snake case name [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | mod DTO; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `dto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/controllers/order_controller/order_status_strategies.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | self.service.failed_payment(data, ip).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 46 | let _ = self.service.failed_payment(data, ip).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `Category` should have a snake case name [INFO] [stdout] --> src/DTO/product_dto.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub Category: Option, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `category` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `SubCategory` should have a snake case name [INFO] [stdout] --> src/DTO/product_dto.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub SubCategory: Option, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `sub_category` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `isInCart` should have a snake case name [INFO] [stdout] --> src/DTO/product_dto.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub isInCart: Option, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_in_cart` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 35s [INFO] running `Command { std: "docker" "inspect" "ade9e1ccd58063af73ef7148161c3a83ba851282e9c1a615f5a81fb91608c905", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ade9e1ccd58063af73ef7148161c3a83ba851282e9c1a615f5a81fb91608c905", kill_on_drop: false }` [INFO] [stdout] ade9e1ccd58063af73ef7148161c3a83ba851282e9c1a615f5a81fb91608c905