1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-12-23 01:54:22 +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
match groups.get(&key) {
None => {
let mut group = Vec::new();
group.push(*card);
let mut group = vec![*card];
groups.insert(key, group);
}
Some(_) => {