mirror of
https://github.com/Steffo99/patched-porobot.git
synced 2024-12-22 17:44:22 +00:00
Use vec!
macro in Deck::f1_group_cards
This commit is contained in:
parent
d44391b264
commit
5c1075031f
1 changed files with 1 additions and 2 deletions
|
@ -129,8 +129,7 @@ impl Deck {
|
||||||
// Create or insert groups
|
// Create or insert groups
|
||||||
match groups.get(&key) {
|
match groups.get(&key) {
|
||||||
None => {
|
None => {
|
||||||
let mut group = Vec::new();
|
let mut group = vec![*card];
|
||||||
group.push(*card);
|
|
||||||
groups.insert(key, group);
|
groups.insert(key, group);
|
||||||
}
|
}
|
||||||
Some(_) => {
|
Some(_) => {
|
||||||
|
|
Loading…
Reference in a new issue