[INFO] cloning repository https://github.com/Nydauron/poker-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Nydauron/poker-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNydauron%2Fpoker-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNydauron%2Fpoker-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7bb50f0ee01d35db2299acdf334402baaf5e665c [INFO] checking Nydauron/poker-server against master#7702ae16a23407cdd909ff9174294563ae1f4ba3 for pr-97183 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNydauron%2Fpoker-server" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Nydauron/poker-server on toolchain 7702ae16a23407cdd909ff9174294563ae1f4ba3 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+7702ae16a23407cdd909ff9174294563ae1f4ba3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Nydauron/poker-server [INFO] finished tweaking git repo https://github.com/Nydauron/poker-server [INFO] tweaked toml for git repo https://github.com/Nydauron/poker-server written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/Nydauron/poker-server already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+7702ae16a23407cdd909ff9174294563ae1f4ba3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sfmt v0.7.0 [INFO] [stderr] Downloaded actix-web-actors v4.1.0 [INFO] [stderr] Downloaded rs_poker v2.0.0-alpha.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+7702ae16a23407cdd909ff9174294563ae1f4ba3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5ff699629e597ab7bdb0cfabfe9f27cfebf5ca67f2fd945ab70b49cc3a658a93 [INFO] running `Command { std: "docker" "start" "-a" "5ff699629e597ab7bdb0cfabfe9f27cfebf5ca67f2fd945ab70b49cc3a658a93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5ff699629e597ab7bdb0cfabfe9f27cfebf5ca67f2fd945ab70b49cc3a658a93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ff699629e597ab7bdb0cfabfe9f27cfebf5ca67f2fd945ab70b49cc3a658a93", kill_on_drop: false }` [INFO] [stdout] 5ff699629e597ab7bdb0cfabfe9f27cfebf5ca67f2fd945ab70b49cc3a658a93 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+7702ae16a23407cdd909ff9174294563ae1f4ba3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ad9886f91616cec59042ea731b00ca793fb76991b49e5bc4526d6bb011e082d7 [INFO] running `Command { std: "docker" "start" "-a" "ad9886f91616cec59042ea731b00ca793fb76991b49e5bc4526d6bb011e082d7", 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] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Checking once_cell v1.11.0 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking itoa v1.0.2 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling crossbeam-utils v0.8.8 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Compiling zstd-safe v4.1.6+zstd.1.5.2 [INFO] [stderr] Checking local-waker v0.1.3 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking alloc-no-stdlib v2.0.3 [INFO] [stderr] Compiling time-macros v0.2.4 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Checking num_threads v0.1.6 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling paste v1.0.7 [INFO] [stderr] Checking ryu v1.0.10 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling serde_json v1.0.81 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling unicode-xid v0.2.3 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Checking cpufeatures v0.2.2 [INFO] [stderr] Checking slab v0.4.6 [INFO] [stderr] Checking unicode-bidi v0.3.8 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling firestorm v0.5.0 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking language-tags v0.3.2 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking fixedbitset v0.4.1 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking tracing-core v0.1.26 [INFO] [stderr] Checking bytestring v1.0.0 [INFO] [stderr] Checking http v0.2.7 [INFO] [stderr] Checking actix-utils v3.0.0 [INFO] [stderr] Checking alloc-stdlib v0.2.1 [INFO] [stderr] Checking miniz_oxide v0.5.1 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling crossbeam-epoch v0.9.8 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling cookie v0.16.0 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking pem v1.0.2 [INFO] [stderr] Checking brotli-decompressor v2.3.2 [INFO] [stderr] Checking actix-service v2.0.2 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking crossbeam-channel v0.5.4 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking mio v0.8.3 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking flate2 v1.0.23 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Checking brotli v3.3.4 [INFO] [stderr] Checking regex v1.5.5 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking crypto-common v0.1.3 [INFO] [stderr] Checking block-buffer v0.10.2 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking local-channel v0.1.3 [INFO] [stderr] Checking sha-1 v0.10.0 [INFO] [stderr] Checking quickcheck v1.0.3 [INFO] [stderr] Checking sfmt v0.7.0 [INFO] [stderr] Checking time v0.3.9 [INFO] [stderr] Compiling actix-router v0.5.0 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling zstd-sys v1.6.3+zstd.1.5.2 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling tracing-attributes v0.1.21 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling zeroize_derive v1.3.2 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling actix-web-codegen v4.0.0 [INFO] [stderr] Compiling actix_derive v0.6.0 [INFO] [stderr] Compiling actix-macros v0.2.3 [INFO] [stderr] Checking tokio v1.18.2 [INFO] [stderr] Checking zeroize v1.3.0 [INFO] [stderr] Checking curve25519-dalek v3.2.1 [INFO] [stderr] Checking x25519-dalek v1.2.0 [INFO] [stderr] Checking tracing v0.1.34 [INFO] [stderr] Checking tokio-util v0.7.2 [INFO] [stderr] Checking actix-rt v2.7.0 [INFO] [stderr] Checking actix-server v2.1.1 [INFO] [stderr] Checking h2 v0.3.13 [INFO] [stderr] Checking actix-codec v0.5.0 [INFO] [stderr] Checking actix v0.13.0 [INFO] [stderr] Checking thiserror v1.0.31 [INFO] [stderr] Checking simple_asn1 v0.6.1 [INFO] [stderr] Checking rs_poker v2.0.0-alpha.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking uuid v1.1.0 [INFO] [stderr] Checking jsonwebtoken v8.1.0 [INFO] [stderr] Checking zstd v0.10.2+zstd.1.5.2 [INFO] [stderr] Checking actix-http v3.0.4 [INFO] [stderr] Checking actix-web v4.0.1 [INFO] [stderr] Checking actix-web-actors v4.1.0 [INFO] [stderr] Checking poker-server v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/websocket.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Serialize, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SendSingleResponse` [INFO] [stdout] --> src/websocket.rs:7:75 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::poker::{MessageManager, WebsocketConnect, WebsocketDisconnect, SendSingleResponse, ActionRequest}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `btn_idx` [INFO] [stdout] --> src/poker/games/five_card_draw.rs:32:67 [INFO] [stdout] | [INFO] [stdout] 32 | fn start_normal(&mut self, players:&mut HashMap, btn_idx: usize) -> Result<(), &str> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_btn_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `draw` [INFO] [stdout] --> src/poker/player.rs:38:30 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn draw_cards(&self, draw: Vec<(Card, Card)>) -> Result<(), Error> { // All-or-none approach, (Card to discard, card to replace w... [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_draw` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table` [INFO] [stdout] --> src/poker/table.rs:58:27 [INFO] [stdout] | [INFO] [stdout] 58 | pub async fn run_loop(table: Arc>, rx: &mut UnboundedReceiver, res_tx: UnboundedSender src/poker/table.rs:58:100 [INFO] [stdout] | [INFO] [stdout] 58 | ...Receiver, res_tx: UnboundedSender) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_res_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/poker/table.rs:59:24 [INFO] [stdout] | [INFO] [stdout] 59 | while let Some(msg) = rx.recv().await { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res_tx` [INFO] [stdout] --> src/poker/table.rs:64:54 [INFO] [stdout] | [INFO] [stdout] 64 | pub async fn game_loop(table: Arc>, res_tx: UnboundedSender) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_res_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/poker/action.rs:45:27 [INFO] [stdout] | [INFO] [stdout] 45 | pub async fn listener(addr: Addr, rx: &mut UnboundedReceiver) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/poker/action.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | while let Some(msg) = rx.recv().await { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/poker/action.rs:84:26 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle(&mut self, msg: ActionRequest, _: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/poker/action.rs:121:26 [INFO] [stdout] | [INFO] [stdout] 121 | fn handle(&mut self, msg: BroadcastState, _: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/poker/action.rs:138:26 [INFO] [stdout] | [INFO] [stdout] 138 | fn handle(&mut self, msg: SendSingleResponse, _: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/poker/pokerdeck.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let mut was_deck_reshuffled = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `seed` is never read [INFO] [stdout] --> src/poker/pokerdeck.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct CardDeck { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 15 | deck: Vec, [INFO] [stdout] 16 | seed: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_seed` is never used [INFO] [stdout] --> src/poker/pokerdeck.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn get_seed(& self) -> u64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `muck_cards` is never used [INFO] [stdout] --> src/poker/pokerdeck.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn muck_cards(&mut self, mut cards: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `check_deal_cards` is never used [INFO] [stdout] --> src/poker/pokerdeck.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn check_deal_cards(& self, n: usize, m: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `draw_cards` is never used [INFO] [stdout] --> src/poker/pokerdeck.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn draw_cards(&mut self, n: usize, discard_cards: Option>) -> (Option>, bool) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `eval` is never read [INFO] [stdout] --> src/poker/games/five_card_draw.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct FiveCardDraw { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 11 | deck: CardDeck, [INFO] [stdout] 12 | eval: FiveCardDrawEvaluator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/poker/player.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new(position: usize, name: String, starting_stack: u64) -> Player { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `draw_cards` is never used [INFO] [stdout] --> src/poker/player.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn draw_cards(&self, draw: Vec<(Card, Card)>) -> Result<(), Error> { // All-or-none approach, (Card to discard, card to replace w... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/poker/table.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Table { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 15 | players: HashMap, // list of all players corresponding to their table position [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | game: Box, // what game the table is playing [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | [INFO] [stdout] 18 | action_idx: usize, // action_idx will always point to a Player that is in the hand [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | [INFO] [stdout] 20 | big_blind_idx: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | btn_idx: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 22 | pot: Box, // handles all bets from players, checks for when all bets are good, and distributes pot base... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | [INFO] [stdout] 24 | start_next_hand: bool, // is the table running (start/stop next hand) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | is_paused: bool, // is the current hand paused [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | is_next_hand_bomb: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `check_all_bets_good` is never used [INFO] [stdout] --> src/poker/table.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | fn check_all_bets_good(& self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `have_all_players_folded` is never used [INFO] [stdout] --> src/poker/table.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | fn have_all_players_folded(& self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `game_loop` is never used [INFO] [stdout] --> src/poker/table.rs:64:18 [INFO] [stdout] | [INFO] [stdout] 64 | pub async fn game_loop(table: Arc>, res_tx: UnboundedSender) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `set_bet_no_max` is never used [INFO] [stdout] --> src/poker/pots/no_limit_pot.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn set_bet_no_max(&mut self, pos: &usize, bet: u64) -> Result<(), std::string::String> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/websocket.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Serialize, Deserializer}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SendSingleResponse` [INFO] [stdout] --> src/websocket.rs:7:75 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::poker::{MessageManager, WebsocketConnect, WebsocketDisconnect, SendSingleResponse, ActionRequest}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `btn_idx` [INFO] [stdout] --> src/poker/games/five_card_draw.rs:32:67 [INFO] [stdout] | [INFO] [stdout] 32 | fn start_normal(&mut self, players:&mut HashMap, btn_idx: usize) -> Result<(), &str> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_btn_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `draw` [INFO] [stdout] --> src/poker/player.rs:38:30 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn draw_cards(&self, draw: Vec<(Card, Card)>) -> Result<(), Error> { // All-or-none approach, (Card to discard, card to replace w... [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_draw` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table` [INFO] [stdout] --> src/poker/table.rs:58:27 [INFO] [stdout] | [INFO] [stdout] 58 | pub async fn run_loop(table: Arc>, rx: &mut UnboundedReceiver, res_tx: UnboundedSender src/poker/table.rs:58:100 [INFO] [stdout] | [INFO] [stdout] 58 | ...Receiver, res_tx: UnboundedSender) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_res_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/poker/table.rs:59:24 [INFO] [stdout] | [INFO] [stdout] 59 | while let Some(msg) = rx.recv().await { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res_tx` [INFO] [stdout] --> src/poker/table.rs:64:54 [INFO] [stdout] | [INFO] [stdout] 64 | pub async fn game_loop(table: Arc>, res_tx: UnboundedSender) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_res_tx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/poker/action.rs:45:27 [INFO] [stdout] | [INFO] [stdout] 45 | pub async fn listener(addr: Addr, rx: &mut UnboundedReceiver) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/poker/action.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | while let Some(msg) = rx.recv().await { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/poker/action.rs:84:26 [INFO] [stdout] | [INFO] [stdout] 84 | fn handle(&mut self, msg: ActionRequest, _: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/poker/action.rs:121:26 [INFO] [stdout] | [INFO] [stdout] 121 | fn handle(&mut self, msg: BroadcastState, _: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/poker/action.rs:138:26 [INFO] [stdout] | [INFO] [stdout] 138 | fn handle(&mut self, msg: SendSingleResponse, _: &mut Self::Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/poker/pokerdeck.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let mut was_deck_reshuffled = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `muck_cards` is never used [INFO] [stdout] --> src/poker/pokerdeck.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn muck_cards(&mut self, mut cards: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `check_deal_cards` is never used [INFO] [stdout] --> src/poker/pokerdeck.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn check_deal_cards(& self, n: usize, m: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `draw_cards` is never used [INFO] [stdout] --> src/poker/pokerdeck.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn draw_cards(&mut self, n: usize, discard_cards: Option>) -> (Option>, bool) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `eval` is never read [INFO] [stdout] --> src/poker/games/five_card_draw.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct FiveCardDraw { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 11 | deck: CardDeck, [INFO] [stdout] 12 | eval: FiveCardDrawEvaluator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `draw_cards` is never used [INFO] [stdout] --> src/poker/player.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn draw_cards(&self, draw: Vec<(Card, Card)>) -> Result<(), Error> { // All-or-none approach, (Card to discard, card to replace w... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/poker/table.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Table { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 15 | players: HashMap, // list of all players corresponding to their table position [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | game: Box, // what game the table is playing [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | [INFO] [stdout] 18 | action_idx: usize, // action_idx will always point to a Player that is in the hand [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 19 | [INFO] [stdout] 20 | big_blind_idx: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | btn_idx: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 22 | pot: Box, // handles all bets from players, checks for when all bets are good, and distributes pot base... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | [INFO] [stdout] 24 | start_next_hand: bool, // is the table running (start/stop next hand) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 25 | is_paused: bool, // is the current hand paused [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | is_next_hand_bomb: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `check_all_bets_good` is never used [INFO] [stdout] --> src/poker/table.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | fn check_all_bets_good(& self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `have_all_players_folded` is never used [INFO] [stdout] --> src/poker/table.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | fn have_all_players_folded(& self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `game_loop` is never used [INFO] [stdout] --> src/poker/table.rs:64:18 [INFO] [stdout] | [INFO] [stdout] 64 | pub async fn game_loop(table: Arc>, res_tx: UnboundedSender) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 17s [INFO] running `Command { std: "docker" "inspect" "ad9886f91616cec59042ea731b00ca793fb76991b49e5bc4526d6bb011e082d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad9886f91616cec59042ea731b00ca793fb76991b49e5bc4526d6bb011e082d7", kill_on_drop: false }` [INFO] [stdout] ad9886f91616cec59042ea731b00ca793fb76991b49e5bc4526d6bb011e082d7