[INFO] cloning repository https://github.com/PLZ2001/TexasPoker [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/PLZ2001/TexasPoker" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPLZ2001%2FTexasPoker", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPLZ2001%2FTexasPoker'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f6c1581a12cae7e72a3c8a32203483f0720ebf8e [INFO] building PLZ2001/TexasPoker against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPLZ2001%2FTexasPoker" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PLZ2001/TexasPoker on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/PLZ2001/TexasPoker [INFO] finished tweaking git repo https://github.com/PLZ2001/TexasPoker [INFO] tweaked toml for git repo https://github.com/PLZ2001/TexasPoker written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/PLZ2001/TexasPoker 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 243c51663e58353ecbb0a42782fbf966ef4e846f180f386162ec34949e32388b [INFO] running `Command { std: "docker" "start" "-a" "243c51663e58353ecbb0a42782fbf966ef4e846f180f386162ec34949e32388b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "243c51663e58353ecbb0a42782fbf966ef4e846f180f386162ec34949e32388b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "243c51663e58353ecbb0a42782fbf966ef4e846f180f386162ec34949e32388b", kill_on_drop: false }` [INFO] [stdout] 243c51663e58353ecbb0a42782fbf966ef4e846f180f386162ec34949e32388b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8ed52fc3a7c2e77c43e489119c8e311472f353d716a5d4286921ce656e0f9720 [INFO] running `Command { std: "docker" "start" "-a" "8ed52fc3a7c2e77c43e489119c8e311472f353d716a5d4286921ce656e0f9720", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.134 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling TexasPoker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StuffType` [INFO] [stdout] --> src/lib.rs:4:39 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::module_bank::{BankManager, StuffType}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `min` [INFO] [stdout] --> src/lib.rs:1029:20 [INFO] [stdout] | [INFO] [stdout] 1029 | use std::cmp::{min, Ordering}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lib.rs:1030:9 [INFO] [stdout] | [INFO] [stdout] 1030 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format` [INFO] [stdout] --> src/lib.rs:1036:29 [INFO] [stdout] | [INFO] [stdout] 1036 | use std::fmt::{Display, format}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PlaceABet_Auto` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:1056:9 [INFO] [stdout] | [INFO] [stdout] 1056 | PlaceABet_Auto, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PlaceAbetAuto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:90:29 [INFO] [stdout] | [INFO] [stdout] 90 | let no_use = basket.insert((*what).clone(), temp_many); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:93:29 [INFO] [stdout] | [INFO] [stdout] 93 | let no_use = basket.remove(what); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:96:29 [INFO] [stdout] | [INFO] [stdout] 96 | let no_use = basket.insert((*what).clone(), now_many); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:116:29 [INFO] [stdout] | [INFO] [stdout] 116 | let no_use = basket.insert((*what).clone(), temp_many); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:119:29 [INFO] [stdout] | [INFO] [stdout] 119 | let no_use = basket.remove(what); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:122:29 [INFO] [stdout] | [INFO] [stdout] 122 | let no_use = basket.insert((*what).clone(), now_many); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 126 | let no_use = basket.remove(what); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `epoch` [INFO] [stdout] --> src/lib.rs:283:17 [INFO] [stdout] | [INFO] [stdout] 283 | for epoch in 0..total_num { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_epoch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:349:25 [INFO] [stdout] | [INFO] [stdout] 349 | let no_use = bank_temp.stuff_in(*stuff, 1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `times` [INFO] [stdout] --> src/lib.rs:455:17 [INFO] [stdout] | [INFO] [stdout] 455 | for times in 0..20 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_times` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `d_value` is never read [INFO] [stdout] --> src/lib.rs:459:25 [INFO] [stdout] | [INFO] [stdout] 459 | let mut d_value = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:458:21 [INFO] [stdout] | [INFO] [stdout] 458 | let mut value = last_player_value; [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: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:757:21 [INFO] [stdout] | [INFO] [stdout] 757 | let no_use = pool.card_pool.stuff_in(&CardType(Card{name:i.to_string(),value:val as i32,color:CardColor::HeiTao}), 1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:758:21 [INFO] [stdout] | [INFO] [stdout] 758 | let no_use = pool.card_pool.stuff_in(&CardType(Card{name:i.to_string(),value:val as i32,color:CardColor::HongTao}),1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:759:21 [INFO] [stdout] | [INFO] [stdout] 759 | let no_use = pool.card_pool.stuff_in(&CardType(Card{name:i.to_string(),value:val as i32,color:CardColor::MeiHua}),1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:760:21 [INFO] [stdout] | [INFO] [stdout] 760 | let no_use = pool.card_pool.stuff_in(&CardType(Card{name:i.to_string(),value:val as i32,color:CardColor::FangKuai}),1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1168:21 [INFO] [stdout] | [INFO] [stdout] 1168 | let mut player = Player::new(name); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ID` [INFO] [stdout] --> src/lib.rs:1193:18 [INFO] [stdout] | [INFO] [stdout] 1193 | for (ID, player) in self.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ID` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ID` [INFO] [stdout] --> src/lib.rs:1315:34 [INFO] [stdout] | [INFO] [stdout] 1315 | ... for (ID, player) in self.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ID` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/lib.rs:1347:33 [INFO] [stdout] | [INFO] [stdout] 1347 | ... for i in 0..player_num_left-2 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/lib.rs:1350:33 [INFO] [stdout] | [INFO] [stdout] 1350 | ... for i in 0..player_num_before_xiaomang { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ID` [INFO] [stdout] --> src/lib.rs:1358:34 [INFO] [stdout] | [INFO] [stdout] 1358 | ... for (ID, player) in self.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ID` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> src/lib.rs:1486:49 [INFO] [stdout] | [INFO] [stdout] 1486 | ... let mut value = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> src/lib.rs:1679:49 [INFO] [stdout] | [INFO] [stdout] 1679 | ... let mut value = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> src/lib.rs:1815:49 [INFO] [stdout] | [INFO] [stdout] 1815 | ... let mut value = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ID` [INFO] [stdout] --> src/lib.rs:1870:42 [INFO] [stdout] | [INFO] [stdout] 1870 | ... for (ID, player) in game_clone.players.iter().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ID` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/lib.rs:1905:42 [INFO] [stdout] | [INFO] [stdout] 1905 | ... for (ID, player) in game_clone.players.iter_mut().enumerate() { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> src/lib.rs:2061:49 [INFO] [stdout] | [INFO] [stdout] 2061 | ... let mut value = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1391:33 [INFO] [stdout] | [INFO] [stdout] 1391 | ... let mut game_clone = self.clone(); [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/lib.rs:1722:33 [INFO] [stdout] | [INFO] [stdout] 1722 | ... let mut game_clone = self.clone(); [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/lib.rs:1868:41 [INFO] [stdout] | [INFO] [stdout] 1868 | ... let mut game_clone = self.clone(); [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/lib.rs:1892:37 [INFO] [stdout] | [INFO] [stdout] 1892 | ... let mut game_clone = self.clone(); [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/lib.rs:1933:37 [INFO] [stdout] | [INFO] [stdout] 1933 | ... let mut game_clone = self.clone(); [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/lib.rs:1968:33 [INFO] [stdout] | [INFO] [stdout] 1968 | ... let mut game_clone = self.clone(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/lib.rs:2158:9 [INFO] [stdout] | [INFO] [stdout] 2158 | for i in 0..100 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_card` is never used [INFO] [stdout] --> src/lib.rs:2155:4 [INFO] [stdout] | [INFO] [stdout] 2155 | fn test_card() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `GeneralType` and `CardType` are never constructed [INFO] [stdout] --> src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum StuffType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 21 | GeneralType(&'static str,i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 22 | CardType(Card), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StuffType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `stuff_transfer` is never used [INFO] [stdout] --> src/lib.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub trait BankManager{ [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 35 | fn stuff_transfer(&mut self, what:&T, how_many:U, destination:&mut Self) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `read_random_item`, `stuff_clear`, and `collect_stuff` are never used [INFO] [stdout] --> src/lib.rs:228:16 [INFO] [stdout] | [INFO] [stdout] 227 | impl MyBank { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 228 | pub fn new() -> MyBank { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | pub fn read_random_item(&self) -> &StuffType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub fn stuff_clear(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 262 | pub fn collect_stuff(&mut self, value:i32) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/lib.rs:408:16 [INFO] [stdout] | [INFO] [stdout] 406 | impl Player { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 407 | /// 下注 [INFO] [stdout] 408 | pub fn place_a_bet(&mut self, bet:&Vec<(&StuffType,i32)>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 412 | pub fn place_a_bet_with_value(&mut self, value:i32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 446 | pub fn place_a_bet_with_last_value(&mut self, last_player_value:i32, max_bet_value:i32, min_value_unit:i32) -> Result, order:Ordering ,value:i32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 546 | pub fn initial_my_owned_bank(&mut self, initial:&Vec<(&StuffType, i32)>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 550 | pub fn clear_my_cards(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 554 | pub fn clear_my_bet_bank(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 558 | pub fn get_bets_back(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 565 | pub fn send_bets_to_pool(&mut self, to:&mut CashPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 571 | pub fn send_owned_to_pool(&mut self, to:&mut CashPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 577 | pub fn get_bets_from_pool(&mut self, from:&mut CashPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 583 | pub fn get_two_cards(&mut self, from:&mut CardPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 597 | pub fn send_cards_back(&mut self, to:&mut CardPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 603 | pub fn get_cards_max_value_and_category(&self, five_cards:&FiveCards) -> (i32, FiveCardsCategory) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:644:16 [INFO] [stdout] | [INFO] [stdout] 643 | impl Player { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 644 | pub fn new(name:&str) -> Player { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `clear_cash_pool` are never used [INFO] [stdout] --> src/lib.rs:658:16 [INFO] [stdout] | [INFO] [stdout] 657 | impl CashPool { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 658 | pub fn new() -> CashPool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 664 | pub fn clear_cash_pool(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Normal`, `DaMang`, `XiaoMang`, `PlaceBet`, `GiveUp`, and `Quit` are never constructed [INFO] [stdout] --> src/lib.rs:671:9 [INFO] [stdout] | [INFO] [stdout] 670 | pub enum Role { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 671 | Normal, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 672 | DaMang(i32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 673 | XiaoMang(i32), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 674 | PlaceBet, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 675 | GiveUp, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 676 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Role` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `HeiTao`, `HongTao`, `MeiHua`, and `FangKuai` are never constructed [INFO] [stdout] --> src/lib.rs:743:9 [INFO] [stdout] | [INFO] [stdout] 742 | pub enum CardColor { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 743 | HeiTao, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 744 | HongTao, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 745 | MeiHua, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 746 | FangKuai, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CardColor` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CARD_GROUP` is never used [INFO] [stdout] --> src/lib.rs:749:11 [INFO] [stdout] | [INFO] [stdout] 749 | const CARD_GROUP:[&str;13] = ["2","3","4","5","6","7","8","9","10","J","Q","K","A"]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `reset_card_pool` are never used [INFO] [stdout] --> src/lib.rs:752:16 [INFO] [stdout] | [INFO] [stdout] 751 | impl CardPool { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 752 | pub fn new() -> CardPool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 765 | pub fn reset_card_pool(&self) -> CardPool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `clear_five_cards`, `get_five_cards`, and `send_cards_back` are never used [INFO] [stdout] --> src/lib.rs:771:16 [INFO] [stdout] | [INFO] [stdout] 770 | impl FiveCards { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 771 | pub fn new() -> FiveCards { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 777 | pub fn clear_five_cards(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 781 | pub fn get_five_cards(&mut self, from:&mut CardPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 798 | pub fn send_cards_back(&mut self, to:&mut CardPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/lib.rs:806:9 [INFO] [stdout] | [INFO] [stdout] 805 | pub enum FiveCardsCategory { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 806 | RoyalFlush, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 807 | StraightFlush, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 808 | FourOfAKind, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 809 | FullHouse, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 810 | Flush, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 811 | Straight, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 812 | ThreeOfAKind, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 813 | TwoPairs, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 814 | Pair, [INFO] [stdout] | ^^^^ [INFO] [stdout] 815 | HighCard, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_five_cards_value` is never used [INFO] [stdout] --> src/lib.rs:818:12 [INFO] [stdout] | [INFO] [stdout] 818 | pub fn get_five_cards_value(five_cards:&Vec<&Card>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_five_cards_category` is never used [INFO] [stdout] --> src/lib.rs:840:12 [INFO] [stdout] | [INFO] [stdout] 840 | pub fn get_five_cards_category(five_cards:&Vec<&Card>) -> FiveCardsCategory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_pair` is never used [INFO] [stdout] --> src/lib.rs:955:8 [INFO] [stdout] | [INFO] [stdout] 955 | fn is_pair(card1:&Card, card2:&Card) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_same_color` is never used [INFO] [stdout] --> src/lib.rs:964:8 [INFO] [stdout] | [INFO] [stdout] 964 | fn is_same_color(card1:&Card, card2:&Card) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_near` is never used [INFO] [stdout] --> src/lib.rs:973:8 [INFO] [stdout] | [INFO] [stdout] 973 | fn is_near(card1:&Card, card2:&Card) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `last_XiaoMang_ID` is never read [INFO] [stdout] --> src/lib.rs:1046:13 [INFO] [stdout] | [INFO] [stdout] 1040 | pub struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1046 | pub last_XiaoMang_ID: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Game` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/lib.rs:1051:9 [INFO] [stdout] | [INFO] [stdout] 1050 | pub enum MyEvent<'a> { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 1051 | AddBot { num: usize }, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 1052 | ResetGame { assets: &'a Vec<(&'a StuffType, i32)> }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 1053 | StartNextGame, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 1054 | PickCards, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 1055 | PlaceABet { bet: &'a Vec<(&'a StuffType, i32)> }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 1056 | PlaceABet_Auto, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 1057 | ConfirmBalance, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 1058 | GiveUp, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/lib.rs:1063:9 [INFO] [stdout] | [INFO] [stdout] 1062 | pub enum GameStatus { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 1063 | Setting, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 1064 | CardsPicking, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 1065 | BetPlacing1, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 1066 | BetPlacing2, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 1067 | BetPlacing3, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 1068 | BetPlacing4, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 1069 | Balancing, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameStatus` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_PLAYER_NUM` is never used [INFO] [stdout] --> src/lib.rs:1072:11 [INFO] [stdout] | [INFO] [stdout] 1072 | const MAX_PLAYER_NUM: usize = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PLAYER_NAME` is never used [INFO] [stdout] --> src/lib.rs:1073:11 [INFO] [stdout] | [INFO] [stdout] 1073 | const PLAYER_NAME: [&str; MAX_PLAYER_NUM] = ["ME", "Alice", "Bob", "Cara", "David", "Ederson", "Ford", "Gavin", "Harry", "Ian"]; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_min_value_unit`, `add_a_player`, `init_game`, and `receive_my_event` are never used [INFO] [stdout] --> src/lib.rs:1076:16 [INFO] [stdout] | [INFO] [stdout] 1075 | impl Game { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 1076 | pub fn new() -> Game { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 1092 | pub fn get_min_value_unit(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1166 | pub fn add_a_player(&mut self, name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1176 | pub fn init_game(&mut self, initial: &Vec<(&StuffType, i32)>) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1219 | pub fn receive_my_event(&mut self, event: MyEvent) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `TexasPoker` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `texas_poker` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:2164:16 [INFO] [stdout] | [INFO] [stdout] 2164 | Ok(T) => println!("{}", T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:2165:17 [INFO] [stdout] | [INFO] [stdout] 2165 | Err(E) => println!("{}", E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:68:20 [INFO] [stdout] | [INFO] [stdout] 68 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T1` should have a snake case name [INFO] [stdout] --> src/lib.rs:70:28 [INFO] [stdout] | [INFO] [stdout] 70 | Ok(T1) => Ok(T + &T1), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `t1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:71:29 [INFO] [stdout] | [INFO] [stdout] 71 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T1` should have a snake case name [INFO] [stdout] --> src/lib.rs:73:36 [INFO] [stdout] | [INFO] [stdout] 73 | ... Ok(T1) => Err(E + &T1 + "The stuff succeeds to get back!"), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `t1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E1` should have a snake case name [INFO] [stdout] --> src/lib.rs:74:37 [INFO] [stdout] | [INFO] [stdout] 74 | ... Err(E1) => Err(E + &E1 + "The stuff fails to get back!"), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `e1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:79:21 [INFO] [stdout] | [INFO] [stdout] 79 | Err(E) => Err(E) [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:142:20 [INFO] [stdout] | [INFO] [stdout] 142 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T1` should have a snake case name [INFO] [stdout] --> src/lib.rs:144:28 [INFO] [stdout] | [INFO] [stdout] 144 | Ok(T1) => Ok(T+&T1), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `t1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:145:29 [INFO] [stdout] | [INFO] [stdout] 145 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T1` should have a snake case name [INFO] [stdout] --> src/lib.rs:147:36 [INFO] [stdout] | [INFO] [stdout] 147 | ... Ok(T1) => Err(E + &T1), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `t1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E1` should have a snake case name [INFO] [stdout] --> src/lib.rs:148:37 [INFO] [stdout] | [INFO] [stdout] 148 | ... Err(E1) => Err(E + &E1), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `e1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:153:21 [INFO] [stdout] | [INFO] [stdout] 153 | Err(E) => Err(E) [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:164:29 [INFO] [stdout] | [INFO] [stdout] 164 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E1` should have a snake case name [INFO] [stdout] --> src/lib.rs:166:37 [INFO] [stdout] | [INFO] [stdout] 166 | ... Err(E1) => Err(t_stack + &E + &E1 + "The stuff fails to send back!"), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `e1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:167:36 [INFO] [stdout] | [INFO] [stdout] 167 | ... Ok(T) => Err(t_stack + &E + &T + "The stuff succeeds to send back!") [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:170:28 [INFO] [stdout] | [INFO] [stdout] 170 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:181:29 [INFO] [stdout] | [INFO] [stdout] 181 | Err(E) => return Err(t_stack + &E + "The stuff in is reserved!"), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:182:28 [INFO] [stdout] | [INFO] [stdout] 182 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:198:29 [INFO] [stdout] | [INFO] [stdout] 198 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E1` should have a snake case name [INFO] [stdout] --> src/lib.rs:200:37 [INFO] [stdout] | [INFO] [stdout] 200 | ... Err(E1) => Err(t_stack + &E + &E1 + "The stuff fails to get back!"), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `e1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:201:36 [INFO] [stdout] | [INFO] [stdout] 201 | ... Ok(T) => Err(t_stack + &E + &T + "The stuff succeeds to get back!") [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:204:28 [INFO] [stdout] | [INFO] [stdout] 204 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:215:29 [INFO] [stdout] | [INFO] [stdout] 215 | Err(E) => return Err(t_stack + &E + "The stuff out is lost!"), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:216:28 [INFO] [stdout] | [INFO] [stdout] 216 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:416:20 [INFO] [stdout] | [INFO] [stdout] 416 | Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:417:21 [INFO] [stdout] | [INFO] [stdout] 417 | Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:427:28 [INFO] [stdout] | [INFO] [stdout] 427 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:432:29 [INFO] [stdout] | [INFO] [stdout] 432 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:437:21 [INFO] [stdout] | [INFO] [stdout] 437 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:484:24 [INFO] [stdout] | [INFO] [stdout] 484 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:489:25 [INFO] [stdout] | [INFO] [stdout] 489 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:490:25 [INFO] [stdout] | [INFO] [stdout] 490 | self.place_a_bet(&bet_bank_backup); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 490 | let _ = self.place_a_bet(&bet_bank_backup); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:504:20 [INFO] [stdout] | [INFO] [stdout] 504 | Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:505:21 [INFO] [stdout] | [INFO] [stdout] 505 | Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:508:20 [INFO] [stdout] | [INFO] [stdout] 508 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:531:36 [INFO] [stdout] | [INFO] [stdout] 531 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:532:37 [INFO] [stdout] | [INFO] [stdout] 532 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:538:21 [INFO] [stdout] | [INFO] [stdout] 538 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:591:24 [INFO] [stdout] | [INFO] [stdout] 591 | Ok(T) => return Ok(T + &e_stack), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:592:25 [INFO] [stdout] | [INFO] [stdout] 592 | Err(E) => e_stack.push_str(&(E)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:792:24 [INFO] [stdout] | [INFO] [stdout] 792 | Ok(T) => return Ok(e_stack+&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:793:25 [INFO] [stdout] | [INFO] [stdout] 793 | Err(E) => e_stack.push_str(&(E)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_RoyalFlush` should have a snake case name [INFO] [stdout] --> src/lib.rs:872:17 [INFO] [stdout] | [INFO] [stdout] 872 | let mut is_RoyalFlush:bool = sort_cards[4].value>=10; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `is_royal_flush` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_StraightFlush` should have a snake case name [INFO] [stdout] --> src/lib.rs:881:17 [INFO] [stdout] | [INFO] [stdout] 881 | let mut is_StraightFlush:bool = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `is_straight_flush` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_FourOfAKind` should have a snake case name [INFO] [stdout] --> src/lib.rs:890:17 [INFO] [stdout] | [INFO] [stdout] 890 | let mut is_FourOfAKind:bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `is_four_of_akind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_FullHouse` should have a snake case name [INFO] [stdout] --> src/lib.rs:898:17 [INFO] [stdout] | [INFO] [stdout] 898 | let mut is_FullHouse:bool = false; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `is_full_house` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_Flush` should have a snake case name [INFO] [stdout] --> src/lib.rs:906:17 [INFO] [stdout] | [INFO] [stdout] 906 | let mut is_Flush:bool = true; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `is_flush` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_Straight` should have a snake case name [INFO] [stdout] --> src/lib.rs:915:17 [INFO] [stdout] | [INFO] [stdout] 915 | let mut is_Straight:bool = true; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `is_straight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_ThreeOfAKind` should have a snake case name [INFO] [stdout] --> src/lib.rs:924:17 [INFO] [stdout] | [INFO] [stdout] 924 | let mut is_ThreeOfAKind:bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `is_three_of_akind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_TwoPairs` should have a snake case name [INFO] [stdout] --> src/lib.rs:933:17 [INFO] [stdout] | [INFO] [stdout] 933 | let mut is_TwoPairs:bool = false; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_two_pairs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_Pair` should have a snake case name [INFO] [stdout] --> src/lib.rs:942:17 [INFO] [stdout] | [INFO] [stdout] 942 | let mut is_Pair:bool = false; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_pair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `last_XiaoMang_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1046:13 [INFO] [stdout] | [INFO] [stdout] 1046 | pub last_XiaoMang_ID: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_xiao_mang_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1087:20 [INFO] [stdout] | [INFO] [stdout] 1087 | Ok(T) => println!("{}", T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1088:21 [INFO] [stdout] | [INFO] [stdout] 1088 | Err(E) => println!("{}", E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_XiaoMang_value` should have a snake case name [INFO] [stdout] --> src/lib.rs:1109:16 [INFO] [stdout] | [INFO] [stdout] 1109 | pub fn get_XiaoMang_value(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_xiao_mang_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_DaMang_value` should have a snake case name [INFO] [stdout] --> src/lib.rs:1128:16 [INFO] [stdout] | [INFO] [stdout] 1128 | pub fn get_DaMang_value(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_da_mang_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1179:20 [INFO] [stdout] | [INFO] [stdout] 1179 | Ok(T) => te_stack.push_str(&(T)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1180:21 [INFO] [stdout] | [INFO] [stdout] 1180 | Err(E) => te_stack.push_str(&(E)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1183:20 [INFO] [stdout] | [INFO] [stdout] 1183 | Ok(T) => te_stack.push_str(&(T)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1184:21 [INFO] [stdout] | [INFO] [stdout] 1184 | Err(E) => te_stack.push_str(&(E)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1193:18 [INFO] [stdout] | [INFO] [stdout] 1193 | for (ID, player) in self.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1195:24 [INFO] [stdout] | [INFO] [stdout] 1195 | Ok(T) => te_stack.push_str(&(T)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1196:25 [INFO] [stdout] | [INFO] [stdout] 1196 | Err(E) => te_stack.push_str(&(E)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1199:24 [INFO] [stdout] | [INFO] [stdout] 1199 | Ok(T) => te_stack.push_str(&(T)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1200:25 [INFO] [stdout] | [INFO] [stdout] 1200 | Err(E) => te_stack.push_str(&(E)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1203:24 [INFO] [stdout] | [INFO] [stdout] 1203 | Ok(T) => te_stack.push_str(&(T)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1204:25 [INFO] [stdout] | [INFO] [stdout] 1204 | Err(E) => te_stack.push_str(&(E)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1230:40 [INFO] [stdout] | [INFO] [stdout] 1230 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1231:41 [INFO] [stdout] | [INFO] [stdout] 1231 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1314:37 [INFO] [stdout] | [INFO] [stdout] 1314 | ... let mut ID:usize = self.last_XiaoMang_ID as usize; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1315:34 [INFO] [stdout] | [INFO] [stdout] 1315 | ... for (ID, player) in self.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1336:34 [INFO] [stdout] | [INFO] [stdout] 1336 | ... for (ID, player) in self.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1351:45 [INFO] [stdout] | [INFO] [stdout] 1351 | ... if let Some(T) = stack.pop() { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1358:34 [INFO] [stdout] | [INFO] [stdout] 1358 | ... for (ID, player) in self.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1360:49 [INFO] [stdout] | [INFO] [stdout] 1360 | ... if let Some(T) = stack.pop() { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1381:40 [INFO] [stdout] | [INFO] [stdout] 1381 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1382:41 [INFO] [stdout] | [INFO] [stdout] 1382 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1387:36 [INFO] [stdout] | [INFO] [stdout] 1387 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1388:37 [INFO] [stdout] | [INFO] [stdout] 1388 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1392:41 [INFO] [stdout] | [INFO] [stdout] 1392 | ... 'outer:for (ID, player) in game_clone.players.iter().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1401:48 [INFO] [stdout] | [INFO] [stdout] 1401 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1402:49 [INFO] [stdout] | [INFO] [stdout] 1402 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1407:49 [INFO] [stdout] | [INFO] [stdout] 1407 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1423:49 [INFO] [stdout] | [INFO] [stdout] 1423 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1444:48 [INFO] [stdout] | [INFO] [stdout] 1444 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1445:49 [INFO] [stdout] | [INFO] [stdout] 1445 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1450:49 [INFO] [stdout] | [INFO] [stdout] 1450 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1466:49 [INFO] [stdout] | [INFO] [stdout] 1466 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1511:48 [INFO] [stdout] | [INFO] [stdout] 1511 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1512:49 [INFO] [stdout] | [INFO] [stdout] 1512 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1556:33 [INFO] [stdout] | [INFO] [stdout] 1556 | ... let ID = 0; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1566:48 [INFO] [stdout] | [INFO] [stdout] 1566 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1567:49 [INFO] [stdout] | [INFO] [stdout] 1567 | ... Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:1568:49 [INFO] [stdout] | [INFO] [stdout] 1568 | ... self.players[ID].place_a_bet(&bet_bank_backup); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1568 | let _ = self.players[ID].place_a_bet(&bet_bank_backup); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1583:49 [INFO] [stdout] | [INFO] [stdout] 1583 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1599:49 [INFO] [stdout] | [INFO] [stdout] 1599 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1623:48 [INFO] [stdout] | [INFO] [stdout] 1623 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1624:49 [INFO] [stdout] | [INFO] [stdout] 1624 | ... Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:1625:49 [INFO] [stdout] | [INFO] [stdout] 1625 | ... self.players[ID].place_a_bet(&bet_bank_backup); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1625 | let _ = self.players[ID].place_a_bet(&bet_bank_backup); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1640:49 [INFO] [stdout] | [INFO] [stdout] 1640 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1656:49 [INFO] [stdout] | [INFO] [stdout] 1656 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1703:48 [INFO] [stdout] | [INFO] [stdout] 1703 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1704:49 [INFO] [stdout] | [INFO] [stdout] 1704 | ... Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:1705:49 [INFO] [stdout] | [INFO] [stdout] 1705 | ... self.players[ID].place_a_bet(&bet_bank_backup); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1705 | let _ = self.players[ID].place_a_bet(&bet_bank_backup); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1723:41 [INFO] [stdout] | [INFO] [stdout] 1723 | ... 'outer:for (ID, player) in game_clone.players.iter().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1738:48 [INFO] [stdout] | [INFO] [stdout] 1738 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1739:49 [INFO] [stdout] | [INFO] [stdout] 1739 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1744:49 [INFO] [stdout] | [INFO] [stdout] 1744 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1760:49 [INFO] [stdout] | [INFO] [stdout] 1760 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1777:48 [INFO] [stdout] | [INFO] [stdout] 1777 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1778:49 [INFO] [stdout] | [INFO] [stdout] 1778 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1783:49 [INFO] [stdout] | [INFO] [stdout] 1783 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1799:49 [INFO] [stdout] | [INFO] [stdout] 1799 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1840:48 [INFO] [stdout] | [INFO] [stdout] 1840 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1841:49 [INFO] [stdout] | [INFO] [stdout] 1841 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1870:42 [INFO] [stdout] | [INFO] [stdout] 1870 | ... for (ID, player) in game_clone.players.iter().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `winner_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1888:41 [INFO] [stdout] | [INFO] [stdout] 1888 | ... let mut winner_ID = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `winner_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1893:38 [INFO] [stdout] | [INFO] [stdout] 1893 | ... for (ID, player) in game_clone.players.iter().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1905:38 [INFO] [stdout] | [INFO] [stdout] 1905 | ... for (ID, player) in game_clone.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1908:48 [INFO] [stdout] | [INFO] [stdout] 1908 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1909:49 [INFO] [stdout] | [INFO] [stdout] 1909 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1913:44 [INFO] [stdout] | [INFO] [stdout] 1913 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1914:45 [INFO] [stdout] | [INFO] [stdout] 1914 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1917:44 [INFO] [stdout] | [INFO] [stdout] 1917 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1918:45 [INFO] [stdout] | [INFO] [stdout] 1918 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1924:40 [INFO] [stdout] | [INFO] [stdout] 1924 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1925:41 [INFO] [stdout] | [INFO] [stdout] 1925 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1929:40 [INFO] [stdout] | [INFO] [stdout] 1929 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1930:41 [INFO] [stdout] | [INFO] [stdout] 1930 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1934:38 [INFO] [stdout] | [INFO] [stdout] 1934 | ... for (ID, player) in game_clone.players.iter().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1963:33 [INFO] [stdout] | [INFO] [stdout] 1963 | ... let ID = 0; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1969:41 [INFO] [stdout] | [INFO] [stdout] 1969 | ... 'outer:for (ID, player) in game_clone.players.iter().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1984:48 [INFO] [stdout] | [INFO] [stdout] 1984 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1985:49 [INFO] [stdout] | [INFO] [stdout] 1985 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1990:49 [INFO] [stdout] | [INFO] [stdout] 1990 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:2006:49 [INFO] [stdout] | [INFO] [stdout] 2006 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:2023:48 [INFO] [stdout] | [INFO] [stdout] 2023 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:2024:49 [INFO] [stdout] | [INFO] [stdout] 2024 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:2029:49 [INFO] [stdout] | [INFO] [stdout] 2029 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:2045:49 [INFO] [stdout] | [INFO] [stdout] 2045 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:2086:48 [INFO] [stdout] | [INFO] [stdout] 2086 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:2087:49 [INFO] [stdout] | [INFO] [stdout] 2087 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.29s [INFO] running `Command { std: "docker" "inspect" "8ed52fc3a7c2e77c43e489119c8e311472f353d716a5d4286921ce656e0f9720", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ed52fc3a7c2e77c43e489119c8e311472f353d716a5d4286921ce656e0f9720", kill_on_drop: false }` [INFO] [stdout] 8ed52fc3a7c2e77c43e489119c8e311472f353d716a5d4286921ce656e0f9720 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b06cd6c4ef15466a4e32e57a100ba6980a4f083b183be1539795f7dd504dd2ca [INFO] running `Command { std: "docker" "start" "-a" "b06cd6c4ef15466a4e32e57a100ba6980a4f083b183be1539795f7dd504dd2ca", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StuffType` [INFO] [stdout] --> src/lib.rs:4:39 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::module_bank::{BankManager, StuffType}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `min` [INFO] [stdout] --> src/lib.rs:1029:20 [INFO] [stdout] | [INFO] [stdout] 1029 | use std::cmp::{min, Ordering}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lib.rs:1030:9 [INFO] [stdout] | [INFO] [stdout] 1030 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format` [INFO] [stdout] --> src/lib.rs:1036:29 [INFO] [stdout] | [INFO] [stdout] 1036 | use std::fmt::{Display, format}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PlaceABet_Auto` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:1056:9 [INFO] [stdout] | [INFO] [stdout] 1056 | PlaceABet_Auto, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PlaceAbetAuto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:90:29 [INFO] [stdout] | [INFO] [stdout] 90 | let no_use = basket.insert((*what).clone(), temp_many); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:93:29 [INFO] [stdout] | [INFO] [stdout] 93 | let no_use = basket.remove(what); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:96:29 [INFO] [stdout] | [INFO] [stdout] 96 | let no_use = basket.insert((*what).clone(), now_many); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:116:29 [INFO] [stdout] | [INFO] [stdout] 116 | let no_use = basket.insert((*what).clone(), temp_many); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:119:29 [INFO] [stdout] | [INFO] [stdout] 119 | let no_use = basket.remove(what); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:122:29 [INFO] [stdout] | [INFO] [stdout] 122 | let no_use = basket.insert((*what).clone(), now_many); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 126 | let no_use = basket.remove(what); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `epoch` [INFO] [stdout] --> src/lib.rs:283:17 [INFO] [stdout] | [INFO] [stdout] 283 | for epoch in 0..total_num { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_epoch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:349:25 [INFO] [stdout] | [INFO] [stdout] 349 | let no_use = bank_temp.stuff_in(*stuff, 1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `times` [INFO] [stdout] --> src/lib.rs:455:17 [INFO] [stdout] | [INFO] [stdout] 455 | for times in 0..20 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_times` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `d_value` is never read [INFO] [stdout] --> src/lib.rs:459:25 [INFO] [stdout] | [INFO] [stdout] 459 | let mut d_value = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:458:21 [INFO] [stdout] | [INFO] [stdout] 458 | let mut value = last_player_value; [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: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:757:21 [INFO] [stdout] | [INFO] [stdout] 757 | let no_use = pool.card_pool.stuff_in(&CardType(Card{name:i.to_string(),value:val as i32,color:CardColor::HeiTao}), 1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:758:21 [INFO] [stdout] | [INFO] [stdout] 758 | let no_use = pool.card_pool.stuff_in(&CardType(Card{name:i.to_string(),value:val as i32,color:CardColor::HongTao}),1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:759:21 [INFO] [stdout] | [INFO] [stdout] 759 | let no_use = pool.card_pool.stuff_in(&CardType(Card{name:i.to_string(),value:val as i32,color:CardColor::MeiHua}),1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:760:21 [INFO] [stdout] | [INFO] [stdout] 760 | let no_use = pool.card_pool.stuff_in(&CardType(Card{name:i.to_string(),value:val as i32,color:CardColor::FangKuai}),1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1168:21 [INFO] [stdout] | [INFO] [stdout] 1168 | let mut player = Player::new(name); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ID` [INFO] [stdout] --> src/lib.rs:1193:18 [INFO] [stdout] | [INFO] [stdout] 1193 | for (ID, player) in self.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ID` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ID` [INFO] [stdout] --> src/lib.rs:1315:34 [INFO] [stdout] | [INFO] [stdout] 1315 | ... for (ID, player) in self.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ID` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/lib.rs:1347:33 [INFO] [stdout] | [INFO] [stdout] 1347 | ... for i in 0..player_num_left-2 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/lib.rs:1350:33 [INFO] [stdout] | [INFO] [stdout] 1350 | ... for i in 0..player_num_before_xiaomang { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ID` [INFO] [stdout] --> src/lib.rs:1358:34 [INFO] [stdout] | [INFO] [stdout] 1358 | ... for (ID, player) in self.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ID` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> src/lib.rs:1486:49 [INFO] [stdout] | [INFO] [stdout] 1486 | ... let mut value = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> src/lib.rs:1679:49 [INFO] [stdout] | [INFO] [stdout] 1679 | ... let mut value = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> src/lib.rs:1815:49 [INFO] [stdout] | [INFO] [stdout] 1815 | ... let mut value = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ID` [INFO] [stdout] --> src/lib.rs:1870:42 [INFO] [stdout] | [INFO] [stdout] 1870 | ... for (ID, player) in game_clone.players.iter().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ID` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/lib.rs:1905:42 [INFO] [stdout] | [INFO] [stdout] 1905 | ... for (ID, player) in game_clone.players.iter_mut().enumerate() { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> src/lib.rs:2061:49 [INFO] [stdout] | [INFO] [stdout] 2061 | ... let mut value = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1391:33 [INFO] [stdout] | [INFO] [stdout] 1391 | ... let mut game_clone = self.clone(); [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/lib.rs:1722:33 [INFO] [stdout] | [INFO] [stdout] 1722 | ... let mut game_clone = self.clone(); [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/lib.rs:1868:41 [INFO] [stdout] | [INFO] [stdout] 1868 | ... let mut game_clone = self.clone(); [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/lib.rs:1892:37 [INFO] [stdout] | [INFO] [stdout] 1892 | ... let mut game_clone = self.clone(); [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/lib.rs:1933:37 [INFO] [stdout] | [INFO] [stdout] 1933 | ... let mut game_clone = self.clone(); [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/lib.rs:1968:33 [INFO] [stdout] | [INFO] [stdout] 1968 | ... let mut game_clone = self.clone(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/lib.rs:2158:9 [INFO] [stdout] | [INFO] [stdout] 2158 | for i in 0..100 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_card` is never used [INFO] [stdout] --> src/lib.rs:2155:4 [INFO] [stdout] | [INFO] [stdout] 2155 | fn test_card() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `GeneralType` and `CardType` are never constructed [INFO] [stdout] --> src/lib.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum StuffType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 21 | GeneralType(&'static str,i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 22 | CardType(Card), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StuffType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `stuff_transfer` is never used [INFO] [stdout] --> src/lib.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub trait BankManager{ [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 35 | fn stuff_transfer(&mut self, what:&T, how_many:U, destination:&mut Self) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `read_random_item`, `stuff_clear`, and `collect_stuff` are never used [INFO] [stdout] --> src/lib.rs:228:16 [INFO] [stdout] | [INFO] [stdout] 227 | impl MyBank { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 228 | pub fn new() -> MyBank { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | pub fn read_random_item(&self) -> &StuffType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub fn stuff_clear(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 262 | pub fn collect_stuff(&mut self, value:i32) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/lib.rs:408:16 [INFO] [stdout] | [INFO] [stdout] 406 | impl Player { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 407 | /// 下注 [INFO] [stdout] 408 | pub fn place_a_bet(&mut self, bet:&Vec<(&StuffType,i32)>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 412 | pub fn place_a_bet_with_value(&mut self, value:i32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 446 | pub fn place_a_bet_with_last_value(&mut self, last_player_value:i32, max_bet_value:i32, min_value_unit:i32) -> Result, order:Ordering ,value:i32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 546 | pub fn initial_my_owned_bank(&mut self, initial:&Vec<(&StuffType, i32)>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 550 | pub fn clear_my_cards(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 554 | pub fn clear_my_bet_bank(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 558 | pub fn get_bets_back(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 565 | pub fn send_bets_to_pool(&mut self, to:&mut CashPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 571 | pub fn send_owned_to_pool(&mut self, to:&mut CashPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 577 | pub fn get_bets_from_pool(&mut self, from:&mut CashPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 583 | pub fn get_two_cards(&mut self, from:&mut CardPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 597 | pub fn send_cards_back(&mut self, to:&mut CardPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 603 | pub fn get_cards_max_value_and_category(&self, five_cards:&FiveCards) -> (i32, FiveCardsCategory) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/lib.rs:644:16 [INFO] [stdout] | [INFO] [stdout] 643 | impl Player { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 644 | pub fn new(name:&str) -> Player { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `clear_cash_pool` are never used [INFO] [stdout] --> src/lib.rs:658:16 [INFO] [stdout] | [INFO] [stdout] 657 | impl CashPool { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 658 | pub fn new() -> CashPool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 664 | pub fn clear_cash_pool(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Normal`, `DaMang`, `XiaoMang`, `PlaceBet`, `GiveUp`, and `Quit` are never constructed [INFO] [stdout] --> src/lib.rs:671:9 [INFO] [stdout] | [INFO] [stdout] 670 | pub enum Role { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 671 | Normal, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 672 | DaMang(i32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 673 | XiaoMang(i32), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 674 | PlaceBet, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 675 | GiveUp, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 676 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Role` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `HeiTao`, `HongTao`, `MeiHua`, and `FangKuai` are never constructed [INFO] [stdout] --> src/lib.rs:743:9 [INFO] [stdout] | [INFO] [stdout] 742 | pub enum CardColor { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 743 | HeiTao, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 744 | HongTao, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 745 | MeiHua, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 746 | FangKuai, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CardColor` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CARD_GROUP` is never used [INFO] [stdout] --> src/lib.rs:749:11 [INFO] [stdout] | [INFO] [stdout] 749 | const CARD_GROUP:[&str;13] = ["2","3","4","5","6","7","8","9","10","J","Q","K","A"]; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `reset_card_pool` are never used [INFO] [stdout] --> src/lib.rs:752:16 [INFO] [stdout] | [INFO] [stdout] 751 | impl CardPool { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 752 | pub fn new() -> CardPool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 765 | pub fn reset_card_pool(&self) -> CardPool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `clear_five_cards`, `get_five_cards`, and `send_cards_back` are never used [INFO] [stdout] --> src/lib.rs:771:16 [INFO] [stdout] | [INFO] [stdout] 770 | impl FiveCards { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 771 | pub fn new() -> FiveCards { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 777 | pub fn clear_five_cards(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 781 | pub fn get_five_cards(&mut self, from:&mut CardPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 798 | pub fn send_cards_back(&mut self, to:&mut CardPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/lib.rs:806:9 [INFO] [stdout] | [INFO] [stdout] 805 | pub enum FiveCardsCategory { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 806 | RoyalFlush, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 807 | StraightFlush, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 808 | FourOfAKind, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 809 | FullHouse, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 810 | Flush, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 811 | Straight, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 812 | ThreeOfAKind, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 813 | TwoPairs, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 814 | Pair, [INFO] [stdout] | ^^^^ [INFO] [stdout] 815 | HighCard, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_five_cards_value` is never used [INFO] [stdout] --> src/lib.rs:818:12 [INFO] [stdout] | [INFO] [stdout] 818 | pub fn get_five_cards_value(five_cards:&Vec<&Card>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_five_cards_category` is never used [INFO] [stdout] --> src/lib.rs:840:12 [INFO] [stdout] | [INFO] [stdout] 840 | pub fn get_five_cards_category(five_cards:&Vec<&Card>) -> FiveCardsCategory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_pair` is never used [INFO] [stdout] --> src/lib.rs:955:8 [INFO] [stdout] | [INFO] [stdout] 955 | fn is_pair(card1:&Card, card2:&Card) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_same_color` is never used [INFO] [stdout] --> src/lib.rs:964:8 [INFO] [stdout] | [INFO] [stdout] 964 | fn is_same_color(card1:&Card, card2:&Card) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_near` is never used [INFO] [stdout] --> src/lib.rs:973:8 [INFO] [stdout] | [INFO] [stdout] 973 | fn is_near(card1:&Card, card2:&Card) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `last_XiaoMang_ID` is never read [INFO] [stdout] --> src/lib.rs:1046:13 [INFO] [stdout] | [INFO] [stdout] 1040 | pub struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1046 | pub last_XiaoMang_ID: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Game` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/lib.rs:1051:9 [INFO] [stdout] | [INFO] [stdout] 1050 | pub enum MyEvent<'a> { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 1051 | AddBot { num: usize }, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 1052 | ResetGame { assets: &'a Vec<(&'a StuffType, i32)> }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 1053 | StartNextGame, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 1054 | PickCards, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 1055 | PlaceABet { bet: &'a Vec<(&'a StuffType, i32)> }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 1056 | PlaceABet_Auto, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 1057 | ConfirmBalance, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 1058 | GiveUp, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/lib.rs:1063:9 [INFO] [stdout] | [INFO] [stdout] 1062 | pub enum GameStatus { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 1063 | Setting, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 1064 | CardsPicking, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 1065 | BetPlacing1, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 1066 | BetPlacing2, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 1067 | BetPlacing3, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 1068 | BetPlacing4, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 1069 | Balancing, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameStatus` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_PLAYER_NUM` is never used [INFO] [stdout] --> src/lib.rs:1072:11 [INFO] [stdout] | [INFO] [stdout] 1072 | const MAX_PLAYER_NUM: usize = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PLAYER_NAME` is never used [INFO] [stdout] --> src/lib.rs:1073:11 [INFO] [stdout] | [INFO] [stdout] 1073 | const PLAYER_NAME: [&str; MAX_PLAYER_NUM] = ["ME", "Alice", "Bob", "Cara", "David", "Ederson", "Ford", "Gavin", "Harry", "Ian"]; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_min_value_unit`, `add_a_player`, `init_game`, and `receive_my_event` are never used [INFO] [stdout] --> src/lib.rs:1076:16 [INFO] [stdout] | [INFO] [stdout] 1075 | impl Game { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 1076 | pub fn new() -> Game { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 1092 | pub fn get_min_value_unit(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1166 | pub fn add_a_player(&mut self, name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1176 | pub fn init_game(&mut self, initial: &Vec<(&StuffType, i32)>) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1219 | pub fn receive_my_event(&mut self, event: MyEvent) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `TexasPoker` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `texas_poker` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:2164:16 [INFO] [stdout] | [INFO] [stdout] 2164 | Ok(T) => println!("{}", T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:2165:17 [INFO] [stdout] | [INFO] [stdout] 2165 | Err(E) => println!("{}", E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:68:20 [INFO] [stdout] | [INFO] [stdout] 68 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T1` should have a snake case name [INFO] [stdout] --> src/lib.rs:70:28 [INFO] [stdout] | [INFO] [stdout] 70 | Ok(T1) => Ok(T + &T1), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `t1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:71:29 [INFO] [stdout] | [INFO] [stdout] 71 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T1` should have a snake case name [INFO] [stdout] --> src/lib.rs:73:36 [INFO] [stdout] | [INFO] [stdout] 73 | ... Ok(T1) => Err(E + &T1 + "The stuff succeeds to get back!"), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `t1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E1` should have a snake case name [INFO] [stdout] --> src/lib.rs:74:37 [INFO] [stdout] | [INFO] [stdout] 74 | ... Err(E1) => Err(E + &E1 + "The stuff fails to get back!"), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `e1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:79:21 [INFO] [stdout] | [INFO] [stdout] 79 | Err(E) => Err(E) [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:142:20 [INFO] [stdout] | [INFO] [stdout] 142 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T1` should have a snake case name [INFO] [stdout] --> src/lib.rs:144:28 [INFO] [stdout] | [INFO] [stdout] 144 | Ok(T1) => Ok(T+&T1), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `t1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:145:29 [INFO] [stdout] | [INFO] [stdout] 145 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T1` should have a snake case name [INFO] [stdout] --> src/lib.rs:147:36 [INFO] [stdout] | [INFO] [stdout] 147 | ... Ok(T1) => Err(E + &T1), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `t1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E1` should have a snake case name [INFO] [stdout] --> src/lib.rs:148:37 [INFO] [stdout] | [INFO] [stdout] 148 | ... Err(E1) => Err(E + &E1), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `e1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:153:21 [INFO] [stdout] | [INFO] [stdout] 153 | Err(E) => Err(E) [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:164:29 [INFO] [stdout] | [INFO] [stdout] 164 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E1` should have a snake case name [INFO] [stdout] --> src/lib.rs:166:37 [INFO] [stdout] | [INFO] [stdout] 166 | ... Err(E1) => Err(t_stack + &E + &E1 + "The stuff fails to send back!"), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `e1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:167:36 [INFO] [stdout] | [INFO] [stdout] 167 | ... Ok(T) => Err(t_stack + &E + &T + "The stuff succeeds to send back!") [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:170:28 [INFO] [stdout] | [INFO] [stdout] 170 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:181:29 [INFO] [stdout] | [INFO] [stdout] 181 | Err(E) => return Err(t_stack + &E + "The stuff in is reserved!"), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:182:28 [INFO] [stdout] | [INFO] [stdout] 182 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:198:29 [INFO] [stdout] | [INFO] [stdout] 198 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E1` should have a snake case name [INFO] [stdout] --> src/lib.rs:200:37 [INFO] [stdout] | [INFO] [stdout] 200 | ... Err(E1) => Err(t_stack + &E + &E1 + "The stuff fails to get back!"), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `e1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:201:36 [INFO] [stdout] | [INFO] [stdout] 201 | ... Ok(T) => Err(t_stack + &E + &T + "The stuff succeeds to get back!") [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:204:28 [INFO] [stdout] | [INFO] [stdout] 204 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:215:29 [INFO] [stdout] | [INFO] [stdout] 215 | Err(E) => return Err(t_stack + &E + "The stuff out is lost!"), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:216:28 [INFO] [stdout] | [INFO] [stdout] 216 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:416:20 [INFO] [stdout] | [INFO] [stdout] 416 | Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:417:21 [INFO] [stdout] | [INFO] [stdout] 417 | Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:427:28 [INFO] [stdout] | [INFO] [stdout] 427 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:432:29 [INFO] [stdout] | [INFO] [stdout] 432 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:437:21 [INFO] [stdout] | [INFO] [stdout] 437 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:484:24 [INFO] [stdout] | [INFO] [stdout] 484 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:489:25 [INFO] [stdout] | [INFO] [stdout] 489 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:490:25 [INFO] [stdout] | [INFO] [stdout] 490 | self.place_a_bet(&bet_bank_backup); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 490 | let _ = self.place_a_bet(&bet_bank_backup); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:504:20 [INFO] [stdout] | [INFO] [stdout] 504 | Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:505:21 [INFO] [stdout] | [INFO] [stdout] 505 | Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:508:20 [INFO] [stdout] | [INFO] [stdout] 508 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:531:36 [INFO] [stdout] | [INFO] [stdout] 531 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:532:37 [INFO] [stdout] | [INFO] [stdout] 532 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:538:21 [INFO] [stdout] | [INFO] [stdout] 538 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:591:24 [INFO] [stdout] | [INFO] [stdout] 591 | Ok(T) => return Ok(T + &e_stack), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:592:25 [INFO] [stdout] | [INFO] [stdout] 592 | Err(E) => e_stack.push_str(&(E)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:792:24 [INFO] [stdout] | [INFO] [stdout] 792 | Ok(T) => return Ok(e_stack+&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:793:25 [INFO] [stdout] | [INFO] [stdout] 793 | Err(E) => e_stack.push_str(&(E)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_RoyalFlush` should have a snake case name [INFO] [stdout] --> src/lib.rs:872:17 [INFO] [stdout] | [INFO] [stdout] 872 | let mut is_RoyalFlush:bool = sort_cards[4].value>=10; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `is_royal_flush` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_StraightFlush` should have a snake case name [INFO] [stdout] --> src/lib.rs:881:17 [INFO] [stdout] | [INFO] [stdout] 881 | let mut is_StraightFlush:bool = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `is_straight_flush` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_FourOfAKind` should have a snake case name [INFO] [stdout] --> src/lib.rs:890:17 [INFO] [stdout] | [INFO] [stdout] 890 | let mut is_FourOfAKind:bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `is_four_of_akind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_FullHouse` should have a snake case name [INFO] [stdout] --> src/lib.rs:898:17 [INFO] [stdout] | [INFO] [stdout] 898 | let mut is_FullHouse:bool = false; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `is_full_house` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_Flush` should have a snake case name [INFO] [stdout] --> src/lib.rs:906:17 [INFO] [stdout] | [INFO] [stdout] 906 | let mut is_Flush:bool = true; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `is_flush` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_Straight` should have a snake case name [INFO] [stdout] --> src/lib.rs:915:17 [INFO] [stdout] | [INFO] [stdout] 915 | let mut is_Straight:bool = true; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `is_straight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_ThreeOfAKind` should have a snake case name [INFO] [stdout] --> src/lib.rs:924:17 [INFO] [stdout] | [INFO] [stdout] 924 | let mut is_ThreeOfAKind:bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `is_three_of_akind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_TwoPairs` should have a snake case name [INFO] [stdout] --> src/lib.rs:933:17 [INFO] [stdout] | [INFO] [stdout] 933 | let mut is_TwoPairs:bool = false; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_two_pairs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_Pair` should have a snake case name [INFO] [stdout] --> src/lib.rs:942:17 [INFO] [stdout] | [INFO] [stdout] 942 | let mut is_Pair:bool = false; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_pair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `last_XiaoMang_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1046:13 [INFO] [stdout] | [INFO] [stdout] 1046 | pub last_XiaoMang_ID: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_xiao_mang_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1087:20 [INFO] [stdout] | [INFO] [stdout] 1087 | Ok(T) => println!("{}", T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1088:21 [INFO] [stdout] | [INFO] [stdout] 1088 | Err(E) => println!("{}", E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_XiaoMang_value` should have a snake case name [INFO] [stdout] --> src/lib.rs:1109:16 [INFO] [stdout] | [INFO] [stdout] 1109 | pub fn get_XiaoMang_value(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_xiao_mang_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_DaMang_value` should have a snake case name [INFO] [stdout] --> src/lib.rs:1128:16 [INFO] [stdout] | [INFO] [stdout] 1128 | pub fn get_DaMang_value(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_da_mang_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1179:20 [INFO] [stdout] | [INFO] [stdout] 1179 | Ok(T) => te_stack.push_str(&(T)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1180:21 [INFO] [stdout] | [INFO] [stdout] 1180 | Err(E) => te_stack.push_str(&(E)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1183:20 [INFO] [stdout] | [INFO] [stdout] 1183 | Ok(T) => te_stack.push_str(&(T)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1184:21 [INFO] [stdout] | [INFO] [stdout] 1184 | Err(E) => te_stack.push_str(&(E)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1193:18 [INFO] [stdout] | [INFO] [stdout] 1193 | for (ID, player) in self.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1195:24 [INFO] [stdout] | [INFO] [stdout] 1195 | Ok(T) => te_stack.push_str(&(T)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1196:25 [INFO] [stdout] | [INFO] [stdout] 1196 | Err(E) => te_stack.push_str(&(E)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1199:24 [INFO] [stdout] | [INFO] [stdout] 1199 | Ok(T) => te_stack.push_str(&(T)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1200:25 [INFO] [stdout] | [INFO] [stdout] 1200 | Err(E) => te_stack.push_str(&(E)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1203:24 [INFO] [stdout] | [INFO] [stdout] 1203 | Ok(T) => te_stack.push_str(&(T)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1204:25 [INFO] [stdout] | [INFO] [stdout] 1204 | Err(E) => te_stack.push_str(&(E)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1230:40 [INFO] [stdout] | [INFO] [stdout] 1230 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1231:41 [INFO] [stdout] | [INFO] [stdout] 1231 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1314:37 [INFO] [stdout] | [INFO] [stdout] 1314 | ... let mut ID:usize = self.last_XiaoMang_ID as usize; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1315:34 [INFO] [stdout] | [INFO] [stdout] 1315 | ... for (ID, player) in self.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1336:34 [INFO] [stdout] | [INFO] [stdout] 1336 | ... for (ID, player) in self.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1351:45 [INFO] [stdout] | [INFO] [stdout] 1351 | ... if let Some(T) = stack.pop() { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1358:34 [INFO] [stdout] | [INFO] [stdout] 1358 | ... for (ID, player) in self.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1360:49 [INFO] [stdout] | [INFO] [stdout] 1360 | ... if let Some(T) = stack.pop() { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1381:40 [INFO] [stdout] | [INFO] [stdout] 1381 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1382:41 [INFO] [stdout] | [INFO] [stdout] 1382 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1387:36 [INFO] [stdout] | [INFO] [stdout] 1387 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1388:37 [INFO] [stdout] | [INFO] [stdout] 1388 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1392:41 [INFO] [stdout] | [INFO] [stdout] 1392 | ... 'outer:for (ID, player) in game_clone.players.iter().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1401:48 [INFO] [stdout] | [INFO] [stdout] 1401 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1402:49 [INFO] [stdout] | [INFO] [stdout] 1402 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1407:49 [INFO] [stdout] | [INFO] [stdout] 1407 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1423:49 [INFO] [stdout] | [INFO] [stdout] 1423 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1444:48 [INFO] [stdout] | [INFO] [stdout] 1444 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1445:49 [INFO] [stdout] | [INFO] [stdout] 1445 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1450:49 [INFO] [stdout] | [INFO] [stdout] 1450 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1466:49 [INFO] [stdout] | [INFO] [stdout] 1466 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1511:48 [INFO] [stdout] | [INFO] [stdout] 1511 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1512:49 [INFO] [stdout] | [INFO] [stdout] 1512 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1556:33 [INFO] [stdout] | [INFO] [stdout] 1556 | ... let ID = 0; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1566:48 [INFO] [stdout] | [INFO] [stdout] 1566 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1567:49 [INFO] [stdout] | [INFO] [stdout] 1567 | ... Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:1568:49 [INFO] [stdout] | [INFO] [stdout] 1568 | ... self.players[ID].place_a_bet(&bet_bank_backup); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1568 | let _ = self.players[ID].place_a_bet(&bet_bank_backup); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1583:49 [INFO] [stdout] | [INFO] [stdout] 1583 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1599:49 [INFO] [stdout] | [INFO] [stdout] 1599 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1623:48 [INFO] [stdout] | [INFO] [stdout] 1623 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1624:49 [INFO] [stdout] | [INFO] [stdout] 1624 | ... Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:1625:49 [INFO] [stdout] | [INFO] [stdout] 1625 | ... self.players[ID].place_a_bet(&bet_bank_backup); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1625 | let _ = self.players[ID].place_a_bet(&bet_bank_backup); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1640:49 [INFO] [stdout] | [INFO] [stdout] 1640 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1656:49 [INFO] [stdout] | [INFO] [stdout] 1656 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1703:48 [INFO] [stdout] | [INFO] [stdout] 1703 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1704:49 [INFO] [stdout] | [INFO] [stdout] 1704 | ... Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:1705:49 [INFO] [stdout] | [INFO] [stdout] 1705 | ... self.players[ID].place_a_bet(&bet_bank_backup); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1705 | let _ = self.players[ID].place_a_bet(&bet_bank_backup); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1723:41 [INFO] [stdout] | [INFO] [stdout] 1723 | ... 'outer:for (ID, player) in game_clone.players.iter().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1738:48 [INFO] [stdout] | [INFO] [stdout] 1738 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1739:49 [INFO] [stdout] | [INFO] [stdout] 1739 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1744:49 [INFO] [stdout] | [INFO] [stdout] 1744 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1760:49 [INFO] [stdout] | [INFO] [stdout] 1760 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1777:48 [INFO] [stdout] | [INFO] [stdout] 1777 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1778:49 [INFO] [stdout] | [INFO] [stdout] 1778 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1783:49 [INFO] [stdout] | [INFO] [stdout] 1783 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1799:49 [INFO] [stdout] | [INFO] [stdout] 1799 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1840:48 [INFO] [stdout] | [INFO] [stdout] 1840 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1841:49 [INFO] [stdout] | [INFO] [stdout] 1841 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1870:42 [INFO] [stdout] | [INFO] [stdout] 1870 | ... for (ID, player) in game_clone.players.iter().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `winner_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1888:41 [INFO] [stdout] | [INFO] [stdout] 1888 | ... let mut winner_ID = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `winner_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1893:38 [INFO] [stdout] | [INFO] [stdout] 1893 | ... for (ID, player) in game_clone.players.iter().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1905:38 [INFO] [stdout] | [INFO] [stdout] 1905 | ... for (ID, player) in game_clone.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1908:48 [INFO] [stdout] | [INFO] [stdout] 1908 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1909:49 [INFO] [stdout] | [INFO] [stdout] 1909 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1913:44 [INFO] [stdout] | [INFO] [stdout] 1913 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1914:45 [INFO] [stdout] | [INFO] [stdout] 1914 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1917:44 [INFO] [stdout] | [INFO] [stdout] 1917 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1918:45 [INFO] [stdout] | [INFO] [stdout] 1918 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1924:40 [INFO] [stdout] | [INFO] [stdout] 1924 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1925:41 [INFO] [stdout] | [INFO] [stdout] 1925 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1929:40 [INFO] [stdout] | [INFO] [stdout] 1929 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1930:41 [INFO] [stdout] | [INFO] [stdout] 1930 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1934:38 [INFO] [stdout] | [INFO] [stdout] 1934 | ... for (ID, player) in game_clone.players.iter().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1963:33 [INFO] [stdout] | [INFO] [stdout] 1963 | ... let ID = 0; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1969:41 [INFO] [stdout] | [INFO] [stdout] 1969 | ... 'outer:for (ID, player) in game_clone.players.iter().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1984:48 [INFO] [stdout] | [INFO] [stdout] 1984 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1985:49 [INFO] [stdout] | [INFO] [stdout] 1985 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1990:49 [INFO] [stdout] | [INFO] [stdout] 1990 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:2006:49 [INFO] [stdout] | [INFO] [stdout] 2006 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:2023:48 [INFO] [stdout] | [INFO] [stdout] 2023 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:2024:49 [INFO] [stdout] | [INFO] [stdout] 2024 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:2029:49 [INFO] [stdout] | [INFO] [stdout] 2029 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:2045:49 [INFO] [stdout] | [INFO] [stdout] 2045 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:2086:48 [INFO] [stdout] | [INFO] [stdout] 2086 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:2087:49 [INFO] [stdout] | [INFO] [stdout] 2087 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling TexasPoker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `min` [INFO] [stdout] --> src/lib.rs:1029:20 [INFO] [stdout] | [INFO] [stdout] 1029 | use std::cmp::{min, Ordering}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/lib.rs:1030:9 [INFO] [stdout] | [INFO] [stdout] 1030 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `format` [INFO] [stdout] --> src/lib.rs:1036:29 [INFO] [stdout] | [INFO] [stdout] 1036 | use std::fmt::{Display, format}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PlaceABet_Auto` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:1056:9 [INFO] [stdout] | [INFO] [stdout] 1056 | PlaceABet_Auto, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `PlaceAbetAuto` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:90:29 [INFO] [stdout] | [INFO] [stdout] 90 | let no_use = basket.insert((*what).clone(), temp_many); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:93:29 [INFO] [stdout] | [INFO] [stdout] 93 | let no_use = basket.remove(what); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:96:29 [INFO] [stdout] | [INFO] [stdout] 96 | let no_use = basket.insert((*what).clone(), now_many); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:116:29 [INFO] [stdout] | [INFO] [stdout] 116 | let no_use = basket.insert((*what).clone(), temp_many); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:119:29 [INFO] [stdout] | [INFO] [stdout] 119 | let no_use = basket.remove(what); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:122:29 [INFO] [stdout] | [INFO] [stdout] 122 | let no_use = basket.insert((*what).clone(), now_many); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 126 | let no_use = basket.remove(what); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `epoch` [INFO] [stdout] --> src/lib.rs:283:17 [INFO] [stdout] | [INFO] [stdout] 283 | for epoch in 0..total_num { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_epoch` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:349:25 [INFO] [stdout] | [INFO] [stdout] 349 | let no_use = bank_temp.stuff_in(*stuff, 1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `times` [INFO] [stdout] --> src/lib.rs:455:17 [INFO] [stdout] | [INFO] [stdout] 455 | for times in 0..20 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_times` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `d_value` is never read [INFO] [stdout] --> src/lib.rs:459:25 [INFO] [stdout] | [INFO] [stdout] 459 | let mut d_value = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:458:21 [INFO] [stdout] | [INFO] [stdout] 458 | let mut value = last_player_value; [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: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:757:21 [INFO] [stdout] | [INFO] [stdout] 757 | let no_use = pool.card_pool.stuff_in(&CardType(Card{name:i.to_string(),value:val as i32,color:CardColor::HeiTao}), 1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:758:21 [INFO] [stdout] | [INFO] [stdout] 758 | let no_use = pool.card_pool.stuff_in(&CardType(Card{name:i.to_string(),value:val as i32,color:CardColor::HongTao}),1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:759:21 [INFO] [stdout] | [INFO] [stdout] 759 | let no_use = pool.card_pool.stuff_in(&CardType(Card{name:i.to_string(),value:val as i32,color:CardColor::MeiHua}),1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:760:21 [INFO] [stdout] | [INFO] [stdout] 760 | let no_use = pool.card_pool.stuff_in(&CardType(Card{name:i.to_string(),value:val as i32,color:CardColor::FangKuai}),1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1168:21 [INFO] [stdout] | [INFO] [stdout] 1168 | let mut player = Player::new(name); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ID` [INFO] [stdout] --> src/lib.rs:1193:18 [INFO] [stdout] | [INFO] [stdout] 1193 | for (ID, player) in self.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ID` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ID` [INFO] [stdout] --> src/lib.rs:1315:34 [INFO] [stdout] | [INFO] [stdout] 1315 | ... for (ID, player) in self.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ID` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/lib.rs:1347:33 [INFO] [stdout] | [INFO] [stdout] 1347 | ... for i in 0..player_num_left-2 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/lib.rs:1350:33 [INFO] [stdout] | [INFO] [stdout] 1350 | ... for i in 0..player_num_before_xiaomang { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ID` [INFO] [stdout] --> src/lib.rs:1358:34 [INFO] [stdout] | [INFO] [stdout] 1358 | ... for (ID, player) in self.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ID` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> src/lib.rs:1486:49 [INFO] [stdout] | [INFO] [stdout] 1486 | ... let mut value = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> src/lib.rs:1679:49 [INFO] [stdout] | [INFO] [stdout] 1679 | ... let mut value = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> src/lib.rs:1815:49 [INFO] [stdout] | [INFO] [stdout] 1815 | ... let mut value = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ID` [INFO] [stdout] --> src/lib.rs:1870:42 [INFO] [stdout] | [INFO] [stdout] 1870 | ... for (ID, player) in game_clone.players.iter().enumerate() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ID` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> src/lib.rs:1905:42 [INFO] [stdout] | [INFO] [stdout] 1905 | ... for (ID, player) in game_clone.players.iter_mut().enumerate() { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `value` is never read [INFO] [stdout] --> src/lib.rs:2061:49 [INFO] [stdout] | [INFO] [stdout] 2061 | ... let mut value = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1391:33 [INFO] [stdout] | [INFO] [stdout] 1391 | ... let mut game_clone = self.clone(); [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/lib.rs:1722:33 [INFO] [stdout] | [INFO] [stdout] 1722 | ... let mut game_clone = self.clone(); [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/lib.rs:1868:41 [INFO] [stdout] | [INFO] [stdout] 1868 | ... let mut game_clone = self.clone(); [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/lib.rs:1892:37 [INFO] [stdout] | [INFO] [stdout] 1892 | ... let mut game_clone = self.clone(); [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/lib.rs:1933:37 [INFO] [stdout] | [INFO] [stdout] 1933 | ... let mut game_clone = self.clone(); [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/lib.rs:1968:33 [INFO] [stdout] | [INFO] [stdout] 1968 | ... let mut game_clone = self.clone(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/lib.rs:2158:9 [INFO] [stdout] | [INFO] [stdout] 2158 | for i in 0..100 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/lib.rs:2195:9 [INFO] [stdout] | [INFO] [stdout] 2195 | for k in 0..10 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/lib.rs:2208:13 [INFO] [stdout] | [INFO] [stdout] 2208 | for i in 0..4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_card` is never used [INFO] [stdout] --> src/lib.rs:2155:4 [INFO] [stdout] | [INFO] [stdout] 2155 | fn test_card() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PlaceABet` and `GiveUp` are never constructed [INFO] [stdout] --> src/lib.rs:1055:9 [INFO] [stdout] | [INFO] [stdout] 1050 | pub enum MyEvent<'a> { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 1055 | PlaceABet { bet: &'a Vec<(&'a StuffType, i32)> }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1058 | GiveUp, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:2164:16 [INFO] [stdout] | [INFO] [stdout] 2164 | Ok(T) => println!("{}", T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:2165:17 [INFO] [stdout] | [INFO] [stdout] 2165 | Err(E) => println!("{}", E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:2178:12 [INFO] [stdout] | [INFO] [stdout] 2178 | Ok(T) => println!("{}",T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:2179:13 [INFO] [stdout] | [INFO] [stdout] 2179 | Err(E) => println!("{}",E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:2190:12 [INFO] [stdout] | [INFO] [stdout] 2190 | Ok(T) => println!("{}",T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:2191:13 [INFO] [stdout] | [INFO] [stdout] 2191 | Err(E) => println!("{}",E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:2197:16 [INFO] [stdout] | [INFO] [stdout] 2197 | Ok(T) => println!("{}",T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:2198:17 [INFO] [stdout] | [INFO] [stdout] 2198 | Err(E) => println!("{}",E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:2203:16 [INFO] [stdout] | [INFO] [stdout] 2203 | Ok(T) => println!("{}",T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:2204:17 [INFO] [stdout] | [INFO] [stdout] 2204 | Err(E) => println!("{}",E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:2210:20 [INFO] [stdout] | [INFO] [stdout] 2210 | Ok(T) => println!("{}",T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:2211:21 [INFO] [stdout] | [INFO] [stdout] 2211 | Err(E) => println!("{}",E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:2217:16 [INFO] [stdout] | [INFO] [stdout] 2217 | Ok(T) => println!("{}",T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:2218:17 [INFO] [stdout] | [INFO] [stdout] 2218 | Err(E) => println!("{}",E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:68:20 [INFO] [stdout] | [INFO] [stdout] 68 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T1` should have a snake case name [INFO] [stdout] --> src/lib.rs:70:28 [INFO] [stdout] | [INFO] [stdout] 70 | Ok(T1) => Ok(T + &T1), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `t1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:71:29 [INFO] [stdout] | [INFO] [stdout] 71 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T1` should have a snake case name [INFO] [stdout] --> src/lib.rs:73:36 [INFO] [stdout] | [INFO] [stdout] 73 | ... Ok(T1) => Err(E + &T1 + "The stuff succeeds to get back!"), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `t1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E1` should have a snake case name [INFO] [stdout] --> src/lib.rs:74:37 [INFO] [stdout] | [INFO] [stdout] 74 | ... Err(E1) => Err(E + &E1 + "The stuff fails to get back!"), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `e1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:79:21 [INFO] [stdout] | [INFO] [stdout] 79 | Err(E) => Err(E) [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:142:20 [INFO] [stdout] | [INFO] [stdout] 142 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T1` should have a snake case name [INFO] [stdout] --> src/lib.rs:144:28 [INFO] [stdout] | [INFO] [stdout] 144 | Ok(T1) => Ok(T+&T1), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `t1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:145:29 [INFO] [stdout] | [INFO] [stdout] 145 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T1` should have a snake case name [INFO] [stdout] --> src/lib.rs:147:36 [INFO] [stdout] | [INFO] [stdout] 147 | ... Ok(T1) => Err(E + &T1), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `t1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E1` should have a snake case name [INFO] [stdout] --> src/lib.rs:148:37 [INFO] [stdout] | [INFO] [stdout] 148 | ... Err(E1) => Err(E + &E1), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `e1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:153:21 [INFO] [stdout] | [INFO] [stdout] 153 | Err(E) => Err(E) [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:164:29 [INFO] [stdout] | [INFO] [stdout] 164 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E1` should have a snake case name [INFO] [stdout] --> src/lib.rs:166:37 [INFO] [stdout] | [INFO] [stdout] 166 | ... Err(E1) => Err(t_stack + &E + &E1 + "The stuff fails to send back!"), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `e1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:167:36 [INFO] [stdout] | [INFO] [stdout] 167 | ... Ok(T) => Err(t_stack + &E + &T + "The stuff succeeds to send back!") [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:170:28 [INFO] [stdout] | [INFO] [stdout] 170 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:181:29 [INFO] [stdout] | [INFO] [stdout] 181 | Err(E) => return Err(t_stack + &E + "The stuff in is reserved!"), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:182:28 [INFO] [stdout] | [INFO] [stdout] 182 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:198:29 [INFO] [stdout] | [INFO] [stdout] 198 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E1` should have a snake case name [INFO] [stdout] --> src/lib.rs:200:37 [INFO] [stdout] | [INFO] [stdout] 200 | ... Err(E1) => Err(t_stack + &E + &E1 + "The stuff fails to get back!"), [INFO] [stdout] | ^^ help: convert the identifier to snake case: `e1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:201:36 [INFO] [stdout] | [INFO] [stdout] 201 | ... Ok(T) => Err(t_stack + &E + &T + "The stuff succeeds to get back!") [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:204:28 [INFO] [stdout] | [INFO] [stdout] 204 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:215:29 [INFO] [stdout] | [INFO] [stdout] 215 | Err(E) => return Err(t_stack + &E + "The stuff out is lost!"), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:216:28 [INFO] [stdout] | [INFO] [stdout] 216 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:416:20 [INFO] [stdout] | [INFO] [stdout] 416 | Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:417:21 [INFO] [stdout] | [INFO] [stdout] 417 | Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:427:28 [INFO] [stdout] | [INFO] [stdout] 427 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:432:29 [INFO] [stdout] | [INFO] [stdout] 432 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:437:21 [INFO] [stdout] | [INFO] [stdout] 437 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:484:24 [INFO] [stdout] | [INFO] [stdout] 484 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:489:25 [INFO] [stdout] | [INFO] [stdout] 489 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:490:25 [INFO] [stdout] | [INFO] [stdout] 490 | self.place_a_bet(&bet_bank_backup); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 490 | let _ = self.place_a_bet(&bet_bank_backup); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:504:20 [INFO] [stdout] | [INFO] [stdout] 504 | Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:505:21 [INFO] [stdout] | [INFO] [stdout] 505 | Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:508:20 [INFO] [stdout] | [INFO] [stdout] 508 | Ok(T) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:531:36 [INFO] [stdout] | [INFO] [stdout] 531 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:532:37 [INFO] [stdout] | [INFO] [stdout] 532 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:538:21 [INFO] [stdout] | [INFO] [stdout] 538 | Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:591:24 [INFO] [stdout] | [INFO] [stdout] 591 | Ok(T) => return Ok(T + &e_stack), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:592:25 [INFO] [stdout] | [INFO] [stdout] 592 | Err(E) => e_stack.push_str(&(E)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:792:24 [INFO] [stdout] | [INFO] [stdout] 792 | Ok(T) => return Ok(e_stack+&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:793:25 [INFO] [stdout] | [INFO] [stdout] 793 | Err(E) => e_stack.push_str(&(E)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_RoyalFlush` should have a snake case name [INFO] [stdout] --> src/lib.rs:872:17 [INFO] [stdout] | [INFO] [stdout] 872 | let mut is_RoyalFlush:bool = sort_cards[4].value>=10; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `is_royal_flush` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_StraightFlush` should have a snake case name [INFO] [stdout] --> src/lib.rs:881:17 [INFO] [stdout] | [INFO] [stdout] 881 | let mut is_StraightFlush:bool = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `is_straight_flush` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_FourOfAKind` should have a snake case name [INFO] [stdout] --> src/lib.rs:890:17 [INFO] [stdout] | [INFO] [stdout] 890 | let mut is_FourOfAKind:bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `is_four_of_akind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_FullHouse` should have a snake case name [INFO] [stdout] --> src/lib.rs:898:17 [INFO] [stdout] | [INFO] [stdout] 898 | let mut is_FullHouse:bool = false; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `is_full_house` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_Flush` should have a snake case name [INFO] [stdout] --> src/lib.rs:906:17 [INFO] [stdout] | [INFO] [stdout] 906 | let mut is_Flush:bool = true; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `is_flush` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_Straight` should have a snake case name [INFO] [stdout] --> src/lib.rs:915:17 [INFO] [stdout] | [INFO] [stdout] 915 | let mut is_Straight:bool = true; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `is_straight` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_ThreeOfAKind` should have a snake case name [INFO] [stdout] --> src/lib.rs:924:17 [INFO] [stdout] | [INFO] [stdout] 924 | let mut is_ThreeOfAKind:bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `is_three_of_akind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_TwoPairs` should have a snake case name [INFO] [stdout] --> src/lib.rs:933:17 [INFO] [stdout] | [INFO] [stdout] 933 | let mut is_TwoPairs:bool = false; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_two_pairs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `is_Pair` should have a snake case name [INFO] [stdout] --> src/lib.rs:942:17 [INFO] [stdout] | [INFO] [stdout] 942 | let mut is_Pair:bool = false; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `is_pair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `last_XiaoMang_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1046:13 [INFO] [stdout] | [INFO] [stdout] 1046 | pub last_XiaoMang_ID: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_xiao_mang_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1087:20 [INFO] [stdout] | [INFO] [stdout] 1087 | Ok(T) => println!("{}", T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1088:21 [INFO] [stdout] | [INFO] [stdout] 1088 | Err(E) => println!("{}", E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_XiaoMang_value` should have a snake case name [INFO] [stdout] --> src/lib.rs:1109:16 [INFO] [stdout] | [INFO] [stdout] 1109 | pub fn get_XiaoMang_value(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_xiao_mang_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_DaMang_value` should have a snake case name [INFO] [stdout] --> src/lib.rs:1128:16 [INFO] [stdout] | [INFO] [stdout] 1128 | pub fn get_DaMang_value(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_da_mang_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1179:20 [INFO] [stdout] | [INFO] [stdout] 1179 | Ok(T) => te_stack.push_str(&(T)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1180:21 [INFO] [stdout] | [INFO] [stdout] 1180 | Err(E) => te_stack.push_str(&(E)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1183:20 [INFO] [stdout] | [INFO] [stdout] 1183 | Ok(T) => te_stack.push_str(&(T)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1184:21 [INFO] [stdout] | [INFO] [stdout] 1184 | Err(E) => te_stack.push_str(&(E)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1193:18 [INFO] [stdout] | [INFO] [stdout] 1193 | for (ID, player) in self.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1195:24 [INFO] [stdout] | [INFO] [stdout] 1195 | Ok(T) => te_stack.push_str(&(T)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1196:25 [INFO] [stdout] | [INFO] [stdout] 1196 | Err(E) => te_stack.push_str(&(E)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1199:24 [INFO] [stdout] | [INFO] [stdout] 1199 | Ok(T) => te_stack.push_str(&(T)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1200:25 [INFO] [stdout] | [INFO] [stdout] 1200 | Err(E) => te_stack.push_str(&(E)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1203:24 [INFO] [stdout] | [INFO] [stdout] 1203 | Ok(T) => te_stack.push_str(&(T)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1204:25 [INFO] [stdout] | [INFO] [stdout] 1204 | Err(E) => te_stack.push_str(&(E)), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1230:40 [INFO] [stdout] | [INFO] [stdout] 1230 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1231:41 [INFO] [stdout] | [INFO] [stdout] 1231 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1314:37 [INFO] [stdout] | [INFO] [stdout] 1314 | ... let mut ID:usize = self.last_XiaoMang_ID as usize; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1315:34 [INFO] [stdout] | [INFO] [stdout] 1315 | ... for (ID, player) in self.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1336:34 [INFO] [stdout] | [INFO] [stdout] 1336 | ... for (ID, player) in self.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1351:45 [INFO] [stdout] | [INFO] [stdout] 1351 | ... if let Some(T) = stack.pop() { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1358:34 [INFO] [stdout] | [INFO] [stdout] 1358 | ... for (ID, player) in self.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1360:49 [INFO] [stdout] | [INFO] [stdout] 1360 | ... if let Some(T) = stack.pop() { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1381:40 [INFO] [stdout] | [INFO] [stdout] 1381 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1382:41 [INFO] [stdout] | [INFO] [stdout] 1382 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1387:36 [INFO] [stdout] | [INFO] [stdout] 1387 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1388:37 [INFO] [stdout] | [INFO] [stdout] 1388 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1392:41 [INFO] [stdout] | [INFO] [stdout] 1392 | ... 'outer:for (ID, player) in game_clone.players.iter().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1401:48 [INFO] [stdout] | [INFO] [stdout] 1401 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1402:49 [INFO] [stdout] | [INFO] [stdout] 1402 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1407:49 [INFO] [stdout] | [INFO] [stdout] 1407 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1423:49 [INFO] [stdout] | [INFO] [stdout] 1423 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1444:48 [INFO] [stdout] | [INFO] [stdout] 1444 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1445:49 [INFO] [stdout] | [INFO] [stdout] 1445 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1450:49 [INFO] [stdout] | [INFO] [stdout] 1450 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1466:49 [INFO] [stdout] | [INFO] [stdout] 1466 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1511:48 [INFO] [stdout] | [INFO] [stdout] 1511 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1512:49 [INFO] [stdout] | [INFO] [stdout] 1512 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1556:33 [INFO] [stdout] | [INFO] [stdout] 1556 | ... let ID = 0; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1566:48 [INFO] [stdout] | [INFO] [stdout] 1566 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1567:49 [INFO] [stdout] | [INFO] [stdout] 1567 | ... Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:1568:49 [INFO] [stdout] | [INFO] [stdout] 1568 | ... self.players[ID].place_a_bet(&bet_bank_backup); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1568 | let _ = self.players[ID].place_a_bet(&bet_bank_backup); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1583:49 [INFO] [stdout] | [INFO] [stdout] 1583 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1599:49 [INFO] [stdout] | [INFO] [stdout] 1599 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1623:48 [INFO] [stdout] | [INFO] [stdout] 1623 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1624:49 [INFO] [stdout] | [INFO] [stdout] 1624 | ... Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:1625:49 [INFO] [stdout] | [INFO] [stdout] 1625 | ... self.players[ID].place_a_bet(&bet_bank_backup); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1625 | let _ = self.players[ID].place_a_bet(&bet_bank_backup); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1640:49 [INFO] [stdout] | [INFO] [stdout] 1640 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1656:49 [INFO] [stdout] | [INFO] [stdout] 1656 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1703:48 [INFO] [stdout] | [INFO] [stdout] 1703 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1704:49 [INFO] [stdout] | [INFO] [stdout] 1704 | ... Err(E) => { [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:1705:49 [INFO] [stdout] | [INFO] [stdout] 1705 | ... self.players[ID].place_a_bet(&bet_bank_backup); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1705 | let _ = self.players[ID].place_a_bet(&bet_bank_backup); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1723:41 [INFO] [stdout] | [INFO] [stdout] 1723 | ... 'outer:for (ID, player) in game_clone.players.iter().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1738:48 [INFO] [stdout] | [INFO] [stdout] 1738 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1739:49 [INFO] [stdout] | [INFO] [stdout] 1739 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1744:49 [INFO] [stdout] | [INFO] [stdout] 1744 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1760:49 [INFO] [stdout] | [INFO] [stdout] 1760 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1777:48 [INFO] [stdout] | [INFO] [stdout] 1777 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1778:49 [INFO] [stdout] | [INFO] [stdout] 1778 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1783:49 [INFO] [stdout] | [INFO] [stdout] 1783 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1799:49 [INFO] [stdout] | [INFO] [stdout] 1799 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1840:48 [INFO] [stdout] | [INFO] [stdout] 1840 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1841:49 [INFO] [stdout] | [INFO] [stdout] 1841 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1870:42 [INFO] [stdout] | [INFO] [stdout] 1870 | ... for (ID, player) in game_clone.players.iter().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `winner_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1888:41 [INFO] [stdout] | [INFO] [stdout] 1888 | ... let mut winner_ID = 0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `winner_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1893:38 [INFO] [stdout] | [INFO] [stdout] 1893 | ... for (ID, player) in game_clone.players.iter().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1905:38 [INFO] [stdout] | [INFO] [stdout] 1905 | ... for (ID, player) in game_clone.players.iter_mut().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1908:48 [INFO] [stdout] | [INFO] [stdout] 1908 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1909:49 [INFO] [stdout] | [INFO] [stdout] 1909 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1913:44 [INFO] [stdout] | [INFO] [stdout] 1913 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1914:45 [INFO] [stdout] | [INFO] [stdout] 1914 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1917:44 [INFO] [stdout] | [INFO] [stdout] 1917 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1918:45 [INFO] [stdout] | [INFO] [stdout] 1918 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1924:40 [INFO] [stdout] | [INFO] [stdout] 1924 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1925:41 [INFO] [stdout] | [INFO] [stdout] 1925 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1929:40 [INFO] [stdout] | [INFO] [stdout] 1929 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1930:41 [INFO] [stdout] | [INFO] [stdout] 1930 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1934:38 [INFO] [stdout] | [INFO] [stdout] 1934 | ... for (ID, player) in game_clone.players.iter().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1963:33 [INFO] [stdout] | [INFO] [stdout] 1963 | ... let ID = 0; [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1969:41 [INFO] [stdout] | [INFO] [stdout] 1969 | ... 'outer:for (ID, player) in game_clone.players.iter().enumerate() { [INFO] [stdout] | ^^ help: convert the identifier to snake case: `id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:1984:48 [INFO] [stdout] | [INFO] [stdout] 1984 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:1985:49 [INFO] [stdout] | [INFO] [stdout] 1985 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:1990:49 [INFO] [stdout] | [INFO] [stdout] 1990 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:2006:49 [INFO] [stdout] | [INFO] [stdout] 2006 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:2023:48 [INFO] [stdout] | [INFO] [stdout] 2023 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:2024:49 [INFO] [stdout] | [INFO] [stdout] 2024 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:2029:49 [INFO] [stdout] | [INFO] [stdout] 2029 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_player_ID` should have a snake case name [INFO] [stdout] --> src/lib.rs:2045:49 [INFO] [stdout] | [INFO] [stdout] 2045 | ... let mut last_player_ID = ID; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `last_player_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/lib.rs:2086:48 [INFO] [stdout] | [INFO] [stdout] 2086 | ... Ok(T) => te_stack.push_str(&T), [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `E` should have a snake case name [INFO] [stdout] --> src/lib.rs:2087:49 [INFO] [stdout] | [INFO] [stdout] 2087 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.79s [INFO] running `Command { std: "docker" "inspect" "b06cd6c4ef15466a4e32e57a100ba6980a4f083b183be1539795f7dd504dd2ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b06cd6c4ef15466a4e32e57a100ba6980a4f083b183be1539795f7dd504dd2ca", kill_on_drop: false }` [INFO] [stdout] b06cd6c4ef15466a4e32e57a100ba6980a4f083b183be1539795f7dd504dd2ca