compiled with new rustc
This commit is contained in:
parent
bd3824dc7d
commit
737085948e
2 changed files with 18 additions and 12 deletions
26
Cargo.lock
generated
26
Cargo.lock
generated
|
@ -1,13 +1,3 @@
|
|||
[root]
|
||||
name = "rust_hanabi"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"crossbeam 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"getopts 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "crossbeam"
|
||||
version = "0.2.8"
|
||||
|
@ -39,3 +29,19 @@ dependencies = [
|
|||
"libc 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rust_hanabi"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"crossbeam 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"getopts 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[metadata]
|
||||
"checksum crossbeam 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "348228ce9f93d20ffc30c18e575f82fa41b9c8bf064806c65d41eba4771595a0"
|
||||
"checksum getopts 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)" = "d9047cfbd08a437050b363d35ef160452c5fe8ea5187ae0a624708c91581d685"
|
||||
"checksum libc 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)" = "4870ef6725dde13394134e587e4ab4eca13cb92e916209a31c851b49131d3c75"
|
||||
"checksum log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "038b5d13189a14e5b6ac384fdb7c691a45ef0885f6d2dddbf422e6c3506b8234"
|
||||
"checksum rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)" = "2791d88c6defac799c3f20d74f094ca33b9332612d9aef9078519c82e4fe04a5"
|
||||
|
|
|
@ -498,7 +498,7 @@ impl InformationPlayerStrategy {
|
|||
}
|
||||
|
||||
fn update_public_info_for_hint(&mut self, hint: &Hint, matches: &Vec<bool>) {
|
||||
let mut info = self.get_player_public_info_mut(&hint.player);
|
||||
let info = self.get_player_public_info_mut(&hint.player);
|
||||
info.update_for_hint(&hint.hinted, matches);
|
||||
}
|
||||
|
||||
|
@ -511,7 +511,7 @@ impl InformationPlayerStrategy {
|
|||
) {
|
||||
let new_card_table = CardPossibilityTable::from(&self.public_counts);
|
||||
{
|
||||
let mut info = self.get_player_public_info_mut(&player);
|
||||
let info = self.get_player_public_info_mut(&player);
|
||||
assert!(info[index].is_possible(card));
|
||||
info.remove(index);
|
||||
|
||||
|
|
Loading…
Reference in a new issue