1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2025-01-03 15:34:18 +00:00

Remove unnecessary reference

This commit is contained in:
Steffo 2023-07-03 03:09:43 +02:00
parent 618ebb4d50
commit 96613c6626
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -520,7 +520,7 @@ impl Deck {
/// ///
pub fn cards_are_allowed_in(&self, cards: &CardIndex, format: CardFormat) -> bool { pub fn cards_are_allowed_in(&self, cards: &CardIndex, format: CardFormat) -> bool {
self.contents.keys() self.contents.keys()
.map(|cc| cc.to_card(&cards)) .map(|cc| cc.to_card(cards))
.flatten() .flatten()
.all(|c| c.formats.contains(&format)) .all(|c| c.formats.contains(&format))
} }