From 639d84da03189772237511f255c2106cfd9a15ec Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 22 Aug 2022 18:15:40 +0200 Subject: [PATCH] Remove useless reference in `CardCode::to_card` --- src/data/setbundle/code.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/setbundle/code.rs b/src/data/setbundle/code.rs index 5a78438..7e6e628 100644 --- a/src/data/setbundle/code.rs +++ b/src/data/setbundle/code.rs @@ -80,7 +80,7 @@ impl CardCode { /// Find, in a [`CardIndex`], the [`Card`] this code belongs to. pub fn to_card<'c>(&self, cards: &'c CardIndex) -> Option<&'c Card> { - cards.get(&self) + cards.get(self) } }