From 5a17f7a7246a0e4c03adc0f18cd4c5d13be8132a Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi <me@steffo.eu> Date: Mon, 22 Aug 2022 18:19:20 +0200 Subject: [PATCH] Do not make `group` mutable in `Deck::f1_group_cards` --- src/data/deckcode/deck.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/deckcode/deck.rs b/src/data/deckcode/deck.rs index a045191..b0b1665 100644 --- a/src/data/deckcode/deck.rs +++ b/src/data/deckcode/deck.rs @@ -129,7 +129,7 @@ impl Deck { // Create or insert groups match groups.get(&key) { None => { - let mut group = vec![*card]; + let group = vec![*card]; groups.insert(key, group); } Some(_) => {