[INFO] cloning repository https://github.com/Yakabuff/gamba-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Yakabuff/gamba-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYakabuff%2Fgamba-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYakabuff%2Fgamba-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e2aa69c4a8e80e5642786632718f516533459b74 [INFO] checking Yakabuff/gamba-rs against try#3c75d5844aa65b4aa19243ac44ceda49fe4e61ca for pr-143545 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYakabuff%2Fgamba-rs" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Yakabuff/gamba-rs [INFO] finished tweaking git repo https://github.com/Yakabuff/gamba-rs [INFO] tweaked toml for git repo https://github.com/Yakabuff/gamba-rs written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Yakabuff/gamba-rs on toolchain 3c75d5844aa65b4aa19243ac44ceda49fe4e61ca [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3c75d5844aa65b4aa19243ac44ceda49fe4e61ca" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Yakabuff/gamba-rs 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" "+3c75d5844aa65b4aa19243ac44ceda49fe4e61ca" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+3c75d5844aa65b4aa19243ac44ceda49fe4e61ca" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 204f2c21dea65b20d1660857e7b1f7b7ab03cc4205be93902cc42ac89f32096b [INFO] running `Command { std: "docker" "start" "-a" "204f2c21dea65b20d1660857e7b1f7b7ab03cc4205be93902cc42ac89f32096b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "204f2c21dea65b20d1660857e7b1f7b7ab03cc4205be93902cc42ac89f32096b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "204f2c21dea65b20d1660857e7b1f7b7ab03cc4205be93902cc42ac89f32096b", kill_on_drop: false }` [INFO] [stdout] 204f2c21dea65b20d1660857e7b1f7b7ab03cc4205be93902cc42ac89f32096b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+3c75d5844aa65b4aa19243ac44ceda49fe4e61ca" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fc928cade1ad9d9d49d39b577677b403a37407d04afc1c8bb361168582c2ab07 [INFO] running `Command { std: "docker" "start" "-a" "fc928cade1ad9d9d49d39b577677b403a37407d04afc1c8bb361168582c2ab07", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking smallvec v1.14.0 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Checking tokio v1.44.1 [INFO] [stderr] Checking gamba v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> src/channel_hub.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | username, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `username: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uuid` [INFO] [stdout] --> src/channel_hub.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | uuid, [INFO] [stdout] | ^^^^ help: try ignoring the field: `uuid: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> src/channel_hub.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | tx, [INFO] [stdout] | ^^ help: try ignoring the field: `tx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game_type` [INFO] [stdout] --> src/channel_hub.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | game_type, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `game_type: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `users` [INFO] [stdout] --> src/channel_hub.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | users: &mut HashMap>, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/poker_state.rs:177:30 [INFO] [stdout] | [INFO] [stdout] 177 | fn handle_initial(&self, action: ConnectionAction) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bet` [INFO] [stdout] --> src/poker_state.rs:312:23 [INFO] [stdout] | [INFO] [stdout] 312 | fn bet(&mut self, bet: BetAction) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bet` [INFO] [stdout] --> src/poker_state.rs:317:24 [INFO] [stdout] | [INFO] [stdout] 317 | fn bet_turn(&self, bet: BetAction) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bet` [INFO] [stdout] --> src/poker_state.rs:322:25 [INFO] [stdout] | [INFO] [stdout] 322 | fn bet_river(&self, bet: BetAction) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/poker_state.rs:328:13 [INFO] [stdout] | [INFO] [stdout] 328 | for i in 0..num { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> src/channel_hub.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | username, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `username: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uuid` [INFO] [stdout] --> src/channel_hub.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | uuid, [INFO] [stdout] | ^^^^ help: try ignoring the field: `uuid: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> src/channel_hub.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | tx, [INFO] [stdout] | ^^ help: try ignoring the field: `tx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game_type` [INFO] [stdout] --> src/channel_hub.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | game_type, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `game_type: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `users` [INFO] [stdout] --> src/channel_hub.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | users: &mut HashMap>, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> src/main.rs:65:21 [INFO] [stdout] | [INFO] [stdout] 65 | tx, [INFO] [stdout] | ^^ help: try ignoring the field: `tx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> src/poker_state.rs:177:30 [INFO] [stdout] | [INFO] [stdout] 177 | fn handle_initial(&self, action: ConnectionAction) {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bet` [INFO] [stdout] --> src/poker_state.rs:312:23 [INFO] [stdout] | [INFO] [stdout] 312 | fn bet(&mut self, bet: BetAction) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bet` [INFO] [stdout] --> src/poker_state.rs:317:24 [INFO] [stdout] | [INFO] [stdout] 317 | fn bet_turn(&self, bet: BetAction) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bet` [INFO] [stdout] --> src/poker_state.rs:322:25 [INFO] [stdout] | [INFO] [stdout] 322 | fn bet_river(&self, bet: BetAction) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/main.rs:102:24 [INFO] [stdout] | [INFO] [stdout] 102 | while let Some(message) = rx.recv().await { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/poker_state.rs:328:13 [INFO] [stdout] | [INFO] [stdout] 328 | for i in 0..num { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx` [INFO] [stdout] --> src/main.rs:65:21 [INFO] [stdout] | [INFO] [stdout] 65 | tx, [INFO] [stdout] | ^^ help: try ignoring the field: `tx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `BetAction` is more private than the item `Action::Bet::0` [INFO] [stdout] --> src/poker_state.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | Bet(BetAction), [INFO] [stdout] | ^^^^^^^^^ field `Action::Bet::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `BetAction` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/poker_state.rs:96:1 [INFO] [stdout] | [INFO] [stdout] 96 | struct BetAction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConnectionAction` is more private than the item `Action::Connection::0` [INFO] [stdout] --> src/poker_state.rs:109:16 [INFO] [stdout] | [INFO] [stdout] 109 | Connection(ConnectionAction), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ field `Action::Connection::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `ConnectionAction` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/poker_state.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | struct ConnectionAction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_room_distributor` is never used [INFO] [stdout] --> src/main.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn init_room_distributor(mut rx: Receiver) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_room` is never used [INFO] [stdout] --> src/main.rs:98:4 [INFO] [stdout] | [INFO] [stdout] 98 | fn create_room(game_type: GameType, mut rx: Receiver, room_id: String) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `join_room` is never used [INFO] [stdout] --> src/main.rs:108:10 [INFO] [stdout] | [INFO] [stdout] 108 | async fn join_room(tx: Sender, message: Message) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Message` is never used [INFO] [stdout] --> src/main.rs:115:6 [INFO] [stdout] | [INFO] [stdout] 115 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GameType` is never used [INFO] [stdout] --> src/main.rs:132:6 [INFO] [stdout] | [INFO] [stdout] 132 | enum GameType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_random_room_id` is never used [INFO] [stdout] --> src/main.rs:136:4 [INFO] [stdout] | [INFO] [stdout] 136 | fn generate_random_room_id() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Card` is never constructed [INFO] [stdout] --> src/cards.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Card { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Suite` is never used [INFO] [stdout] --> src/cards.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Suite { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `random`, `newDeck`, and `shuffle_deck` are never used [INFO] [stdout] --> src/cards.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Card { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 16 | pub fn random() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn newDeck() -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn shuffle_deck(deck: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChannelHub` is never constructed [INFO] [stdout] --> src/channel_hub.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct ChannelHub { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `spawn`, and `handler` are never used [INFO] [stdout] --> src/channel_hub.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl ChannelHub { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 18 | fn new(rx_worker: Receiver, rx_sse: Receiver) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn spawn(self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn handler( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PokerGame` is never constructed [INFO] [stdout] --> src/poker_state.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct PokerGame { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserInfo` is never constructed [INFO] [stdout] --> src/poker_state.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct UserInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SIZE` is never used [INFO] [stdout] --> src/poker_state.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const MAX_SIZE: usize = 10; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bet_type` and `value` are never read [INFO] [stdout] --> src/poker_state.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | struct Bet { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 33 | bet_type: BetType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 34 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/poker_state.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | enum BetType { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 38 | NONE, [INFO] [stdout] | ^^^^ [INFO] [stdout] 39 | CHECK, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 40 | BET, [INFO] [stdout] | ^^^ [INFO] [stdout] 41 | CALL, [INFO] [stdout] | ^^^^ [INFO] [stdout] 42 | RAISE, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 43 | FOLD, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | ALLIN, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BettingStage` is never used [INFO] [stdout] --> src/poker_state.rs:52:6 [INFO] [stdout] | [INFO] [stdout] 52 | enum BettingStage { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GameState` is never used [INFO] [stdout] --> src/poker_state.rs:60:6 [INFO] [stdout] | [INFO] [stdout] 60 | enum GameState { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next` is never used [INFO] [stdout] --> src/poker_state.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 74 | impl GameState { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 75 | fn next(self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `action_type` and `uuid` are never read [INFO] [stdout] --> src/poker_state.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 92 | struct ConnectionAction { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 93 | action_type: ConnectionActionType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 94 | uuid: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `uuid` and `bet` are never read [INFO] [stdout] --> src/poker_state.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 96 | struct BetAction { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 97 | uuid: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 98 | bet: Bet, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `JOIN`, `QUIT`, and `START` are never constructed [INFO] [stdout] --> src/poker_state.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 101 | enum ConnectionActionType { [INFO] [stdout] | -------------------- variants in this enum [INFO] [stdout] 102 | JOIN, [INFO] [stdout] | ^^^^ [INFO] [stdout] 103 | QUIT, [INFO] [stdout] | ^^^^ [INFO] [stdout] 104 | START, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/poker_state.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 112 | impl PokerGame { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 113 | fn new() -> PokerGame { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | fn run(&mut self, action: Action) -> Result<(), String> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | fn handle_initial(&self, action: ConnectionAction) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 178 | fn handle_blind(&self) {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 179 | fn handle_deal(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | fn betting_stage(&mut self, betAction: BetAction, game_state: GameState) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | fn handle_check(&mut self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | fn handle_bet(&mut self, value: i32) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 251 | fn handle_raise(&mut self, value: i32) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | fn handle_call(&mut self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | fn check_betting_finished_nobet(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 301 | fn reset_bets(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | fn reveal_flop(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 312 | fn bet(&mut self, bet: BetAction) {} [INFO] [stdout] | ^^^ [INFO] [stdout] 313 | fn reveal_turn(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 317 | fn bet_turn(&self, bet: BetAction) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 318 | fn reveal_river(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 322 | fn bet_river(&self, bet: BetAction) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 323 | fn showdown(&self) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 324 | fn terminate(&self) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 325 | [INFO] [stdout] 326 | fn drawNCards(&mut self, num: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `newDeck` should have a snake case name [INFO] [stdout] --> src/cards.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn newDeck() -> Vec { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `new_deck` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `betAction` should have a snake case name [INFO] [stdout] --> src/poker_state.rs:188:33 [INFO] [stdout] | [INFO] [stdout] 188 | fn betting_stage(&mut self, betAction: BetAction, game_state: GameState) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `bet_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `drawNCards` should have a snake case name [INFO] [stdout] --> src/poker_state.rs:326:8 [INFO] [stdout] | [INFO] [stdout] 326 | fn drawNCards(&mut self, num: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `draw_ncards` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/main.rs:102:24 [INFO] [stdout] | [INFO] [stdout] 102 | while let Some(message) = rx.recv().await { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `BetAction` is more private than the item `Action::Bet::0` [INFO] [stdout] --> src/poker_state.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | Bet(BetAction), [INFO] [stdout] | ^^^^^^^^^ field `Action::Bet::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `BetAction` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/poker_state.rs:96:1 [INFO] [stdout] | [INFO] [stdout] 96 | struct BetAction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `ConnectionAction` is more private than the item `Action::Connection::0` [INFO] [stdout] --> src/poker_state.rs:109:16 [INFO] [stdout] | [INFO] [stdout] 109 | Connection(ConnectionAction), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ field `Action::Connection::0` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `ConnectionAction` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/poker_state.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | struct ConnectionAction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_room_distributor` is never used [INFO] [stdout] --> src/main.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn init_room_distributor(mut rx: Receiver) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_room` is never used [INFO] [stdout] --> src/main.rs:98:4 [INFO] [stdout] | [INFO] [stdout] 98 | fn create_room(game_type: GameType, mut rx: Receiver, room_id: String) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `join_room` is never used [INFO] [stdout] --> src/main.rs:108:10 [INFO] [stdout] | [INFO] [stdout] 108 | async fn join_room(tx: Sender, message: Message) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Message` is never used [INFO] [stdout] --> src/main.rs:115:6 [INFO] [stdout] | [INFO] [stdout] 115 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GameType` is never used [INFO] [stdout] --> src/main.rs:132:6 [INFO] [stdout] | [INFO] [stdout] 132 | enum GameType { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_random_room_id` is never used [INFO] [stdout] --> src/main.rs:136:4 [INFO] [stdout] | [INFO] [stdout] 136 | fn generate_random_room_id() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Card` is never constructed [INFO] [stdout] --> src/cards.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Card { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Suite` is never used [INFO] [stdout] --> src/cards.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Suite { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `random`, `newDeck`, and `shuffle_deck` are never used [INFO] [stdout] --> src/cards.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Card { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 16 | pub fn random() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn newDeck() -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn shuffle_deck(deck: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChannelHub` is never constructed [INFO] [stdout] --> src/channel_hub.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct ChannelHub { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `spawn`, and `handler` are never used [INFO] [stdout] --> src/channel_hub.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | impl ChannelHub { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 18 | fn new(rx_worker: Receiver, rx_sse: Receiver) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn spawn(self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn handler( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PokerGame` is never constructed [INFO] [stdout] --> src/poker_state.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct PokerGame { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserInfo` is never constructed [INFO] [stdout] --> src/poker_state.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct UserInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_SIZE` is never used [INFO] [stdout] --> src/poker_state.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const MAX_SIZE: usize = 10; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `bet_type` and `value` are never read [INFO] [stdout] --> src/poker_state.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | struct Bet { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 33 | bet_type: BetType, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 34 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/poker_state.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | enum BetType { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 38 | NONE, [INFO] [stdout] | ^^^^ [INFO] [stdout] 39 | CHECK, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 40 | BET, [INFO] [stdout] | ^^^ [INFO] [stdout] 41 | CALL, [INFO] [stdout] | ^^^^ [INFO] [stdout] 42 | RAISE, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 43 | FOLD, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | ALLIN, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BettingStage` is never used [INFO] [stdout] --> src/poker_state.rs:52:6 [INFO] [stdout] | [INFO] [stdout] 52 | enum BettingStage { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GameState` is never used [INFO] [stdout] --> src/poker_state.rs:60:6 [INFO] [stdout] | [INFO] [stdout] 60 | enum GameState { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next` is never used [INFO] [stdout] --> src/poker_state.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 74 | impl GameState { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 75 | fn next(self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `action_type` and `uuid` are never read [INFO] [stdout] --> src/poker_state.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 92 | struct ConnectionAction { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 93 | action_type: ConnectionActionType, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 94 | uuid: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `uuid` and `bet` are never read [INFO] [stdout] --> src/poker_state.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 96 | struct BetAction { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 97 | uuid: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 98 | bet: Bet, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `JOIN`, `QUIT`, and `START` are never constructed [INFO] [stdout] --> src/poker_state.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 101 | enum ConnectionActionType { [INFO] [stdout] | -------------------- variants in this enum [INFO] [stdout] 102 | JOIN, [INFO] [stdout] | ^^^^ [INFO] [stdout] 103 | QUIT, [INFO] [stdout] | ^^^^ [INFO] [stdout] 104 | START, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/poker_state.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 112 | impl PokerGame { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 113 | fn new() -> PokerGame { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | fn run(&mut self, action: Action) -> Result<(), String> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | fn handle_initial(&self, action: ConnectionAction) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 178 | fn handle_blind(&self) {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 179 | fn handle_deal(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | fn betting_stage(&mut self, betAction: BetAction, game_state: GameState) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | fn handle_check(&mut self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | fn handle_bet(&mut self, value: i32) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 251 | fn handle_raise(&mut self, value: i32) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | fn handle_call(&mut self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | fn check_betting_finished_nobet(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 301 | fn reset_bets(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | fn reveal_flop(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 312 | fn bet(&mut self, bet: BetAction) {} [INFO] [stdout] | ^^^ [INFO] [stdout] 313 | fn reveal_turn(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 317 | fn bet_turn(&self, bet: BetAction) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 318 | fn reveal_river(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 322 | fn bet_river(&self, bet: BetAction) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 323 | fn showdown(&self) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 324 | fn terminate(&self) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 325 | [INFO] [stdout] 326 | fn drawNCards(&mut self, num: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `newDeck` should have a snake case name [INFO] [stdout] --> src/cards.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn newDeck() -> Vec { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `new_deck` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `betAction` should have a snake case name [INFO] [stdout] --> src/poker_state.rs:188:33 [INFO] [stdout] | [INFO] [stdout] 188 | fn betting_stage(&mut self, betAction: BetAction, game_state: GameState) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `bet_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `drawNCards` should have a snake case name [INFO] [stdout] --> src/poker_state.rs:326:8 [INFO] [stdout] | [INFO] [stdout] 326 | fn drawNCards(&mut self, num: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `draw_ncards` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.00s [INFO] running `Command { std: "docker" "inspect" "fc928cade1ad9d9d49d39b577677b403a37407d04afc1c8bb361168582c2ab07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc928cade1ad9d9d49d39b577677b403a37407d04afc1c8bb361168582c2ab07", kill_on_drop: false }` [INFO] [stdout] fc928cade1ad9d9d49d39b577677b403a37407d04afc1c8bb361168582c2ab07