[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] checking PLZ2001/TexasPoker/f6c1581a12cae7e72a3c8a32203483f0720ebf8e against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPLZ2001%2FTexasPoker" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PLZ2001/TexasPoker on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "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-0-tc2/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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 08757fb89cb28d79d79962402502978f04a32839d7cbff2ca91657d7531eef47 [INFO] running `Command { std: "docker" "start" "-a" "08757fb89cb28d79d79962402502978f04a32839d7cbff2ca91657d7531eef47", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "08757fb89cb28d79d79962402502978f04a32839d7cbff2ca91657d7531eef47", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08757fb89cb28d79d79962402502978f04a32839d7cbff2ca91657d7531eef47", kill_on_drop: false }` [INFO] [stdout] 08757fb89cb28d79d79962402502978f04a32839d7cbff2ca91657d7531eef47 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d8d5390a5aa07ed7a0004d5cfd3435f1046b73c6aeca8ea2684082a607212dc2 [INFO] running `Command { std: "docker" "start" "-a" "d8d5390a5aa07ed7a0004d5cfd3435f1046b73c6aeca8ea2684082a607212dc2", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.134 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking TexasPoker v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/lib.rs (13 fixes) [INFO] [stdout] warning: variant `PlaceABet_Auto` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:1055:9 [INFO] [stdout] | [INFO] [stdout] 1055 | 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:89:29 [INFO] [stdout] | [INFO] [stdout] 89 | 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:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | 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:95:29 [INFO] [stdout] | [INFO] [stdout] 95 | 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:115:29 [INFO] [stdout] | [INFO] [stdout] 115 | 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:118:29 [INFO] [stdout] | [INFO] [stdout] 118 | 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:121:29 [INFO] [stdout] | [INFO] [stdout] 121 | 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:125:25 [INFO] [stdout] | [INFO] [stdout] 125 | 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:282:17 [INFO] [stdout] | [INFO] [stdout] 282 | 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:348:25 [INFO] [stdout] | [INFO] [stdout] 348 | 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:454:17 [INFO] [stdout] | [INFO] [stdout] 454 | 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:458:25 [INFO] [stdout] | [INFO] [stdout] 458 | 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: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:756:21 [INFO] [stdout] | [INFO] [stdout] 756 | 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: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::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: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::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: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::FangKuai}),1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ID` [INFO] [stdout] --> src/lib.rs:1192:18 [INFO] [stdout] | [INFO] [stdout] 1192 | 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:1314:34 [INFO] [stdout] | [INFO] [stdout] 1314 | ... 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:1346:33 [INFO] [stdout] | [INFO] [stdout] 1346 | ... 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:1349:33 [INFO] [stdout] | [INFO] [stdout] 1349 | ... 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:1357:34 [INFO] [stdout] | [INFO] [stdout] 1357 | ... 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:1485:49 [INFO] [stdout] | [INFO] [stdout] 1485 | ... 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:1678:49 [INFO] [stdout] | [INFO] [stdout] 1678 | ... 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:1814:49 [INFO] [stdout] | [INFO] [stdout] 1814 | ... 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:1869:42 [INFO] [stdout] | [INFO] [stdout] 1869 | ... 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:1904:42 [INFO] [stdout] | [INFO] [stdout] 1904 | ... 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:2060:49 [INFO] [stdout] | [INFO] [stdout] 2060 | ... 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: `i` [INFO] [stdout] --> src/lib.rs:2157:9 [INFO] [stdout] | [INFO] [stdout] 2157 | 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:2154:4 [INFO] [stdout] | [INFO] [stdout] 2154 | 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:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum StuffType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 20 | GeneralType(&'static str,i32), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 21 | 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:34:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub trait BankManager{ [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 34 | 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:227:16 [INFO] [stdout] | [INFO] [stdout] 226 | impl MyBank { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 227 | pub fn new() -> MyBank { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 233 | pub fn read_random_item(&self) -> &StuffType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | pub fn stuff_clear(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | 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:407:16 [INFO] [stdout] | [INFO] [stdout] 405 | impl Player { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 406 | /// 下注 [INFO] [stdout] 407 | pub fn place_a_bet(&mut self, bet:&Vec<(&StuffType,i32)>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 411 | pub fn place_a_bet_with_value(&mut self, value:i32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 445 | 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] 545 | pub fn initial_my_owned_bank(&mut self, initial:&Vec<(&StuffType, i32)>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 549 | pub fn clear_my_cards(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 553 | pub fn clear_my_bet_bank(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 557 | pub fn get_bets_back(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 564 | pub fn send_bets_to_pool(&mut self, to:&mut CashPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 570 | pub fn send_owned_to_pool(&mut self, to:&mut CashPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 576 | pub fn get_bets_from_pool(&mut self, from:&mut CashPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 582 | pub fn get_two_cards(&mut self, from:&mut CardPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 596 | pub fn send_cards_back(&mut self, to:&mut CardPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 602 | 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:643:16 [INFO] [stdout] | [INFO] [stdout] 642 | impl Player { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 643 | 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:657:16 [INFO] [stdout] | [INFO] [stdout] 656 | impl CashPool { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 657 | pub fn new() -> CashPool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 663 | 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:670:9 [INFO] [stdout] | [INFO] [stdout] 669 | pub enum Role { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 670 | Normal, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 671 | DaMang(i32), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 672 | XiaoMang(i32), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 673 | PlaceBet, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 674 | GiveUp, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 675 | 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:742:9 [INFO] [stdout] | [INFO] [stdout] 741 | pub enum CardColor { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 742 | HeiTao, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 743 | HongTao, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 744 | MeiHua, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 745 | 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:748:11 [INFO] [stdout] | [INFO] [stdout] 748 | 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:751:16 [INFO] [stdout] | [INFO] [stdout] 750 | impl CardPool { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 751 | pub fn new() -> CardPool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 764 | 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:770:16 [INFO] [stdout] | [INFO] [stdout] 769 | impl FiveCards { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 770 | pub fn new() -> FiveCards { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 776 | pub fn clear_five_cards(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 780 | pub fn get_five_cards(&mut self, from:&mut CardPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 797 | 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:805:9 [INFO] [stdout] | [INFO] [stdout] 804 | pub enum FiveCardsCategory { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 805 | RoyalFlush, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 806 | StraightFlush, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 807 | FourOfAKind, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 808 | FullHouse, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 809 | Flush, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 810 | Straight, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 811 | ThreeOfAKind, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 812 | TwoPairs, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 813 | Pair, [INFO] [stdout] | ^^^^ [INFO] [stdout] 814 | HighCard, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_five_cards_value` is never used [INFO] [stdout] --> src/lib.rs:817:12 [INFO] [stdout] | [INFO] [stdout] 817 | 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:839:12 [INFO] [stdout] | [INFO] [stdout] 839 | 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:954:8 [INFO] [stdout] | [INFO] [stdout] 954 | 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:963:8 [INFO] [stdout] | [INFO] [stdout] 963 | 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:972:8 [INFO] [stdout] | [INFO] [stdout] 972 | 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:1045:13 [INFO] [stdout] | [INFO] [stdout] 1039 | pub struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1045 | 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:1050:9 [INFO] [stdout] | [INFO] [stdout] 1049 | pub enum MyEvent<'a> { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 1050 | AddBot { num: usize }, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 1051 | ResetGame { assets: &'a Vec<(&'a StuffType, i32)> }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 1052 | StartNextGame, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 1053 | PickCards, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 1054 | PlaceABet { bet: &'a Vec<(&'a StuffType, i32)> }, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 1055 | PlaceABet_Auto, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 1056 | ConfirmBalance, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 1057 | GiveUp, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/lib.rs:1062:9 [INFO] [stdout] | [INFO] [stdout] 1061 | pub enum GameStatus { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 1062 | Setting, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 1063 | CardsPicking, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 1064 | BetPlacing1, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 1065 | BetPlacing2, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 1066 | BetPlacing3, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 1067 | BetPlacing4, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 1068 | 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:1071:11 [INFO] [stdout] | [INFO] [stdout] 1071 | 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:1072:11 [INFO] [stdout] | [INFO] [stdout] 1072 | 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:1075:16 [INFO] [stdout] | [INFO] [stdout] 1074 | impl Game { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 1075 | pub fn new() -> Game { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 1091 | pub fn get_min_value_unit(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1165 | pub fn add_a_player(&mut self, name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1175 | pub fn init_game(&mut self, initial: &Vec<(&StuffType, i32)>) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1218 | 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:2163:16 [INFO] [stdout] | [INFO] [stdout] 2163 | 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:2164:17 [INFO] [stdout] | [INFO] [stdout] 2164 | 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:67:20 [INFO] [stdout] | [INFO] [stdout] 67 | 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:69:28 [INFO] [stdout] | [INFO] [stdout] 69 | 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:70:29 [INFO] [stdout] | [INFO] [stdout] 70 | 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:72:36 [INFO] [stdout] | [INFO] [stdout] 72 | ... 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:73:37 [INFO] [stdout] | [INFO] [stdout] 73 | ... 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:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | 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:141:20 [INFO] [stdout] | [INFO] [stdout] 141 | 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:143:28 [INFO] [stdout] | [INFO] [stdout] 143 | 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:144:29 [INFO] [stdout] | [INFO] [stdout] 144 | 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:146:36 [INFO] [stdout] | [INFO] [stdout] 146 | ... 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:147:37 [INFO] [stdout] | [INFO] [stdout] 147 | ... 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:152:21 [INFO] [stdout] | [INFO] [stdout] 152 | 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:163:29 [INFO] [stdout] | [INFO] [stdout] 163 | 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:165:37 [INFO] [stdout] | [INFO] [stdout] 165 | ... 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:166:36 [INFO] [stdout] | [INFO] [stdout] 166 | ... 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:169:28 [INFO] [stdout] | [INFO] [stdout] 169 | 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:180:29 [INFO] [stdout] | [INFO] [stdout] 180 | 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:181:28 [INFO] [stdout] | [INFO] [stdout] 181 | 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:197:29 [INFO] [stdout] | [INFO] [stdout] 197 | 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:199:37 [INFO] [stdout] | [INFO] [stdout] 199 | ... 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:200:36 [INFO] [stdout] | [INFO] [stdout] 200 | ... 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:203:28 [INFO] [stdout] | [INFO] [stdout] 203 | 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:214:29 [INFO] [stdout] | [INFO] [stdout] 214 | 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:215:28 [INFO] [stdout] | [INFO] [stdout] 215 | 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:415:20 [INFO] [stdout] | [INFO] [stdout] 415 | 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:416:21 [INFO] [stdout] | [INFO] [stdout] 416 | 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:426:28 [INFO] [stdout] | [INFO] [stdout] 426 | 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:431:29 [INFO] [stdout] | [INFO] [stdout] 431 | 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:436:21 [INFO] [stdout] | [INFO] [stdout] 436 | 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:483:24 [INFO] [stdout] | [INFO] [stdout] 483 | 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:488:25 [INFO] [stdout] | [INFO] [stdout] 488 | 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:489:25 [INFO] [stdout] | [INFO] [stdout] 489 | 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] 489 | 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:503:20 [INFO] [stdout] | [INFO] [stdout] 503 | 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:504:21 [INFO] [stdout] | [INFO] [stdout] 504 | 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:507:20 [INFO] [stdout] | [INFO] [stdout] 507 | 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:530:36 [INFO] [stdout] | [INFO] [stdout] 530 | ... 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:531:37 [INFO] [stdout] | [INFO] [stdout] 531 | ... 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:537:21 [INFO] [stdout] | [INFO] [stdout] 537 | 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:590:24 [INFO] [stdout] | [INFO] [stdout] 590 | 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:591:25 [INFO] [stdout] | [INFO] [stdout] 591 | 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:791:24 [INFO] [stdout] | [INFO] [stdout] 791 | 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:792:25 [INFO] [stdout] | [INFO] [stdout] 792 | 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:871:17 [INFO] [stdout] | [INFO] [stdout] 871 | 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:880:17 [INFO] [stdout] | [INFO] [stdout] 880 | 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:889:17 [INFO] [stdout] | [INFO] [stdout] 889 | 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:897:17 [INFO] [stdout] | [INFO] [stdout] 897 | 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:905:17 [INFO] [stdout] | [INFO] [stdout] 905 | 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:914:17 [INFO] [stdout] | [INFO] [stdout] 914 | 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:923:17 [INFO] [stdout] | [INFO] [stdout] 923 | 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:932:17 [INFO] [stdout] | [INFO] [stdout] 932 | 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:941:17 [INFO] [stdout] | [INFO] [stdout] 941 | 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:1045:13 [INFO] [stdout] | [INFO] [stdout] 1045 | 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:1086:20 [INFO] [stdout] | [INFO] [stdout] 1086 | 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:1087:21 [INFO] [stdout] | [INFO] [stdout] 1087 | 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:1108:16 [INFO] [stdout] | [INFO] [stdout] 1108 | 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:1127:16 [INFO] [stdout] | [INFO] [stdout] 1127 | 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:1178:20 [INFO] [stdout] | [INFO] [stdout] 1178 | 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:1179:21 [INFO] [stdout] | [INFO] [stdout] 1179 | 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:1182:20 [INFO] [stdout] | [INFO] [stdout] 1182 | 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:1183:21 [INFO] [stdout] | [INFO] [stdout] 1183 | 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:1192:18 [INFO] [stdout] | [INFO] [stdout] 1192 | 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:1194:24 [INFO] [stdout] | [INFO] [stdout] 1194 | 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:1195:25 [INFO] [stdout] | [INFO] [stdout] 1195 | 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:1198:24 [INFO] [stdout] | [INFO] [stdout] 1198 | 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:1199:25 [INFO] [stdout] | [INFO] [stdout] 1199 | 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:1202:24 [INFO] [stdout] | [INFO] [stdout] 1202 | 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:1203:25 [INFO] [stdout] | [INFO] [stdout] 1203 | 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:1229:40 [INFO] [stdout] | [INFO] [stdout] 1229 | ... 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:1230:41 [INFO] [stdout] | [INFO] [stdout] 1230 | ... 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:1313:37 [INFO] [stdout] | [INFO] [stdout] 1313 | ... 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:1314:34 [INFO] [stdout] | [INFO] [stdout] 1314 | ... 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:1335:34 [INFO] [stdout] | [INFO] [stdout] 1335 | ... 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:1350:45 [INFO] [stdout] | [INFO] [stdout] 1350 | ... 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:1357:34 [INFO] [stdout] | [INFO] [stdout] 1357 | ... 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:1359:49 [INFO] [stdout] | [INFO] [stdout] 1359 | ... 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:1380:40 [INFO] [stdout] | [INFO] [stdout] 1380 | ... 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:1381:41 [INFO] [stdout] | [INFO] [stdout] 1381 | ... 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:1386:36 [INFO] [stdout] | [INFO] [stdout] 1386 | ... 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:1387:37 [INFO] [stdout] | [INFO] [stdout] 1387 | ... 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:1391:41 [INFO] [stdout] | [INFO] [stdout] 1391 | ... '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:1400:48 [INFO] [stdout] | [INFO] [stdout] 1400 | ... 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:1401:49 [INFO] [stdout] | [INFO] [stdout] 1401 | ... 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:1406:49 [INFO] [stdout] | [INFO] [stdout] 1406 | ... 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:1422:49 [INFO] [stdout] | [INFO] [stdout] 1422 | ... 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:1443:48 [INFO] [stdout] | [INFO] [stdout] 1443 | ... 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:1444:49 [INFO] [stdout] | [INFO] [stdout] 1444 | ... 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:1449:49 [INFO] [stdout] | [INFO] [stdout] 1449 | ... 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:1465:49 [INFO] [stdout] | [INFO] [stdout] 1465 | ... 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:1510:48 [INFO] [stdout] | [INFO] [stdout] 1510 | ... 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:1511:49 [INFO] [stdout] | [INFO] [stdout] 1511 | ... 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:1555:33 [INFO] [stdout] | [INFO] [stdout] 1555 | ... 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:1565:48 [INFO] [stdout] | [INFO] [stdout] 1565 | ... 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:1566:49 [INFO] [stdout] | [INFO] [stdout] 1566 | ... 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:1567:49 [INFO] [stdout] | [INFO] [stdout] 1567 | ... 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] 1567 | 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:1582:49 [INFO] [stdout] | [INFO] [stdout] 1582 | ... 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:1598:49 [INFO] [stdout] | [INFO] [stdout] 1598 | ... 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:1622:48 [INFO] [stdout] | [INFO] [stdout] 1622 | ... 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:1623:49 [INFO] [stdout] | [INFO] [stdout] 1623 | ... 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:1624:49 [INFO] [stdout] | [INFO] [stdout] 1624 | ... 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] 1624 | 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:1639:49 [INFO] [stdout] | [INFO] [stdout] 1639 | ... 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:1655:49 [INFO] [stdout] | [INFO] [stdout] 1655 | ... 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:1702:48 [INFO] [stdout] | [INFO] [stdout] 1702 | ... 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:1703:49 [INFO] [stdout] | [INFO] [stdout] 1703 | ... 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:1704:49 [INFO] [stdout] | [INFO] [stdout] 1704 | ... 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] 1704 | 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:1722:41 [INFO] [stdout] | [INFO] [stdout] 1722 | ... '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:1737:48 [INFO] [stdout] | [INFO] [stdout] 1737 | ... 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:1738:49 [INFO] [stdout] | [INFO] [stdout] 1738 | ... 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:1743:49 [INFO] [stdout] | [INFO] [stdout] 1743 | ... 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:1759:49 [INFO] [stdout] | [INFO] [stdout] 1759 | ... 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:1776:48 [INFO] [stdout] | [INFO] [stdout] 1776 | ... 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:1777:49 [INFO] [stdout] | [INFO] [stdout] 1777 | ... 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:1782:49 [INFO] [stdout] | [INFO] [stdout] 1782 | ... 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:1798:49 [INFO] [stdout] | [INFO] [stdout] 1798 | ... 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:1839:48 [INFO] [stdout] | [INFO] [stdout] 1839 | ... 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:1840:49 [INFO] [stdout] | [INFO] [stdout] 1840 | ... 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:1869:42 [INFO] [stdout] | [INFO] [stdout] 1869 | ... 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:1887:41 [INFO] [stdout] | [INFO] [stdout] 1887 | ... 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:1892:38 [INFO] [stdout] | [INFO] [stdout] 1892 | ... 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:1904:38 [INFO] [stdout] | [INFO] [stdout] 1904 | ... 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:1907:48 [INFO] [stdout] | [INFO] [stdout] 1907 | ... 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:1908:49 [INFO] [stdout] | [INFO] [stdout] 1908 | ... 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:1912:44 [INFO] [stdout] | [INFO] [stdout] 1912 | ... 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:1913:45 [INFO] [stdout] | [INFO] [stdout] 1913 | ... 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:1916:44 [INFO] [stdout] | [INFO] [stdout] 1916 | ... 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:1917:45 [INFO] [stdout] | [INFO] [stdout] 1917 | ... 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:1923:40 [INFO] [stdout] | [INFO] [stdout] 1923 | ... 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:1924:41 [INFO] [stdout] | [INFO] [stdout] 1924 | ... 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:1928:40 [INFO] [stdout] | [INFO] [stdout] 1928 | ... 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:1929:41 [INFO] [stdout] | [INFO] [stdout] 1929 | ... 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:1933:38 [INFO] [stdout] | [INFO] [stdout] 1933 | ... 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:1962:33 [INFO] [stdout] | [INFO] [stdout] 1962 | ... 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:1968:41 [INFO] [stdout] | [INFO] [stdout] 1968 | ... '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:1983:48 [INFO] [stdout] | [INFO] [stdout] 1983 | ... 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:1984:49 [INFO] [stdout] | [INFO] [stdout] 1984 | ... 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:1989:49 [INFO] [stdout] | [INFO] [stdout] 1989 | ... 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:2005:49 [INFO] [stdout] | [INFO] [stdout] 2005 | ... 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:2022:48 [INFO] [stdout] | [INFO] [stdout] 2022 | ... 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:2023:49 [INFO] [stdout] | [INFO] [stdout] 2023 | ... 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:2028:49 [INFO] [stdout] | [INFO] [stdout] 2028 | ... 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:2044:49 [INFO] [stdout] | [INFO] [stdout] 2044 | ... 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:2085:48 [INFO] [stdout] | [INFO] [stdout] 2085 | ... 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:2086:49 [INFO] [stdout] | [INFO] [stdout] 2086 | ... Err(E) => te_stack.push_str(&E), [INFO] [stdout] | ^ help: convert the identifier to snake case: `e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 197 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `StuffType` [INFO] [stdout] --> src/lib.rs:2173:9 [INFO] [stdout] | [INFO] [stdout] 2173 | use StuffType::GeneralType; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `StuffType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `StuffType` in this scope [INFO] [stdout] --> src/lib.rs:2182:21 [INFO] [stdout] | [INFO] [stdout] 2182 | let stuff:Vec<(&StuffType,i32)> = vec![(&GeneralType("洗发水",50),2), [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 3 + use crate::module_bank::StuffType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PlaceABet_Auto` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:1055:9 [INFO] [stdout] | [INFO] [stdout] 1055 | 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:89:29 [INFO] [stdout] | [INFO] [stdout] 89 | 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:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | 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:95:29 [INFO] [stdout] | [INFO] [stdout] 95 | 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:115:29 [INFO] [stdout] | [INFO] [stdout] 115 | 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:118:29 [INFO] [stdout] | [INFO] [stdout] 118 | 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:121:29 [INFO] [stdout] | [INFO] [stdout] 121 | 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:125:25 [INFO] [stdout] | [INFO] [stdout] 125 | 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:282:17 [INFO] [stdout] | [INFO] [stdout] 282 | 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:348:25 [INFO] [stdout] | [INFO] [stdout] 348 | 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:454:17 [INFO] [stdout] | [INFO] [stdout] 454 | 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:458:25 [INFO] [stdout] | [INFO] [stdout] 458 | 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: unused variable: `no_use` [INFO] [stdout] --> src/lib.rs:756:21 [INFO] [stdout] | [INFO] [stdout] 756 | 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: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::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: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::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: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::FangKuai}),1); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_no_use` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ID` [INFO] [stdout] --> src/lib.rs:1192:18 [INFO] [stdout] | [INFO] [stdout] 1192 | 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:1314:34 [INFO] [stdout] | [INFO] [stdout] 1314 | ... 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:1346:33 [INFO] [stdout] | [INFO] [stdout] 1346 | ... 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:1349:33 [INFO] [stdout] | [INFO] [stdout] 1349 | ... 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:1357:34 [INFO] [stdout] | [INFO] [stdout] 1357 | ... 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:1485:49 [INFO] [stdout] | [INFO] [stdout] 1485 | ... 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:1678:49 [INFO] [stdout] | [INFO] [stdout] 1678 | ... 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:1814:49 [INFO] [stdout] | [INFO] [stdout] 1814 | ... 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:1869:42 [INFO] [stdout] | [INFO] [stdout] 1869 | ... 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:1904:42 [INFO] [stdout] | [INFO] [stdout] 1904 | ... 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:2060:49 [INFO] [stdout] | [INFO] [stdout] 2060 | ... 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: `i` [INFO] [stdout] --> src/lib.rs:2157:9 [INFO] [stdout] | [INFO] [stdout] 2157 | for i in 0..100 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `TexasPoker` (lib test) due to 3 previous errors; 28 warnings emitted [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "d8d5390a5aa07ed7a0004d5cfd3435f1046b73c6aeca8ea2684082a607212dc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8d5390a5aa07ed7a0004d5cfd3435f1046b73c6aeca8ea2684082a607212dc2", kill_on_drop: false }` [INFO] [stdout] d8d5390a5aa07ed7a0004d5cfd3435f1046b73c6aeca8ea2684082a607212dc2