[INFO] cloning repository https://github.com/nithishsa10/rust-chat-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nithishsa10/rust-chat-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnithishsa10%2Frust-chat-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnithishsa10%2Frust-chat-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 837f1ae3dd7296cd6b87a879960cf5d20dc77285 [INFO] checking nithishsa10/rust-chat-server against try#fa4dd1f19bfeb3fd235dc7f1406c42404436bef5 for pr-145108-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnithishsa10%2Frust-chat-server" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nithishsa10/rust-chat-server [INFO] finished tweaking git repo https://github.com/nithishsa10/rust-chat-server [INFO] tweaked toml for git repo https://github.com/nithishsa10/rust-chat-server written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nithishsa10/rust-chat-server on toolchain fa4dd1f19bfeb3fd235dc7f1406c42404436bef5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fa4dd1f19bfeb3fd235dc7f1406c42404436bef5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/nithishsa10/rust-chat-server already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fa4dd1f19bfeb3fd235dc7f1406c42404436bef5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+fa4dd1f19bfeb3fd235dc7f1406c42404436bef5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c2b8225289e0b2cb33f0551c6fb4b7a6ce374936676004a3fc94d9715a82b0cd [INFO] running `Command { std: "docker" "start" "-a" "c2b8225289e0b2cb33f0551c6fb4b7a6ce374936676004a3fc94d9715a82b0cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c2b8225289e0b2cb33f0551c6fb4b7a6ce374936676004a3fc94d9715a82b0cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2b8225289e0b2cb33f0551c6fb4b7a6ce374936676004a3fc94d9715a82b0cd", kill_on_drop: false }` [INFO] [stdout] c2b8225289e0b2cb33f0551c6fb4b7a6ce374936676004a3fc94d9715a82b0cd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+fa4dd1f19bfeb3fd235dc7f1406c42404436bef5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1b5a8045a3336630c703756288767a97225a974344d3f3aa68d1df524377c540 [INFO] running `Command { std: "docker" "start" "-a" "1b5a8045a3336630c703756288767a97225a974344d3f3aa68d1df524377c540", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Compiling zerocopy v0.8.34 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Checking itoa v1.0.17 [INFO] [stderr] Compiling cfg-if v1.0.4 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking memchr v2.7.6 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Checking log v0.4.29 [INFO] [stderr] Compiling zmij v1.0.17 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling iana-time-zone v0.1.65 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling socket2 v0.6.2 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling chrono v0.4.43 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling num-conv v0.2.0 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling find-msvc-tools v0.1.8 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling time-core v0.1.8 [INFO] [stderr] Compiling uuid v1.20.0 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling time-macros v0.2.26 [INFO] [stderr] Compiling cc v1.2.54 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Checking regex-syntax v0.8.9 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Checking time v0.3.46 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking ryu v1.0.22 [INFO] [stderr] Checking data-encoding v2.10.0 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Compiling tempfile v3.24.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking nu-ansi-term v0.50.3 [INFO] [stderr] Checking blowfish v0.9.1 [INFO] [stderr] Checking arc-swap v1.8.1 [INFO] [stderr] Checking pem v3.0.6 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Checking crossbeam-channel v0.5.15 [INFO] [stderr] Checking sha1_smol v1.0.1 [INFO] [stderr] Checking zeroize v1.8.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking bcrypt v0.15.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking tungstenite v0.24.0 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Checking tracing-subscriber v0.3.22 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Checking tracing-appender v0.2.4 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking tokio-tungstenite v0.24.0 [INFO] [stderr] Checking tokio-retry v0.3.0 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Checking combine v4.6.7 [INFO] [stderr] Checking hyper-util v0.1.19 [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Checking redis v0.24.0 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking rust-chat-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `tower_http::trace` [INFO] [stdout] --> src/repositories/user_repo.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tower_http::trace; [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: `self` [INFO] [stdout] --> src/handlers/auth.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::models::user::{self, RegisterRequest}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncCommands` [INFO] [stdout] --> src/db/redisdb.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | AsyncCommands, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/db/redisdb.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/db/redisdb.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/db/redisdb.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::session::Session` [INFO] [stdout] --> src/db/redisdb.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::models::session::Session; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/services/auth_service.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Session` [INFO] [stdout] --> src/services/auth_service.rs:6:30 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::models::session::{Session, AuthTokens}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/services/auth_service.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::models::user::{self, UserResponse}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DateTime` [INFO] [stdout] --> src/utils/jwt.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{Utc, DateTime}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `delete` and `put` [INFO] [stdout] --> src/main.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | routing::{get, post, put, delete}, [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EnvFilter` and `fmt` [INFO] [stdout] --> src/main.rs:17:26 [INFO] [stdout] | [INFO] [stdout] 17 | use tracing_subscriber::{fmt, EnvFilter}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tower_http::trace` [INFO] [stdout] --> src/repositories/user_repo.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tower_http::trace; [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: `self` [INFO] [stdout] --> src/handlers/auth.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::models::user::{self, RegisterRequest}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncCommands` [INFO] [stdout] --> src/db/redisdb.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | AsyncCommands, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/db/redisdb.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/db/redisdb.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/db/redisdb.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::session::Session` [INFO] [stdout] --> src/db/redisdb.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::models::session::Session; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/services/auth_service.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Session` [INFO] [stdout] --> src/services/auth_service.rs:6:30 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::models::session::{Session, AuthTokens}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/services/auth_service.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::models::user::{self, UserResponse}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DateTime` [INFO] [stdout] --> src/utils/jwt.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{Utc, DateTime}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `delete` and `put` [INFO] [stdout] --> src/main.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | routing::{get, post, put, delete}, [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EnvFilter` and `fmt` [INFO] [stdout] --> src/main.rs:17:26 [INFO] [stdout] | [INFO] [stdout] 17 | use tracing_subscriber::{fmt, EnvFilter}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::FromStr` [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use std::str::FromStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> src/websocket/connection.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | username: String, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> src/websocket/connection.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | tx: mpsc::Sender, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> src/websocket/connection.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | username: String, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> src/websocket/connection.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | tx: mpsc::Sender, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `email` is never read [INFO] [stdout] --> src/models/user.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct User { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LoginRequest` is never constructed [INFO] [stdout] --> src/models/user.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct LoginRequest { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateProfileRequest` is never constructed [INFO] [stdout] --> src/models/user.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct UpdateProfileRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Room` is never constructed [INFO] [stdout] --> src/models/room.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Room { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoomMember` is never constructed [INFO] [stdout] --> src/models/room.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct RoomMember { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateRoomRequest` is never constructed [INFO] [stdout] --> src/models/room.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct CreateRoomRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateRoomRequest` is never constructed [INFO] [stdout] --> src/models/room.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct UpdateRoomRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Message` is never constructed [INFO] [stdout] --> src/models/message.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DirectMessage` is never constructed [INFO] [stdout] --> src/models/message.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct DirectMessage { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MessageEvent` is never constructed [INFO] [stdout] --> src/models/message.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct MessageEvent { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MessageUser` is never constructed [INFO] [stdout] --> src/models/message.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct MessageUser { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SendMessageRequest` is never constructed [INFO] [stdout] --> src/models/message.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct SendMessageRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PaginationParams` is never constructed [INFO] [stdout] --> src/models/message.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct PaginationParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Session` is never constructed [INFO] [stdout] --> src/models/session.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Session { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_user_by_id` is never used [INFO] [stdout] --> src/repositories/user_repo.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | pub async fn get_user_by_id(pool: &PgPool, id: Uuid) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_user_profile` is never used [INFO] [stdout] --> src/repositories/user_repo.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | pub async fn update_user_profile( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search_user` is never used [INFO] [stdout] --> src/repositories/user_repo.rs:78:14 [INFO] [stdout] | [INFO] [stdout] 78 | pub async fn search_user(pool: &PgPool, query: &str, limit: i32) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_room` is never used [INFO] [stdout] --> src/repositories/room_repo.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn create_room( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_room` is never used [INFO] [stdout] --> src/repositories/room_repo.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn get_room(pool: &PgPool, id: Uuid) -> Result> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list_room` is never used [INFO] [stdout] --> src/repositories/room_repo.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | pub async fn list_room(pool: &PgPool, include_private: bool, limit: i32) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_room` is never used [INFO] [stdout] --> src/repositories/room_repo.rs:51:14 [INFO] [stdout] | [INFO] [stdout] 51 | pub async fn update_room( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_room` is never used [INFO] [stdout] --> src/repositories/room_repo.rs:77:14 [INFO] [stdout] | [INFO] [stdout] 77 | pub async fn delete_room(pool: &PgPool, id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_room_member` is never used [INFO] [stdout] --> src/repositories/room_repo.rs:85:14 [INFO] [stdout] | [INFO] [stdout] 85 | pub async fn add_room_member(pool: &PgPool, room_id: Uuid, user_id: Uuid, role: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_room_member` is never used [INFO] [stdout] --> src/repositories/room_repo.rs:97:14 [INFO] [stdout] | [INFO] [stdout] 97 | pub async fn remove_room_member(pool: &PgPool, room_id: Uuid, user_id: Uuid) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_room_members` is never used [INFO] [stdout] --> src/repositories/room_repo.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | pub async fn get_room_members(pool: &PgPool, room_id: Uuid) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_room_member` is never used [INFO] [stdout] --> src/repositories/room_repo.rs:113:14 [INFO] [stdout] | [INFO] [stdout] 113 | pub async fn is_room_member(pool: &PgPool, room_id: Uuid, user_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_member_role` is never used [INFO] [stdout] --> src/repositories/room_repo.rs:125:14 [INFO] [stdout] | [INFO] [stdout] 125 | pub async fn get_member_role(pool: &PgPool, room_id: Uuid, user_id: Uuid) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_message` is never used [INFO] [stdout] --> src/repositories/message_repo.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | pub async fn create_message( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_room_messages` is never used [INFO] [stdout] --> src/repositories/message_repo.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | pub async fn get_room_messages( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_message` is never used [INFO] [stdout] --> src/repositories/message_repo.rs:44:14 [INFO] [stdout] | [INFO] [stdout] 44 | pub async fn get_message(pool: &PgPool, id: Uuid) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_message` is never used [INFO] [stdout] --> src/repositories/message_repo.rs:51:14 [INFO] [stdout] | [INFO] [stdout] 51 | pub async fn delete_message(pool: &PgPool, id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_direct_message` is never used [INFO] [stdout] --> src/repositories/message_repo.rs:60:14 [INFO] [stdout] | [INFO] [stdout] 60 | pub async fn create_direct_message( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_dm_history` is never used [INFO] [stdout] --> src/repositories/message_repo.rs:81:14 [INFO] [stdout] | [INFO] [stdout] 81 | pub async fn get_dm_history( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mark_dms_read` is never used [INFO] [stdout] --> src/repositories/message_repo.rs:102:14 [INFO] [stdout] | [INFO] [stdout] 102 | pub async fn mark_dms_read(pool: &PgPool, sender_id: Uuid, recipient_id: Uuid) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NotFound`, `Forbidden`, and `RateLimited` are never constructed [INFO] [stdout] --> src/error.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum AppError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | Forbidden(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | RateLimited, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppError` 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 `RefreshRequest` is never constructed [INFO] [stdout] --> src/handlers/auth.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct RefreshRequest { pub refresh_token: String } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `refresh` is never used [INFO] [stdout] --> src/handlers/auth.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn refresh( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `logout` is never used [INFO] [stdout] --> src/handlers/auth.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | pub async fn logout( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `me` is never used [INFO] [stdout] --> src/handlers/auth.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 45 | pub async fn me(State(state): State, auth: AuthUser) -> Result> { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SESSION_TTL_SECS` is never used [INFO] [stdout] --> src/db/redisdb.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const SESSION_TTL_SECS: usize = 604_800; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRYING_TTL_SECS` is never used [INFO] [stdout] --> src/db/redisdb.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const TRYING_TTL_SECS: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ClientMessage` is never used [INFO] [stdout] --> src/websocket/protocol.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum ClientMessage { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `user_id` and `username` are never read [INFO] [stdout] --> src/websocket/connection.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Connection { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 11 | pub user_id: Uuid, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 12 | pub username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Connection` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_connection` is never used [INFO] [stdout] --> src/websocket/connection.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 18 | pub async fn run_connection( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `refresh_token` is never used [INFO] [stdout] --> src/services/auth_service.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 83 | pub async fn refresh_token(token: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_current_user` is never used [INFO] [stdout] --> src/services/auth_service.rs:92:14 [INFO] [stdout] | [INFO] [stdout] 92 | pub async fn get_current_user(db: &DbPool, user_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_room` is never used [INFO] [stdout] --> src/services/room_service.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | pub async fn create_room(pool: &DbPool, req: &CreateRoomRequest, user_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_room` is never used [INFO] [stdout] --> src/services/room_service.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | pub async fn get_room(pool: &DbPool, room_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list_room` is never used [INFO] [stdout] --> src/services/room_service.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn list_room(pool: &DbPool, limit: Option) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_room` is never used [INFO] [stdout] --> src/services/room_service.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | pub async fn update_room(pool: &DbPool, room_id: Uuid, user_id: Uuid, req: &UpdateRoomRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_room` is never used [INFO] [stdout] --> src/services/room_service.rs:44:14 [INFO] [stdout] | [INFO] [stdout] 44 | pub async fn delete_room(pool: &DbPool, room_id: Uuid, user_id: Uuid) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `join_room` is never used [INFO] [stdout] --> src/services/room_service.rs:54:14 [INFO] [stdout] | [INFO] [stdout] 54 | pub async fn join_room(pool: &DbPool, room_id: Uuid, user_id: Uuid) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `leave_room` is never used [INFO] [stdout] --> src/services/room_service.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | pub async fn leave_room(pool: &DbPool, room_id: Uuid, user_id: Uuid) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_room_members` is never used [INFO] [stdout] --> src/services/room_service.rs:69:14 [INFO] [stdout] | [INFO] [stdout] 69 | pub async fn get_room_members(pool: &DbPool, room_id: Uuid) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ensure_user_admin_or_creator` is never used [INFO] [stdout] --> src/services/room_service.rs:77:10 [INFO] [stdout] | [INFO] [stdout] 77 | async fn ensure_user_admin_or_creator(pool: &DbPool, room_id: Uuid, user_id: Uuid) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_message` is never used [INFO] [stdout] --> src/services/message_service.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn send_message(pool: &DbPool, user_id: Uuid, room_id: Uuid, content: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_messages` is never used [INFO] [stdout] --> src/services/message_service.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | pub async fn get_messages(pool: &DbPool, room_id: Uuid, params: &PaginationParams) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_message` is never used [INFO] [stdout] --> src/services/message_service.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 26 | pub async fn delete_message(pool: &DbPool, message_id: Uuid, user_id: Uuid) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_message_event` is never used [INFO] [stdout] --> src/services/message_service.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | pub async fn build_message_event(pool: &DbPool, msg: &Message) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_dm` is never used [INFO] [stdout] --> src/services/message_service.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn send_dm(pool: &DbPool, sender_id: Uuid, recipient_id: Uuid, content: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_dm_history` is never used [INFO] [stdout] --> src/services/message_service.rs:69:14 [INFO] [stdout] | [INFO] [stdout] 69 | pub async fn get_dm_history(pool: &DbPool, user_a: Uuid, user_b: Uuid) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mark_dms_read` is never used [INFO] [stdout] --> src/services/message_service.rs:73:14 [INFO] [stdout] | [INFO] [stdout] 73 | pub async fn mark_dms_read(pool: &DbPool, sender_id: Uuid, recipient_id: Uuid) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `user_id` is never used [INFO] [stdout] --> src/utils/jwt.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Claims { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 19 | pub fn user_id(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_token` is never used [INFO] [stdout] --> src/utils/jwt.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn verify_token(token: &str, secret: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `jwt_secret`, `jwt_expiry_secs`, and `jwt_refresh_expiry_secs` are never read [INFO] [stdout] --> src/config.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | pub jwt_secret: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | pub jwt_expiry_secs: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | pub jwt_refresh_expiry_secs: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuthUser` is never constructed [INFO] [stdout] --> src/middleware/auth.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct AuthUser(pub Claims); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `claims` is never used [INFO] [stdout] --> src/middleware/auth.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl AuthUser { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 13 | pub fn claims(&self) -> &Claims { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_bearer` is never used [INFO] [stdout] --> src/middleware/auth.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn extract_bearer(header: &HeaderMap) -> Result<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `email` is never read [INFO] [stdout] --> src/models/user.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct User { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LoginRequest` is never constructed [INFO] [stdout] --> src/models/user.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct LoginRequest { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateProfileRequest` is never constructed [INFO] [stdout] --> src/models/user.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct UpdateProfileRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Room` is never constructed [INFO] [stdout] --> src/models/room.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Room { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoomMember` is never constructed [INFO] [stdout] --> src/models/room.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct RoomMember { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateRoomRequest` is never constructed [INFO] [stdout] --> src/models/room.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct CreateRoomRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateRoomRequest` is never constructed [INFO] [stdout] --> src/models/room.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct UpdateRoomRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Message` is never constructed [INFO] [stdout] --> src/models/message.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DirectMessage` is never constructed [INFO] [stdout] --> src/models/message.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct DirectMessage { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MessageEvent` is never constructed [INFO] [stdout] --> src/models/message.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct MessageEvent { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MessageUser` is never constructed [INFO] [stdout] --> src/models/message.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct MessageUser { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SendMessageRequest` is never constructed [INFO] [stdout] --> src/models/message.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct SendMessageRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PaginationParams` is never constructed [INFO] [stdout] --> src/models/message.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct PaginationParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Session` is never constructed [INFO] [stdout] --> src/models/session.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Session { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_user_by_id` is never used [INFO] [stdout] --> src/repositories/user_repo.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | pub async fn get_user_by_id(pool: &PgPool, id: Uuid) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_user_profile` is never used [INFO] [stdout] --> src/repositories/user_repo.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 53 | pub async fn update_user_profile( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search_user` is never used [INFO] [stdout] --> src/repositories/user_repo.rs:78:14 [INFO] [stdout] | [INFO] [stdout] 78 | pub async fn search_user(pool: &PgPool, query: &str, limit: i32) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_room` is never used [INFO] [stdout] --> src/repositories/room_repo.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn create_room( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_room` is never used [INFO] [stdout] --> src/repositories/room_repo.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn get_room(pool: &PgPool, id: Uuid) -> Result> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list_room` is never used [INFO] [stdout] --> src/repositories/room_repo.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | pub async fn list_room(pool: &PgPool, include_private: bool, limit: i32) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_room` is never used [INFO] [stdout] --> src/repositories/room_repo.rs:51:14 [INFO] [stdout] | [INFO] [stdout] 51 | pub async fn update_room( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_room` is never used [INFO] [stdout] --> src/repositories/room_repo.rs:77:14 [INFO] [stdout] | [INFO] [stdout] 77 | pub async fn delete_room(pool: &PgPool, id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_room_member` is never used [INFO] [stdout] --> src/repositories/room_repo.rs:85:14 [INFO] [stdout] | [INFO] [stdout] 85 | pub async fn add_room_member(pool: &PgPool, room_id: Uuid, user_id: Uuid, role: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_room_member` is never used [INFO] [stdout] --> src/repositories/room_repo.rs:97:14 [INFO] [stdout] | [INFO] [stdout] 97 | pub async fn remove_room_member(pool: &PgPool, room_id: Uuid, user_id: Uuid) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_room_members` is never used [INFO] [stdout] --> src/repositories/room_repo.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 106 | pub async fn get_room_members(pool: &PgPool, room_id: Uuid) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_room_member` is never used [INFO] [stdout] --> src/repositories/room_repo.rs:113:14 [INFO] [stdout] | [INFO] [stdout] 113 | pub async fn is_room_member(pool: &PgPool, room_id: Uuid, user_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_member_role` is never used [INFO] [stdout] --> src/repositories/room_repo.rs:125:14 [INFO] [stdout] | [INFO] [stdout] 125 | pub async fn get_member_role(pool: &PgPool, room_id: Uuid, user_id: Uuid) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_message` is never used [INFO] [stdout] --> src/repositories/message_repo.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | pub async fn create_message( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_room_messages` is never used [INFO] [stdout] --> src/repositories/message_repo.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | pub async fn get_room_messages( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_message` is never used [INFO] [stdout] --> src/repositories/message_repo.rs:44:14 [INFO] [stdout] | [INFO] [stdout] 44 | pub async fn get_message(pool: &PgPool, id: Uuid) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_message` is never used [INFO] [stdout] --> src/repositories/message_repo.rs:51:14 [INFO] [stdout] | [INFO] [stdout] 51 | pub async fn delete_message(pool: &PgPool, id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_direct_message` is never used [INFO] [stdout] --> src/repositories/message_repo.rs:60:14 [INFO] [stdout] | [INFO] [stdout] 60 | pub async fn create_direct_message( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_dm_history` is never used [INFO] [stdout] --> src/repositories/message_repo.rs:81:14 [INFO] [stdout] | [INFO] [stdout] 81 | pub async fn get_dm_history( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mark_dms_read` is never used [INFO] [stdout] --> src/repositories/message_repo.rs:102:14 [INFO] [stdout] | [INFO] [stdout] 102 | pub async fn mark_dms_read(pool: &PgPool, sender_id: Uuid, recipient_id: Uuid) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `NotFound`, `Forbidden`, and `RateLimited` are never constructed [INFO] [stdout] --> src/error.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum AppError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | Forbidden(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | RateLimited, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppError` 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 `RefreshRequest` is never constructed [INFO] [stdout] --> src/handlers/auth.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct RefreshRequest { pub refresh_token: String } [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `refresh` is never used [INFO] [stdout] --> src/handlers/auth.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn refresh( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `logout` is never used [INFO] [stdout] --> src/handlers/auth.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | pub async fn logout( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `me` is never used [INFO] [stdout] --> src/handlers/auth.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 45 | pub async fn me(State(state): State, auth: AuthUser) -> Result> { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SESSION_TTL_SECS` is never used [INFO] [stdout] --> src/db/redisdb.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const SESSION_TTL_SECS: usize = 604_800; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRYING_TTL_SECS` is never used [INFO] [stdout] --> src/db/redisdb.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const TRYING_TTL_SECS: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ClientMessage` is never used [INFO] [stdout] --> src/websocket/protocol.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum ClientMessage { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `user_id` and `username` are never read [INFO] [stdout] --> src/websocket/connection.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Connection { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 11 | pub user_id: Uuid, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 12 | pub username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Connection` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_connection` is never used [INFO] [stdout] --> src/websocket/connection.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 18 | pub async fn run_connection( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `refresh_token` is never used [INFO] [stdout] --> src/services/auth_service.rs:83:14 [INFO] [stdout] | [INFO] [stdout] 83 | pub async fn refresh_token(token: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_current_user` is never used [INFO] [stdout] --> src/services/auth_service.rs:92:14 [INFO] [stdout] | [INFO] [stdout] 92 | pub async fn get_current_user(db: &DbPool, user_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_room` is never used [INFO] [stdout] --> src/services/room_service.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | pub async fn create_room(pool: &DbPool, req: &CreateRoomRequest, user_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_room` is never used [INFO] [stdout] --> src/services/room_service.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 25 | pub async fn get_room(pool: &DbPool, room_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list_room` is never used [INFO] [stdout] --> src/services/room_service.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn list_room(pool: &DbPool, limit: Option) -> Result> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_room` is never used [INFO] [stdout] --> src/services/room_service.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | pub async fn update_room(pool: &DbPool, room_id: Uuid, user_id: Uuid, req: &UpdateRoomRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_room` is never used [INFO] [stdout] --> src/services/room_service.rs:44:14 [INFO] [stdout] | [INFO] [stdout] 44 | pub async fn delete_room(pool: &DbPool, room_id: Uuid, user_id: Uuid) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `join_room` is never used [INFO] [stdout] --> src/services/room_service.rs:54:14 [INFO] [stdout] | [INFO] [stdout] 54 | pub async fn join_room(pool: &DbPool, room_id: Uuid, user_id: Uuid) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `leave_room` is never used [INFO] [stdout] --> src/services/room_service.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | pub async fn leave_room(pool: &DbPool, room_id: Uuid, user_id: Uuid) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_room_members` is never used [INFO] [stdout] --> src/services/room_service.rs:69:14 [INFO] [stdout] | [INFO] [stdout] 69 | pub async fn get_room_members(pool: &DbPool, room_id: Uuid) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ensure_user_admin_or_creator` is never used [INFO] [stdout] --> src/services/room_service.rs:77:10 [INFO] [stdout] | [INFO] [stdout] 77 | async fn ensure_user_admin_or_creator(pool: &DbPool, room_id: Uuid, user_id: Uuid) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_message` is never used [INFO] [stdout] --> src/services/message_service.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn send_message(pool: &DbPool, user_id: Uuid, room_id: Uuid, content: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_messages` is never used [INFO] [stdout] --> src/services/message_service.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | pub async fn get_messages(pool: &DbPool, room_id: Uuid, params: &PaginationParams) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_message` is never used [INFO] [stdout] --> src/services/message_service.rs:26:14 [INFO] [stdout] | [INFO] [stdout] 26 | pub async fn delete_message(pool: &DbPool, message_id: Uuid, user_id: Uuid) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_message_event` is never used [INFO] [stdout] --> src/services/message_service.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | pub async fn build_message_event(pool: &DbPool, msg: &Message) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_dm` is never used [INFO] [stdout] --> src/services/message_service.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 56 | pub async fn send_dm(pool: &DbPool, sender_id: Uuid, recipient_id: Uuid, content: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_dm_history` is never used [INFO] [stdout] --> src/services/message_service.rs:69:14 [INFO] [stdout] | [INFO] [stdout] 69 | pub async fn get_dm_history(pool: &DbPool, user_a: Uuid, user_b: Uuid) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mark_dms_read` is never used [INFO] [stdout] --> src/services/message_service.rs:73:14 [INFO] [stdout] | [INFO] [stdout] 73 | pub async fn mark_dms_read(pool: &DbPool, sender_id: Uuid, recipient_id: Uuid) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `user_id` is never used [INFO] [stdout] --> src/utils/jwt.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Claims { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 19 | pub fn user_id(&self) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_token` is never used [INFO] [stdout] --> src/utils/jwt.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn verify_token(token: &str, secret: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `jwt_secret`, `jwt_expiry_secs`, and `jwt_refresh_expiry_secs` are never read [INFO] [stdout] --> src/config.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | pub jwt_secret: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | pub jwt_expiry_secs: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | pub jwt_refresh_expiry_secs: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuthUser` is never constructed [INFO] [stdout] --> src/middleware/auth.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct AuthUser(pub Claims); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `claims` is never used [INFO] [stdout] --> src/middleware/auth.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl AuthUser { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 13 | pub fn claims(&self) -> &Claims { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_bearer` is never used [INFO] [stdout] --> src/middleware/auth.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn extract_bearer(header: &HeaderMap) -> Result<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 19s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.24.0, sqlx-postgres v0.7.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "1b5a8045a3336630c703756288767a97225a974344d3f3aa68d1df524377c540", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b5a8045a3336630c703756288767a97225a974344d3f3aa68d1df524377c540", kill_on_drop: false }` [INFO] [stdout] 1b5a8045a3336630c703756288767a97225a974344d3f3aa68d1df524377c540