1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-10-16 17:47:29 +00:00

Use vec! macro in Deck::f1_group_cards

This commit is contained in:
Steffo 2022-08-22 18:17:11 +02:00
parent d44391b264
commit 5c1075031f
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -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(_) => {