[INFO] cloning repository https://github.com/phanidharguttikonda0/ipl_auction [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/phanidharguttikonda0/ipl_auction" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphanidharguttikonda0%2Fipl_auction", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphanidharguttikonda0%2Fipl_auction'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7408f508f9af5a0af4ee194f4793980adff1c6c0 [INFO] checking phanidharguttikonda0/ipl_auction against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fphanidharguttikonda0%2Fipl_auction" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/phanidharguttikonda0/ipl_auction [INFO] finished tweaking git repo https://github.com/phanidharguttikonda0/ipl_auction [INFO] tweaked toml for git repo https://github.com/phanidharguttikonda0/ipl_auction written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/phanidharguttikonda0/ipl_auction on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/phanidharguttikonda0/ipl_auction 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1cb78dde886bd12d84d71a34562d6b8eaea75273da09abd3f274afcade3d2d0c [INFO] running `Command { std: "docker" "start" "-a" "1cb78dde886bd12d84d71a34562d6b8eaea75273da09abd3f274afcade3d2d0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1cb78dde886bd12d84d71a34562d6b8eaea75273da09abd3f274afcade3d2d0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1cb78dde886bd12d84d71a34562d6b8eaea75273da09abd3f274afcade3d2d0c", kill_on_drop: false }` [INFO] [stdout] 1cb78dde886bd12d84d71a34562d6b8eaea75273da09abd3f274afcade3d2d0c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dunmustuse_in_always_ok" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d95536e3aa630ce7c8e3ad9cc3495cd75dbd7011421f8194681012c558a21635 [INFO] running `Command { std: "docker" "start" "-a" "d95536e3aa630ce7c8e3ad9cc3495cd75dbd7011421f8194681012c558a21635", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling syn v2.0.109 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling openssl-sys v0.9.110 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking base64ct v1.8.0 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling openssl v0.10.74 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling icu_properties_data v2.1.1 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking ff v0.13.1 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling mio v1.1.0 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Checking hkdf v0.12.4 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Compiling semver v1.0.27 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Compiling num-bigint-dig v0.8.5 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Checking deranged v0.5.5 [INFO] [stderr] Checking primeorder v0.13.6 [INFO] [stderr] Checking crossbeam-queue v0.3.12 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking pkcs1 v0.7.5 [INFO] [stderr] Checking ed25519 v2.2.3 [INFO] [stderr] Compiling combine v4.6.7 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling sha1_smol v1.0.1 [INFO] [stderr] Checking p256 v0.13.2 [INFO] [stderr] Checking p384 v0.13.1 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Checking pem v3.0.6 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking b64-url v0.5.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 time v0.3.44 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking thiserror v2.0.17 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Checking axum-core v0.5.5 [INFO] [stderr] Checking tungstenite v0.28.0 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking ed25519-dalek v2.2.0 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking json-web-token v0.2.0 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking tracing-subscriber v0.3.20 [INFO] [stderr] Checking icu_properties v2.1.1 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking rsa v0.9.8 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking jsonwebtoken v10.2.0 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Compiling redis v0.32.7 [INFO] [stderr] Compiling sqlx-postgres v0.8.6 [INFO] [stderr] Checking tokio-util v0.7.17 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-tungstenite v0.28.0 [INFO] [stderr] Checking hyper-util v0.1.17 [INFO] [stderr] Checking axum v0.8.6 [INFO] [stderr] Compiling redis-derive v0.2.0 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking ipl_auction v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `tokio::sync::broadcast` [INFO] [stdout] --> src/models/app_state.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::sync::broadcast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRedisValue` and `ToRedisArgs` [INFO] [stdout] --> src/models/player_models.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use redis_derive::{FromRedisValue, ToRedisArgs}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/models/player_models.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `Utc` [INFO] [stdout] --> src/models/authentication_models.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{Utc, Duration}; [INFO] [stdout] | ^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::broadcast` [INFO] [stdout] --> src/auction.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::sync::broadcast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aio::PubSub` [INFO] [stdout] --> src/services/auction_room.rs:240:21 [INFO] [stdout] | [INFO] [stdout] 240 | use redis::{Client, aio::PubSub}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/services/auction.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenv::dotenv` [INFO] [stdout] --> src/services/auction.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use dotenv::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::room_models::Participant` [INFO] [stdout] --> src/services/auction.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::models::room_models::Participant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::broadcast` [INFO] [stdout] --> src/models/app_state.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::sync::broadcast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Pool` and `Postgres` [INFO] [stdout] --> src/services/other.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::{Pool, Postgres}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Participant` and `ParticipantsWithTeam` [INFO] [stdout] --> src/controllers/rooms.rs:9:34 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::models::room_models::{Participant, ParticipantsWithTeam}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRedisValue` and `ToRedisArgs` [INFO] [stdout] --> src/models/player_models.rs:1:20 [INFO] [stdout] | [INFO] [stdout] 1 | use redis_derive::{FromRedisValue, ToRedisArgs}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/models/player_models.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `Utc` [INFO] [stdout] --> src/models/authentication_models.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{Utc, Duration}; [INFO] [stdout] | ^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::broadcast` [INFO] [stdout] --> src/auction.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::sync::broadcast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aio::PubSub` [INFO] [stdout] --> src/services/auction_room.rs:240:21 [INFO] [stdout] | [INFO] [stdout] 240 | use redis::{Client, aio::PubSub}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/services/auction.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenv::dotenv` [INFO] [stdout] --> src/services/auction.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use dotenv::dotenv; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::room_models::Participant` [INFO] [stdout] --> src/services/auction.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::models::room_models::Participant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Pool` and `Postgres` [INFO] [stdout] --> src/services/other.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::{Pool, Postgres}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Participant` and `ParticipantsWithTeam` [INFO] [stdout] --> src/controllers/rooms.rs:9:34 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::models::room_models::{Participant, ParticipantsWithTeam}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/auction.rs:19:25 [INFO] [stdout] | [INFO] [stdout] 19 | async fn socket_handler(mut web_socket: WebSocket, room_id: String,participant_id: i32, app_state: Arc) { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/auction.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | let (mut tx, mut rx) = tokio::sync::mpsc::unbounded_channel::() ; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/services/auction_room.rs:83:21 [INFO] [stdout] | [INFO] [stdout] 83 | let mut value: AuctionRoom = serde_json::from_str(&value).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/services/auction_room.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut value: RedisResult = self.connection.get(room_id.clone()).await ; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/services/auction_room.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 49 | Ok(mut value) => { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/auction.rs:277:9 [INFO] [stdout] | [INFO] [stdout] 277 | let mut rooms = state.rooms.read().await; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/services/auction_room.rs:65:21 [INFO] [stdout] | [INFO] [stdout] 65 | let mut value: AuctionRoom = serde_json::from_str(&value).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/services/auction_room.rs:32:16 [INFO] [stdout] | [INFO] [stdout] 32 | Ok(mut value) => { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/auction.rs:19:25 [INFO] [stdout] | [INFO] [stdout] 19 | async fn socket_handler(mut web_socket: WebSocket, room_id: String,participant_id: i32, app_state: Arc) { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/auction.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | let (mut tx, mut rx) = tokio::sync::mpsc::unbounded_channel::() ; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/services/auction_room.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | let mut room: RedisResult= self.connection.get(room_id.clone()).await ; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/services/auction_room.rs:162:16 [INFO] [stdout] | [INFO] [stdout] 162 | Ok(mut room) => { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/services/auction_room.rs:165:21 [INFO] [stdout] | [INFO] [stdout] 165 | let mut previous_bid = current_bid.bid_amount ; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/auction.rs:288:9 [INFO] [stdout] | [INFO] [stdout] 288 | let mut rooms = state.rooms.read().await; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/services/auction_room.rs:83:21 [INFO] [stdout] | [INFO] [stdout] 83 | let mut value: AuctionRoom = serde_json::from_str(&value).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/services/auction_room.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let mut value: RedisResult = self.connection.get(room_id.clone()).await ; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/services/auction_room.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 49 | Ok(mut value) => { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/auction.rs:277:9 [INFO] [stdout] | [INFO] [stdout] 277 | let mut rooms = state.rooms.read().await; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/services/auction_room.rs:65:21 [INFO] [stdout] | [INFO] [stdout] 65 | let mut value: AuctionRoom = serde_json::from_str(&value).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/services/auction_room.rs:32:16 [INFO] [stdout] | [INFO] [stdout] 32 | Ok(mut value) => { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/services/auction_room.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | let mut room: RedisResult= self.connection.get(room_id.clone()).await ; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/services/auction_room.rs:162:16 [INFO] [stdout] | [INFO] [stdout] 162 | Ok(mut room) => { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/services/auction_room.rs:165:21 [INFO] [stdout] | [INFO] [stdout] 165 | let mut previous_bid = current_bid.bid_amount ; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/auction.rs:288:9 [INFO] [stdout] | [INFO] [stdout] 288 | let mut rooms = state.rooms.read().await; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/services/auction_room.rs:266:13 [INFO] [stdout] | [INFO] [stdout] 266 | let mut res: String = conn.get(&room_id).await? ; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/services/auction_room.rs:266:13 [INFO] [stdout] | [INFO] [stdout] 266 | let mut res: String = conn.get(&room_id).await? ; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/services/other.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let mut redis_connection = RedisConnection::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/services/other.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let mut redis_connection = RedisConnection::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `redis::aio::AsyncPushSender` [INFO] [stdout] --> src/auction.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use redis::aio::AsyncPushSender; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Commands` [INFO] [stdout] --> src/services/auction_room.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | use redis::{AsyncCommands, Commands, RedisResult}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `redis::AsyncCommands` [INFO] [stdout] --> src/services/auction.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use redis::AsyncCommands; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/auction.rs:15:56 [INFO] [stdout] | [INFO] [stdout] 15 | pub async fn ws_handler(ws: WebSocketUpgrade,Extension(user): Extension ,Path((room_id, participant_id)): Path<(String, i32)>, St... [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/auction.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/auction.rs:55:15 [INFO] [stdout] | [INFO] [stdout] 55 | },Err(err ) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/auction.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/auction.rs:184:29 [INFO] [stdout] | [INFO] [stdout] 184 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/auction.rs:229:29 [INFO] [stdout] | [INFO] [stdout] 229 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/auction.rs:238:28 [INFO] [stdout] | [INFO] [stdout] 238 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/auction.rs:241:29 [INFO] [stdout] | [INFO] [stdout] 241 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/auction.rs:267:29 [INFO] [stdout] | [INFO] [stdout] 267 | Message::Binary(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/auction.rs:268:27 [INFO] [stdout] | [INFO] [stdout] 268 | Message::Ping(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/auction.rs:269:27 [INFO] [stdout] | [INFO] [stdout] 269 | Message::Pong(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `redis::aio::AsyncPushSender` [INFO] [stdout] --> src/auction.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use redis::aio::AsyncPushSender; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Commands` [INFO] [stdout] --> src/services/auction_room.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | use redis::{AsyncCommands, Commands, RedisResult}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `redis::AsyncCommands` [INFO] [stdout] --> src/services/auction.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use redis::AsyncCommands; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/services/auction_room.rs:196:25 [INFO] [stdout] | [INFO] [stdout] 196 | let res = self.connection.set_ex::<_,_, ()>(&timer_key, "active", expiry_time as u64).await; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/services/auction_room.rs:203:17 [INFO] [stdout] | [INFO] [stdout] 203 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room_id` [INFO] [stdout] --> src/auction.rs:300:36 [INFO] [stdout] | [INFO] [stdout] 300 | pub async fn bid_allowance_handler(room_id: String, current_bid: f32, balance: f32, total_players_brought: u8) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_room_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/services/auction_room.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/services/auction_room.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/services/other.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let val = redis_connection.await.load_players_to_redis(players).await; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/controllers/rooms.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/controllers/rooms.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/controllers/rooms.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_state` [INFO] [stdout] --> src/controllers/player.rs:8:40 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn get_players_brought(State(app_state): State>, Path((room_id, participant_id)):Path<(String, i32)> ) -> Json src/controllers/player.rs:8:80 [INFO] [stdout] | [INFO] [stdout] 8 | ...State>, Path((room_id, participant_id)):Path<(String, i32)> ) -> Json, String>>{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_room_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `participant_id` [INFO] [stdout] --> src/controllers/player.rs:8:89 [INFO] [stdout] | [INFO] [stdout] 8 | ...te>>, Path((room_id, participant_id)):Path<(String, i32)> ) -> Json, String>>{ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_participant_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/controllers/authentication.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/auction.rs:15:56 [INFO] [stdout] | [INFO] [stdout] 15 | pub async fn ws_handler(ws: WebSocketUpgrade,Extension(user): Extension ,Path((room_id, participant_id)): Path<(String, i32)>, St... [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/auction.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/auction.rs:55:15 [INFO] [stdout] | [INFO] [stdout] 55 | },Err(err ) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/auction.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/auction.rs:184:29 [INFO] [stdout] | [INFO] [stdout] 184 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/auction.rs:229:29 [INFO] [stdout] | [INFO] [stdout] 229 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/auction.rs:238:28 [INFO] [stdout] | [INFO] [stdout] 238 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/auction.rs:241:29 [INFO] [stdout] | [INFO] [stdout] 241 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/auction.rs:267:29 [INFO] [stdout] | [INFO] [stdout] 267 | Message::Binary(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/auction.rs:268:27 [INFO] [stdout] | [INFO] [stdout] 268 | Message::Ping(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes` [INFO] [stdout] --> src/auction.rs:269:27 [INFO] [stdout] | [INFO] [stdout] 269 | Message::Pong(bytes) => todo!(), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Participant` is never constructed [INFO] [stdout] --> src/models/room_models.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Participant { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParticipantsWithTeam` is never constructed [INFO] [stdout] --> src/models/room_models.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ParticipantsWithTeam { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Teams` is never constructed [INFO] [stdout] --> src/models/room_models.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Teams { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/models/player_models.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Teams{ [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 6 | MumbaiIndians, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 7 | ChennaiSuperKings, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | SunRisersHyderabad, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | PunjabKings, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 10 | RajasthanRoyals, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | RoyalChallengersBangalore, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | KolkataKnightRiders, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | DelhiCapitals, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 14 | LucknowSuperGaints, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | GujaratTitans, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 16 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Teams` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RoomStatus` is never used [INFO] [stdout] --> src/models/player_models.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | pub enum RoomStatus { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `check_room_status` is never used [INFO] [stdout] --> src/models/player_models.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl RoomStatus { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 45 | pub fn check_room_status(room_status: String) -> RoomStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlayerBrought` is never constructed [INFO] [stdout] --> src/models/player_models.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct PlayerBrought { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_players_brought` is never used [INFO] [stdout] --> src/controllers/player.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn get_players_brought(State(app_state): State>, Path((room_id, participant_id)):Path<(String, i32)> ) -> Json [INFO] [stdout] --> src/controllers/authentication.rs:65:53 [INFO] [stdout] | [INFO] [stdout] 65 | match create_authorization_header(id, username, gmail.clone().parse().unwrap(), favorite_team) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/controllers/authentication.rs:65:58 [INFO] [stdout] | [INFO] [stdout] 65 | match create_authorization_header(id, username, gmail.clone().parse().unwrap(), favorite_team) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/services/auction_room.rs:196:25 [INFO] [stdout] | [INFO] [stdout] 196 | let res = self.connection.set_ex::<_,_, ()>(&timer_key, "active", expiry_time as u64).await; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/services/auction_room.rs:203:17 [INFO] [stdout] | [INFO] [stdout] 203 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room_id` [INFO] [stdout] --> src/auction.rs:300:36 [INFO] [stdout] | [INFO] [stdout] 300 | pub async fn bid_allowance_handler(room_id: String, current_bid: f32, balance: f32, total_players_brought: u8) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_room_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/services/auction_room.rs:116:25 [INFO] [stdout] | [INFO] [stdout] 116 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/services/auction_room.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ipl_auction` (bin "ipl_auction" test) due to 1 previous error; 61 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/services/other.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let val = redis_connection.await.load_players_to_redis(players).await; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/controllers/rooms.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/controllers/rooms.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/controllers/rooms.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app_state` [INFO] [stdout] --> src/controllers/player.rs:8:40 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn get_players_brought(State(app_state): State>, Path((room_id, participant_id)):Path<(String, i32)> ) -> Json src/controllers/player.rs:8:80 [INFO] [stdout] | [INFO] [stdout] 8 | ...State>, Path((room_id, participant_id)):Path<(String, i32)> ) -> Json, String>>{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_room_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `participant_id` [INFO] [stdout] --> src/controllers/player.rs:8:89 [INFO] [stdout] | [INFO] [stdout] 8 | ...te>>, Path((room_id, participant_id)):Path<(String, i32)> ) -> Json, String>>{ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_participant_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/controllers/authentication.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Participant` is never constructed [INFO] [stdout] --> src/models/room_models.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Participant { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParticipantsWithTeam` is never constructed [INFO] [stdout] --> src/models/room_models.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ParticipantsWithTeam { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Teams` is never constructed [INFO] [stdout] --> src/models/room_models.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Teams { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/models/player_models.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Teams{ [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 6 | MumbaiIndians, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 7 | ChennaiSuperKings, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | SunRisersHyderabad, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | PunjabKings, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 10 | RajasthanRoyals, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | RoyalChallengersBangalore, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | KolkataKnightRiders, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | DelhiCapitals, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 14 | LucknowSuperGaints, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | GujaratTitans, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 16 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Teams` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RoomStatus` is never used [INFO] [stdout] --> src/models/player_models.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | pub enum RoomStatus { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `check_room_status` is never used [INFO] [stdout] --> src/models/player_models.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl RoomStatus { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 45 | pub fn check_room_status(room_status: String) -> RoomStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PlayerBrought` is never constructed [INFO] [stdout] --> src/models/player_models.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct PlayerBrought { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_players_brought` is never used [INFO] [stdout] --> src/controllers/player.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn get_players_brought(State(app_state): State>, Path((room_id, participant_id)):Path<(String, i32)> ) -> Json [INFO] [stdout] --> src/controllers/authentication.rs:65:53 [INFO] [stdout] | [INFO] [stdout] 65 | match create_authorization_header(id, username, gmail.clone().parse().unwrap(), favorite_team) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/controllers/authentication.rs:65:58 [INFO] [stdout] | [INFO] [stdout] 65 | match create_authorization_header(id, username, gmail.clone().parse().unwrap(), favorite_team) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ipl_auction` (bin "ipl_auction") due to 1 previous error; 61 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d95536e3aa630ce7c8e3ad9cc3495cd75dbd7011421f8194681012c558a21635", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d95536e3aa630ce7c8e3ad9cc3495cd75dbd7011421f8194681012c558a21635", kill_on_drop: false }` [INFO] [stdout] d95536e3aa630ce7c8e3ad9cc3495cd75dbd7011421f8194681012c558a21635