1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-12-22 17:44:22 +00:00

Remove useless reference in CardCode::to_card

This commit is contained in:
Steffo 2022-08-22 18:15:40 +02:00
parent e6e9368082
commit 639d84da03
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -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)
}
}