[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] de89be891cdcb30e006300465b62da0ee5c7635c
[INFO] testing astromonaa/Rust_server_App against try#33835004928d3bf65db4d4712e1330766263b0bd for pr-155739
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fastromonaa%2FRust_server_App" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/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-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/astromonaa/Rust_server_App on toolchain 33835004928d3bf65db4d4712e1330766263b0bd
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "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" "+33835004928d3bf65db4d4712e1330766263b0bd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 4fab2448876264f4d116ceaa54ca186a2908acbae4b5ddcc282f03913ea1b76b
[INFO] running `Command { std: "docker" "start" "-a" "4fab2448876264f4d116ceaa54ca186a2908acbae4b5ddcc282f03913ea1b76b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4fab2448876264f4d116ceaa54ca186a2908acbae4b5ddcc282f03913ea1b76b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4fab2448876264f4d116ceaa54ca186a2908acbae4b5ddcc282f03913ea1b76b", kill_on_drop: false }`
[INFO] [stdout] 4fab2448876264f4d116ceaa54ca186a2908acbae4b5ddcc282f03913ea1b76b
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ff752ffd1b52ba6fbb8da77e85ae3adf4813763e4df8fef80bcb9aa65bcfe7d9
[INFO] running `Command { std: "docker" "start" "-a" "ff752ffd1b52ba6fbb8da77e85ae3adf4813763e4df8fef80bcb9aa65bcfe7d9", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.86
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling autocfg v1.3.0
[INFO] [stderr]    Compiling bytes v1.7.1
[INFO] [stderr]    Compiling futures-sink v0.3.31
[INFO] [stderr]    Compiling stable_deref_trait v1.2.0
[INFO] [stderr]    Compiling value-bag v1.11.1
[INFO] [stderr]    Compiling byteorder v1.5.0
[INFO] [stderr]    Compiling percent-encoding v2.3.2
[INFO] [stderr]    Compiling socket2 v0.6.0
[INFO] [stderr]    Compiling signal-hook-registry v1.4.2
[INFO] [stderr]    Compiling mio v1.0.2
[INFO] [stderr]    Compiling writeable v0.6.1
[INFO] [stderr]    Compiling litemap v0.8.0
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling getrandom v0.2.15
[INFO] [stderr]    Compiling futures-channel v0.3.31
[INFO] [stderr]    Compiling icu_properties_data v2.0.1
[INFO] [stderr]    Compiling icu_normalizer_data v2.0.0
[INFO] [stderr]    Compiling tracing-core v0.1.32
[INFO] [stderr]    Compiling concurrent-queue v2.5.0
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling form_urlencoded v1.2.2
[INFO] [stderr]    Compiling utf8_iter v1.0.4
[INFO] [stderr]    Compiling serde_json v1.0.145
[INFO] [stderr]    Compiling log v0.4.22
[INFO] [stderr]    Compiling time-core v0.1.4
[INFO] [stderr]    Compiling pkg-config v0.3.30
[INFO] [stderr]    Compiling event-listener v5.4.1
[INFO] [stderr]    Compiling getrandom v0.3.3
[INFO] [stderr]    Compiling cpufeatures v0.2.13
[INFO] [stderr]    Compiling libm v0.2.8
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling time-macros v0.2.22
[INFO] [stderr]    Compiling bigdecimal v0.4.8
[INFO] [stderr]    Compiling http v1.1.0
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling thiserror v1.0.63
[INFO] [stderr]    Compiling openssl v0.10.66
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]    Compiling rust_decimal v1.36.0
[INFO] [stderr]    Compiling arrayvec v0.7.6
[INFO] [stderr]    Compiling atomic-waker v1.1.2
[INFO] [stderr]    Compiling rustversion v1.0.17
[INFO] [stderr]    Compiling openssl-sys v0.9.103
[INFO] [stderr]    Compiling ident_case v1.0.1
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling ring v0.17.8
[INFO] [stderr]    Compiling thiserror v2.0.12
[INFO] [stderr]    Compiling fastrand v2.1.1
[INFO] [stderr]    Compiling syn v2.0.87
[INFO] [stderr]    Compiling foldhash v0.1.5
[INFO] [stderr]    Compiling httparse v1.9.4
[INFO] [stderr]    Compiling zeroize v1.8.1
[INFO] [stderr]    Compiling hashbrown v0.15.5
[INFO] [stderr]    Compiling crunchy v0.2.2
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling tiny-keccak v2.0.2
[INFO] [stderr]    Compiling rustls-pki-types v1.12.0
[INFO] [stderr]    Compiling unicode-normalization v0.1.23
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling http-body v1.0.1
[INFO] [stderr]    Compiling native-tls v0.2.12
[INFO] [stderr]    Compiling crossbeam-queue v0.3.11
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling proc-macro2-diagnostics v0.10.1
[INFO] [stderr]    Compiling unicode-properties v0.1.2
[INFO] [stderr]    Compiling untrusted v0.9.0
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling rustix v1.1.2
[INFO] [stderr]    Compiling ordered-float v4.6.0
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]    Compiling hkdf v0.12.4
[INFO] [stderr]    Compiling stringprep v0.1.5
[INFO] [stderr]    Compiling futures-lite v2.6.1
[INFO] [stderr]    Compiling event-listener-strategy v0.5.4
[INFO] [stderr]    Compiling num-bigint v0.4.6
[INFO] [stderr]    Compiling md-5 v0.10.6
[INFO] [stderr]    Compiling aho-corasick v1.1.3
[INFO] [stderr]    Compiling unicase v2.7.0
[INFO] [stderr]    Compiling sync_wrapper v1.0.1
[INFO] [stderr]    Compiling ucd-trie v0.1.6
[INFO] [stderr]    Compiling hashlink v0.10.0
[INFO] [stderr]    Compiling anstyle-query v1.1.4
[INFO] [stderr]    Compiling try-lock v0.2.5
[INFO] [stderr]    Compiling regex-syntax v0.8.7
[INFO] [stderr]    Compiling yansi v1.0.1
[INFO] [stderr]    Compiling linux-raw-sys v0.11.0
[INFO] [stderr]    Compiling regex-syntax v0.6.29
[INFO] [stderr]    Compiling anstream v0.6.21
[INFO] [stderr]    Compiling want v0.3.1
[INFO] [stderr]    Compiling const-random-macro v0.1.16
[INFO] [stderr]    Compiling async-io v2.6.0
[INFO] [stderr]    Compiling psm v0.1.26
[INFO] [stderr]    Compiling clap_lex v0.7.5
[INFO] [stderr]    Compiling async-task v4.7.1
[INFO] [stderr]    Compiling rustls v0.23.12
[INFO] [stderr]    Compiling unicode-xid v0.2.6
[INFO] [stderr]    Compiling clap_builder v4.5.48
[INFO] [stderr]    Compiling const-random v0.1.18
[INFO] [stderr]    Compiling async-channel v2.5.0
[INFO] [stderr]    Compiling piper v0.2.4
[INFO] [stderr]    Compiling tracing-log v0.2.0
[INFO] [stderr]    Compiling stacker v0.1.21
[INFO] [stderr]    Compiling thread_local v1.1.8
[INFO] [stderr]    Compiling aliasable v0.1.3
[INFO] [stderr]    Compiling ipnet v2.11.0
[INFO] [stderr]    Compiling mime_guess v2.0.5
[INFO] [stderr]    Compiling dlv-list v0.5.2
[INFO] [stderr]    Compiling async-lock v3.4.1
[INFO] [stderr]    Compiling axum-core v0.4.3
[INFO] [stderr]    Compiling blocking v1.6.2
[INFO] [stderr]    Compiling async-executor v1.13.3
[INFO] [stderr]    Compiling sha1 v0.10.6
[INFO] [stderr]    Compiling inout v0.1.4
[INFO] [stderr]    Compiling cookie v0.18.1
[INFO] [stderr]    Compiling hashbrown v0.13.2
[INFO] [stderr]    Compiling data-encoding v2.9.0
[INFO] [stderr]    Compiling winnow v0.6.18
[INFO] [stderr]    Compiling glob v0.3.3
[INFO] [stderr]    Compiling utf-8 v0.7.6
[INFO] [stderr]    Compiling regex-automata v0.1.10
[INFO] [stderr]    Compiling strum v0.26.3
[INFO] [stderr]    Compiling async-channel v1.9.0
[INFO] [stderr]    Compiling ordered-multimap v0.6.0
[INFO] [stderr]    Compiling cipher v0.4.4
[INFO] [stderr]    Compiling webpki-roots v0.26.5
[INFO] [stderr]    Compiling axum v0.7.5
[INFO] [stderr]    Compiling kv-log-macro v1.0.7
[INFO] [stderr]    Compiling anyhow v1.0.86
[INFO] [stderr]    Compiling unicode-segmentation v1.11.0
[INFO] [stderr]    Compiling linked-hash-map v0.5.6
[INFO] [stderr]    Compiling iri-string v0.7.8
[INFO] [stderr]    Compiling rust-ini v0.19.0
[INFO] [stderr]    Compiling blowfish v0.9.1
[INFO] [stderr]    Compiling webpki-roots v1.0.3
[INFO] [stderr]    Compiling pem v3.0.5
[INFO] [stderr]    Compiling yaml-rust v0.4.5
[INFO] [stderr]    Compiling matchers v0.1.0
[INFO] [stderr]    Compiling regex-automata v0.4.12
[INFO] [stderr]    Compiling rustls-webpki v0.102.7
[INFO] [stderr]    Compiling convert_case v0.6.0
[INFO] [stderr]    Compiling email-encoding v0.4.1
[INFO] [stderr]    Compiling hostname v0.4.1
[INFO] [stderr]    Compiling socket2 v0.5.7
[INFO] [stderr]    Compiling nom v8.0.0
[INFO] [stderr]    Compiling http-range-header v0.4.1
[INFO] [stderr]    Compiling email_address v0.2.9
[INFO] [stderr]    Compiling quoted_printable v0.5.1
[INFO] [stderr]    Compiling pathdiff v0.2.1
[INFO] [stderr]    Compiling bcrypt v0.17.0
[INFO] [stderr]    Compiling async-attributes v1.1.2
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling darling_core v0.20.11
[INFO] [stderr]    Compiling serde_derive v1.0.228
[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 zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.0
[INFO] [stderr]    Compiling inherent v1.0.11
[INFO] [stderr]    Compiling derive_more-impl v2.0.1
[INFO] [stderr]    Compiling regex v1.12.1
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling sea-bae v0.2.0
[INFO] [stderr]    Compiling zerocopy v0.7.35
[INFO] [stderr]    Compiling async-stream-impl v0.3.5
[INFO] [stderr]    Compiling clap_derive v4.5.47
[INFO] [stderr]    Compiling tracing v0.1.40
[INFO] [stderr]    Compiling ouroboros_macro v0.18.5
[INFO] [stderr]    Compiling async-stream v0.3.5
[INFO] [stderr]    Compiling sea-orm-macros v1.1.17
[INFO] [stderr]    Compiling sea-schema-derive v0.3.0
[INFO] [stderr]    Compiling pin-project-internal v1.1.5
[INFO] [stderr]    Compiling pest v2.7.11
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling yoke v0.8.0
[INFO] [stderr]    Compiling ahash v0.8.11
[INFO] [stderr]    Compiling ppv-lite86 v0.2.20
[INFO] [stderr]    Compiling zerovec v0.11.2
[INFO] [stderr]    Compiling zerotrie v0.2.2
[INFO] [stderr]    Compiling hashbrown v0.14.5
[INFO] [stderr]    Compiling derive_more v2.0.1
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling darling_macro v0.20.11
[INFO] [stderr]    Compiling pin-project v1.1.5
[INFO] [stderr]    Compiling pest_meta v2.7.11
[INFO] [stderr]    Compiling ouroboros v0.18.5
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling darling v0.20.11
[INFO] [stderr]    Compiling sea-query-derive v0.4.3
[INFO] [stderr]    Compiling indexmap v2.5.0
[INFO] [stderr]    Compiling chumsky v0.9.3
[INFO] [stderr]    Compiling clap v4.5.48
[INFO] [stderr]    Compiling tinystr v0.8.1
[INFO] [stderr]    Compiling potential_utf v0.1.2
[INFO] [stderr]    Compiling icu_collections v2.0.0
[INFO] [stderr]    Compiling pest_generator v2.7.11
[INFO] [stderr]    Compiling icu_locale_core v2.0.0
[INFO] [stderr]    Compiling smallvec v1.13.2
[INFO] [stderr]    Compiling bitflags v2.6.0
[INFO] [stderr]    Compiling deranged v0.4.0
[INFO] [stderr]    Compiling chrono v0.4.41
[INFO] [stderr]    Compiling uuid v1.18.1
[INFO] [stderr]    Compiling either v1.13.0
[INFO] [stderr]    Compiling toml_datetime v0.6.8
[INFO] [stderr]    Compiling serde_spanned v0.6.7
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling ron v0.8.1
[INFO] [stderr]    Compiling toml_edit v0.22.20
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]    Compiling http-body-util v0.1.2
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]    Compiling tracing-subscriber v0.3.18
[INFO] [stderr]    Compiling icu_provider v2.0.0
[INFO] [stderr]    Compiling parking_lot v0.12.3
[INFO] [stderr]    Compiling time v0.3.41
[INFO] [stderr]    Compiling futures v0.3.31
[INFO] [stderr]    Compiling tokio v1.47.1
[INFO] [stderr]    Compiling icu_normalizer v2.0.0
[INFO] [stderr]    Compiling icu_properties v2.0.1
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]    Compiling pest_derive v2.7.11
[INFO] [stderr]    Compiling axum-core v0.5.2
[INFO] [stderr]    Compiling serde_path_to_error v0.1.16
[INFO] [stderr]    Compiling json5 v0.4.1
[INFO] [stderr]    Compiling sea-query v0.32.7
[INFO] [stderr]    Compiling simple_asn1 v0.6.3
[INFO] [stderr]    Compiling jsonwebtoken v9.3.1
[INFO] [stderr]    Compiling tower-cookies v0.11.0
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling toml v0.8.19
[INFO] [stderr]    Compiling url v2.5.7
[INFO] [stderr]    Compiling config v0.14.0
[INFO] [stderr]    Compiling sea-orm-cli v1.1.17
[INFO] [stderr]    Compiling tungstenite v0.21.0
[INFO] [stderr]    Compiling lettre v0.11.17
[INFO] [stderr]    Compiling polling v3.11.0
[INFO] [stderr]    Compiling sea-schema v0.16.2
[INFO] [stderr]    Compiling tokio-stream v0.1.16
[INFO] [stderr]    Compiling hyper v1.7.0
[INFO] [stderr]    Compiling tokio-rustls v0.26.0
[INFO] [stderr]    Compiling tower v0.5.2
[INFO] [stderr]    Compiling async-global-executor v2.4.1
[INFO] [stderr]    Compiling tower v0.4.13
[INFO] [stderr]    Compiling tokio-tungstenite v0.21.0
[INFO] [stderr]    Compiling tokio-util v0.7.11
[INFO] [stderr]    Compiling async-std v1.13.2
[INFO] [stderr]    Compiling sqlx-core v0.8.6
[INFO] [stderr]    Compiling tower-http v0.5.2
[INFO] [stderr]    Compiling tower-http v0.6.6
[INFO] [stderr]    Compiling hyper-util v0.1.17
[INFO] [stderr]    Compiling hyper-rustls v0.27.2
[INFO] [stderr]    Compiling reqwest v0.12.23
[INFO] [stderr]    Compiling sqlx-postgres v0.8.6
[INFO] [stderr]    Compiling sqlx v0.8.6
[INFO] [stderr]    Compiling sea-query-binder v0.7.0
[INFO] [stderr]    Compiling sea-orm v1.1.17
[INFO] [stderr]    Compiling sea-orm-migration v1.1.17
[INFO] [stderr]    Compiling migration v0.1.0 (/opt/rustwide/workdir/migration)
[INFO] [stderr]    Compiling rust_coctail_server v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]  --> src/router/helpers/chats_router_helper.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::sync::Arc;
[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: `Json`
[INFO] [stdout]  --> src/router/helpers/chats_router_helper.rs:3:23
[INFO] [stdout]   |
[INFO] [stdout] 3 | use axum::{Extension, Json};
[INFO] [stdout]   |                       ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `post`
[INFO] [stdout]  --> src/router/chats_router/mod.rs:8:26
[INFO] [stdout]   |
[INFO] [stdout] 8 | use axum::routing::{get, post};
[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] 
[INFO] [stdout] warning: unused import: `crate::services::tokens_service::types::UserClaims`
[INFO] [stdout]  --> src/controllers/chat_controller/mod.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::services::tokens_service::types::UserClaims;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::websocket::ws_helpers::get_browser_info`
[INFO] [stdout]  --> src/controllers/chat_controller/mod.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::websocket::ws_helpers::get_browser_info;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `axum::response::IntoResponse`
[INFO] [stdout]  --> src/controllers/chat_controller/mod.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use axum::response::IntoResponse;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `CreateAnonymousUser`
[INFO] [stdout]   --> src/services/user_service/mod.rs:12:56
[INFO] [stdout]    |
[INFO] [stdout] 12 | use crate::services::user_service::types::{AuthErrors, CreateAnonymousUser, CreatedUser, RegistrationErrors};
[INFO] [stdout]    |                                                        ^^^^^^^^^^^^^^^^^^^
[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: `DbErr`
[INFO] [stdout]  --> src/repository/chat_repository.rs:3:23
[INFO] [stdout]   |
[INFO] [stdout] 3 |     QueryFilter, Set, DbErr
[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: `Message`
[INFO] [stdout]  --> src/websocket/mod.rs:8:43
[INFO] [stdout]   |
[INFO] [stdout] 8 |         ws::{WebSocket, WebSocketUpgrade, Message},
[INFO] [stdout]   |                                           ^^^^^^^
[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<DatabaseConnection>) -> anyhow::Result<Arc<PaymentController>> {
[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<Router> {
[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<UserClaims>) -> Result<String, (StatusCode, String)> {
[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 `CreateAnonymousUser` is never constructed
[INFO] [stdout]   --> src/services/user_service/types.rs:82:12
[INFO] [stdout]    |
[INFO] [stdout] 82 | pub struct CreateAnonymousUser {
[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<UserClaims>, _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: method `mark_messages_as_read` is never used
[INFO] [stdout]   --> src/services/chat_service/mod.rs:75:18
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl ChatService {
[INFO] [stdout]    | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 75 |     pub async fn mark_messages_as_read(&self, chat_id: i32) -> Result<(), ChatErrors> {
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `UpdateError` is never constructed
[INFO] [stdout]  --> src/services/chat_service/types.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub enum ChatErrors {
[INFO] [stdout]   |          ---------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 9 |     UpdateError(String),
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `ChatErrors` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `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: fields `user_id` and `is_anonymous` are never read
[INFO] [stdout]   --> src/repository/chat_repository.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub struct ChatFilter {
[INFO] [stdout]    |            ---------- fields in this struct
[INFO] [stdout] 22 |     pub id: Option<i32>,
[INFO] [stdout] 23 |     pub user_id: i32,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 24 |     pub is_anonymous: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `add_user_id_filter`, `get_chats`, `get_messages`, and `mark_messages_as_read` are never used
[INFO] [stdout]    --> src/repository/chat_repository.rs:32:8
[INFO] [stdout]     |
[INFO] [stdout]  27 | impl DBChatRepository {
[INFO] [stdout]     | --------------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  32 |     fn add_user_id_filter(filter: ChatFilter, condition: Condition) -> Condition {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  69 |     pub async fn get_chats(&self, filter: ChatFilter) -> Result<Vec<Model>> {
[INFO] [stdout]     |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 119 |     pub async fn get_messages(&self, chat_id: i32) -> Result<Vec<MessageModel>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 139 |     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: 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<category::Model>,
[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<sub_category::Model>,
[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<bool>,
[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 2m 39s
[INFO] running `Command { std: "docker" "inspect" "ff752ffd1b52ba6fbb8da77e85ae3adf4813763e4df8fef80bcb9aa65bcfe7d9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ff752ffd1b52ba6fbb8da77e85ae3adf4813763e4df8fef80bcb9aa65bcfe7d9", kill_on_drop: false }`
[INFO] [stdout] ff752ffd1b52ba6fbb8da77e85ae3adf4813763e4df8fef80bcb9aa65bcfe7d9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 1bb39080e2fbe4398355ba1898d3e685c35fd5e1d66beccb39340e6d43fea936
[INFO] running `Command { std: "docker" "start" "-a" "1bb39080e2fbe4398355ba1898d3e685c35fd5e1d66beccb39340e6d43fea936", kill_on_drop: false }`
[INFO] [stderr]    Compiling rust_coctail_server v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]  --> src/router/helpers/chats_router_helper.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::sync::Arc;
[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: `Json`
[INFO] [stdout]  --> src/router/helpers/chats_router_helper.rs:3:23
[INFO] [stdout]   |
[INFO] [stdout] 3 | use axum::{Extension, Json};
[INFO] [stdout]   |                       ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `post`
[INFO] [stdout]  --> src/router/chats_router/mod.rs:8:26
[INFO] [stdout]   |
[INFO] [stdout] 8 | use axum::routing::{get, post};
[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] 
[INFO] [stdout] warning: unused import: `crate::services::tokens_service::types::UserClaims`
[INFO] [stdout]  --> src/controllers/chat_controller/mod.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::services::tokens_service::types::UserClaims;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::websocket::ws_helpers::get_browser_info`
[INFO] [stdout]  --> src/controllers/chat_controller/mod.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::websocket::ws_helpers::get_browser_info;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `axum::response::IntoResponse`
[INFO] [stdout]  --> src/controllers/chat_controller/mod.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use axum::response::IntoResponse;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `CreateAnonymousUser`
[INFO] [stdout]   --> src/services/user_service/mod.rs:12:56
[INFO] [stdout]    |
[INFO] [stdout] 12 | use crate::services::user_service::types::{AuthErrors, CreateAnonymousUser, CreatedUser, RegistrationErrors};
[INFO] [stdout]    |                                                        ^^^^^^^^^^^^^^^^^^^
[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: `DbErr`
[INFO] [stdout]  --> src/repository/chat_repository.rs:3:23
[INFO] [stdout]   |
[INFO] [stdout] 3 |     QueryFilter, Set, DbErr
[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: `Message`
[INFO] [stdout]  --> src/websocket/mod.rs:8:43
[INFO] [stdout]   |
[INFO] [stdout] 8 |         ws::{WebSocket, WebSocketUpgrade, Message},
[INFO] [stdout]   |                                           ^^^^^^^
[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<DatabaseConnection>) -> anyhow::Result<Arc<PaymentController>> {
[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<Router> {
[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<UserClaims>) -> Result<String, (StatusCode, String)> {
[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 `CreateAnonymousUser` is never constructed
[INFO] [stdout]   --> src/services/user_service/types.rs:82:12
[INFO] [stdout]    |
[INFO] [stdout] 82 | pub struct CreateAnonymousUser {
[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<UserClaims>, _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: method `mark_messages_as_read` is never used
[INFO] [stdout]   --> src/services/chat_service/mod.rs:75:18
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl ChatService {
[INFO] [stdout]    | ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 75 |     pub async fn mark_messages_as_read(&self, chat_id: i32) -> Result<(), ChatErrors> {
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `UpdateError` is never constructed
[INFO] [stdout]  --> src/services/chat_service/types.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub enum ChatErrors {
[INFO] [stdout]   |          ---------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 9 |     UpdateError(String),
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `ChatErrors` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `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: fields `user_id` and `is_anonymous` are never read
[INFO] [stdout]   --> src/repository/chat_repository.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub struct ChatFilter {
[INFO] [stdout]    |            ---------- fields in this struct
[INFO] [stdout] 22 |     pub id: Option<i32>,
[INFO] [stdout] 23 |     pub user_id: i32,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 24 |     pub is_anonymous: bool,
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `add_user_id_filter`, `get_chats`, `get_messages`, and `mark_messages_as_read` are never used
[INFO] [stdout]    --> src/repository/chat_repository.rs:32:8
[INFO] [stdout]     |
[INFO] [stdout]  27 | impl DBChatRepository {
[INFO] [stdout]     | --------------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  32 |     fn add_user_id_filter(filter: ChatFilter, condition: Condition) -> Condition {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  69 |     pub async fn get_chats(&self, filter: ChatFilter) -> Result<Vec<Model>> {
[INFO] [stdout]     |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 119 |     pub async fn get_messages(&self, chat_id: i32) -> Result<Vec<MessageModel>> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 139 |     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: 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<category::Model>,
[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<sub_category::Model>,
[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<bool>,
[INFO] [stdout]    |         ^^^^^^^^ help: convert the identifier to snake case: `is_in_cart`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 15.72s
[INFO] running `Command { std: "docker" "inspect" "1bb39080e2fbe4398355ba1898d3e685c35fd5e1d66beccb39340e6d43fea936", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1bb39080e2fbe4398355ba1898d3e685c35fd5e1d66beccb39340e6d43fea936", kill_on_drop: false }`
[INFO] [stdout] 1bb39080e2fbe4398355ba1898d3e685c35fd5e1d66beccb39340e6d43fea936
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+33835004928d3bf65db4d4712e1330766263b0bd" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 9f34f33a3e22394bc46419b8bddab7ea36b302600eb74827b2bfaa27bb737692
[INFO] running `Command { std: "docker" "start" "-a" "9f34f33a3e22394bc46419b8bddab7ea36b302600eb74827b2bfaa27bb737692", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `std::sync::Arc`
[INFO] [stderr]  --> src/router/helpers/chats_router_helper.rs:2:5
[INFO] [stderr]   |
[INFO] [stderr] 2 | use std::sync::Arc;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Json`
[INFO] [stderr]  --> src/router/helpers/chats_router_helper.rs:3:23
[INFO] [stderr]   |
[INFO] [stderr] 3 | use axum::{Extension, Json};
[INFO] [stderr]   |                       ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `post`
[INFO] [stderr]  --> src/router/chats_router/mod.rs:8:26
[INFO] [stderr]   |
[INFO] [stderr] 8 | use axum::routing::{get, post};
[INFO] [stderr]   |                          ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `sea_orm::DeleteResult`
[INFO] [stderr]  --> src/controllers/cart_controller/mod.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use sea_orm::DeleteResult;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::services::tokens_service::types::UserClaims`
[INFO] [stderr]  --> src/controllers/chat_controller/mod.rs:4:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | use crate::services::tokens_service::types::UserClaims;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::websocket::ws_helpers::get_browser_info`
[INFO] [stderr]  --> src/controllers/chat_controller/mod.rs:5:5
[INFO] [stderr]   |
[INFO] [stderr] 5 | use crate::websocket::ws_helpers::get_browser_info;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `axum::response::IntoResponse`
[INFO] [stderr]  --> src/controllers/chat_controller/mod.rs:7:5
[INFO] [stderr]   |
[INFO] [stderr] 7 | use axum::response::IntoResponse;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `CreateAnonymousUser`
[INFO] [stderr]   --> src/services/user_service/mod.rs:12:56
[INFO] [stderr]    |
[INFO] [stderr] 12 | use crate::services::user_service::types::{AuthErrors, CreateAnonymousUser, CreatedUser, RegistrationErrors};
[INFO] [stderr]    |                                                        ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `sea_orm::DeleteResult`
[INFO] [stderr]  --> src/services/cart_service/mod.rs:6:5
[INFO] [stderr]   |
[INFO] [stderr] 6 | use sea_orm::DeleteResult;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Model as OrderItemModel`
[INFO] [stderr]  --> src/services/order_service/types.rs:6:40
[INFO] [stderr]   |
[INFO] [stderr] 6 | use crate::db::entities::order_item::{ Model as OrderItemModel };
[INFO] [stderr]   |                                        ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Model as ProductModel`
[INFO] [stderr]  --> src/services/order_service/types.rs:7:37
[INFO] [stderr]   |
[INFO] [stderr] 7 | use crate::db::entities::product::{ Model as ProductModel };
[INFO] [stderr]   |                                     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `DbErr`
[INFO] [stderr]  --> src/repository/chat_repository.rs:3:23
[INFO] [stderr]   |
[INFO] [stderr] 3 |     QueryFilter, Set, DbErr
[INFO] [stderr]   |                       ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `StatusCode`
[INFO] [stderr]  --> src/middleware/get_user_ws.rs:2:21
[INFO] [stderr]   |
[INFO] [stderr] 2 |     http::{Request, StatusCode},
[INFO] [stderr]   |                     ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Message`
[INFO] [stderr]  --> src/websocket/mod.rs:8:43
[INFO] [stderr]   |
[INFO] [stderr] 8 |         ws::{WebSocket, WebSocketUpgrade, Message},
[INFO] [stderr]   |                                           ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `PaymentData` is never constructed
[INFO] [stderr]  --> src/router/helpers/payment_router_helper.rs:6:12
[INFO] [stderr]   |
[INFO] [stderr] 6 | pub struct PaymentData {
[INFO] [stderr]   |            ^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `make_payment` is never used
[INFO] [stderr]   --> src/router/helpers/payment_router_helper.rs:11:14
[INFO] [stderr]    |
[INFO] [stderr] 11 | pub async fn make_payment(
[INFO] [stderr]    |              ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `build_controller` is never used
[INFO] [stderr]   --> src/router/payment_router/mod.rs:18:4
[INFO] [stderr]    |
[INFO] [stderr] 18 | fn build_controller(connection: &Arc<DatabaseConnection>) -> anyhow::Result<Arc<PaymentController>> {
[INFO] [stderr]    |    ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `setup_router` is never used
[INFO] [stderr]   --> src/router/payment_router/mod.rs:23:8
[INFO] [stderr]    |
[INFO] [stderr] 23 | pub fn setup_router(connection: DatabaseConnection) -> anyhow::Result<Router> {
[INFO] [stderr]    |        ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `PaymentController` is never constructed
[INFO] [stderr]  --> src/controllers/payment_controller/mod.rs:6:12
[INFO] [stderr]   |
[INFO] [stderr] 6 | pub struct PaymentController {
[INFO] [stderr]   |            ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new` and `make_payment` are never used
[INFO] [stderr]   --> src/controllers/payment_controller/mod.rs:11:12
[INFO] [stderr]    |
[INFO] [stderr] 10 | impl PaymentController {
[INFO] [stderr]    | ---------------------- associated items in this implementation
[INFO] [stderr] 11 |     pub fn new(service: PaymentService) -> PaymentController {
[INFO] [stderr]    |            ^^^
[INFO] [stderr] ...
[INFO] [stderr] 17 |     pub async fn make_payment(&self, _body: PaymentData, _user: Option<UserClaims>) -> Result<String, (StatusCode, String)> {
[INFO] [stderr]    |                  ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `get_name` is never used
[INFO] [stderr]   --> src/controllers/order_controller/order_status_strategies.rs:14:8
[INFO] [stderr]    |
[INFO] [stderr] 11 | pub trait PaymentStrategy: Send + Sync {
[INFO] [stderr]    |           --------------- method in this trait
[INFO] [stderr] ...
[INFO] [stderr] 14 |     fn get_name(&self) -> String;
[INFO] [stderr]    |        ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `PaymentFailure` is never constructed
[INFO] [stderr]   --> src/controllers/order_controller/order_status_strategies.rs:39:12
[INFO] [stderr]    |
[INFO] [stderr] 39 | pub struct PaymentFailure<'a> {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]   --> src/controllers/order_controller/order_status_strategies.rs:55:8
[INFO] [stderr]    |
[INFO] [stderr] 54 | impl<'a> PaymentFailure<'a> {
[INFO] [stderr]    | --------------------------- associated function in this implementation
[INFO] [stderr] 55 |     fn new(service: &'a OrderService) -> Self {
[INFO] [stderr]    |        ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `RefundSuccess` is never constructed
[INFO] [stderr]   --> src/controllers/order_controller/order_status_strategies.rs:60:12
[INFO] [stderr]    |
[INFO] [stderr] 60 | pub struct RefundSuccess<'a> {
[INFO] [stderr]    |            ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new` and `process` are never used
[INFO] [stderr]   --> src/controllers/order_controller/order_status_strategies.rs:66:8
[INFO] [stderr]    |
[INFO] [stderr] 65 | impl<'a> RefundSuccess<'a> {
[INFO] [stderr]    | -------------------------- associated items in this implementation
[INFO] [stderr] 66 |     fn new(service: &'a OrderService) -> Self {
[INFO] [stderr]    |        ^^^
[INFO] [stderr] ...
[INFO] [stderr] 69 |     pub async fn process(&self, _data: OrderNotificationData) {
[INFO] [stderr]    |                  ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `CreateAnonymousUser` is never constructed
[INFO] [stderr]   --> src/services/user_service/types.rs:82:12
[INFO] [stderr]    |
[INFO] [stderr] 82 | pub struct CreateAnonymousUser {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `AuthService` is never constructed
[INFO] [stderr]  --> src/services/auth_service/mod.rs:3:12
[INFO] [stderr]   |
[INFO] [stderr] 3 | pub struct AuthService {
[INFO] [stderr]   |            ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]  --> src/services/auth_service/mod.rs:9:12
[INFO] [stderr]   |
[INFO] [stderr] 8 | impl AuthService {
[INFO] [stderr]   | ---------------- associated function in this implementation
[INFO] [stderr] 9 |     pub fn new(repository: DbAuthRepository) -> AuthService {
[INFO] [stderr]   |            ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `update_cart_product_quantity` is never used
[INFO] [stderr]   --> src/services/cart_service/mod.rs:53:18
[INFO] [stderr]    |
[INFO] [stderr] 16 | impl CartService {
[INFO] [stderr]    | ---------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 53 |     pub async fn update_cart_product_quantity(&self, _user: Option<UserClaims>, _product_id: i32, _quantity: i32) -> Result<()> {
[INFO] [stderr]    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `host` is never read
[INFO] [stderr]   --> src/services/mail_service/mod.rs:13:5
[INFO] [stderr]    |
[INFO] [stderr] 11 | pub struct MailService {
[INFO] [stderr]    |            ----------- field in this struct
[INFO] [stderr] 12 |     mailer: SmtpTransport,
[INFO] [stderr] 13 |     host: String,
[INFO] [stderr]    |     ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `failed_payment` is never used
[INFO] [stderr]    --> src/services/order_service/mod.rs:151:18
[INFO] [stderr]     |
[INFO] [stderr]  21 | impl OrderService {
[INFO] [stderr]     | ----------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 151 |     pub async fn failed_payment(&self, _data: OrderNotificationData, ip: IpAddr) -> Result<(), OrderErrors> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `mark_messages_as_read` is never used
[INFO] [stderr]   --> src/services/chat_service/mod.rs:75:18
[INFO] [stderr]    |
[INFO] [stderr] 14 | impl ChatService {
[INFO] [stderr]    | ---------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 75 |     pub async fn mark_messages_as_read(&self, chat_id: i32) -> Result<(), ChatErrors> {
[INFO] [stderr]    |                  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variant `UpdateError` is never constructed
[INFO] [stderr]  --> src/services/chat_service/types.rs:9:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub enum ChatErrors {
[INFO] [stderr]   |          ---------- variant in this enum
[INFO] [stderr] ...
[INFO] [stderr] 9 |     UpdateError(String),
[INFO] [stderr]   |     ^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `ChatErrors` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: struct `DbAuthRepository` is never constructed
[INFO] [stderr]  --> src/repository/auth_repository.rs:3:12
[INFO] [stderr]   |
[INFO] [stderr] 3 | pub struct DbAuthRepository {
[INFO] [stderr]   |            ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]  --> src/repository/auth_repository.rs:8:12
[INFO] [stderr]   |
[INFO] [stderr] 7 | impl DbAuthRepository {
[INFO] [stderr]   | --------------------- associated function in this implementation
[INFO] [stderr] 8 |     pub fn new(connection: DatabaseConnection) -> Self {
[INFO] [stderr]   |            ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: fields `user_id` and `is_anonymous` are never read
[INFO] [stderr]   --> src/repository/chat_repository.rs:23:9
[INFO] [stderr]    |
[INFO] [stderr] 21 | pub struct ChatFilter {
[INFO] [stderr]    |            ---------- fields in this struct
[INFO] [stderr] 22 |     pub id: Option<i32>,
[INFO] [stderr] 23 |     pub user_id: i32,
[INFO] [stderr]    |         ^^^^^^^
[INFO] [stderr] 24 |     pub is_anonymous: bool,
[INFO] [stderr]    |         ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `add_user_id_filter`, `get_chats`, `get_messages`, and `mark_messages_as_read` are never used
[INFO] [stderr]    --> src/repository/chat_repository.rs:32:8
[INFO] [stderr]     |
[INFO] [stderr]  27 | impl DBChatRepository {
[INFO] [stderr]     | --------------------- associated items in this implementation
[INFO] [stderr] ...
[INFO] [stderr]  32 |     fn add_user_id_filter(filter: ChatFilter, condition: Condition) -> Condition {
[INFO] [stderr]     |        ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr]  69 |     pub async fn get_chats(&self, filter: ChatFilter) -> Result<Vec<Model>> {
[INFO] [stderr]     |                  ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 119 |     pub async fn get_messages(&self, chat_id: i32) -> Result<Vec<MessageModel>> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 139 |     pub async fn mark_messages_as_read(&self, chat_id: i32) -> Result<()> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `allowed_list` is never read
[INFO] [stderr]   --> src/payment_clients/yookassa_client/mod.rs:18:5
[INFO] [stderr]    |
[INFO] [stderr] 14 | pub struct YooKassa {
[INFO] [stderr]    |            -------- field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 18 |     allowed_list: [&'static str; 7],
[INFO] [stderr]    |     ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: module `DTO` should have a snake case name
[INFO] [stderr]  --> src/main.rs:8:5
[INFO] [stderr]   |
[INFO] [stderr] 8 | mod DTO;
[INFO] [stderr]   |     ^^^ help: convert the identifier to snake case: `dto`
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused `Result` that must be used
[INFO] [stderr]   --> src/controllers/order_controller/order_status_strategies.rs:46:9
[INFO] [stderr]    |
[INFO] [stderr] 46 |         self.service.failed_payment(data, ip).await;
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]    |
[INFO] [stderr] 46 |         let _ = self.service.failed_payment(data, ip).await;
[INFO] [stderr]    |         +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `Category` should have a snake case name
[INFO] [stderr]   --> src/DTO/product_dto.rs:13:9
[INFO] [stderr]    |
[INFO] [stderr] 13 |     pub Category: Option<category::Model>,
[INFO] [stderr]    |         ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `category`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `SubCategory` should have a snake case name
[INFO] [stderr]   --> src/DTO/product_dto.rs:14:9
[INFO] [stderr]    |
[INFO] [stderr] 14 |     pub SubCategory: Option<sub_category::Model>,
[INFO] [stderr]    |         ^^^^^^^^^^^ help: convert the identifier to snake case: `sub_category`
[INFO] [stderr] 
[INFO] [stderr] warning: structure field `isInCart` should have a snake case name
[INFO] [stderr]   --> src/DTO/product_dto.rs:15:9
[INFO] [stderr]    |
[INFO] [stderr] 15 |     pub isInCart: Option<bool>,
[INFO] [stderr]    |         ^^^^^^^^ help: convert the identifier to snake case: `is_in_cart`
[INFO] [stderr] 
[INFO] [stderr] warning: `rust_coctail_server` (bin "rust_coctail_server" test) generated 43 warnings (run `cargo fix --bin "rust_coctail_server" -p rust_coctail_server --tests` to apply 14 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.53s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_coctail_server-b0032c013b2da330)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "9f34f33a3e22394bc46419b8bddab7ea36b302600eb74827b2bfaa27bb737692", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9f34f33a3e22394bc46419b8bddab7ea36b302600eb74827b2bfaa27bb737692", kill_on_drop: false }`
[INFO] [stdout] 9f34f33a3e22394bc46419b8bddab7ea36b302600eb74827b2bfaa27bb737692
