1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-10-16 17:47:29 +00:00

Fix some clippy lints

This commit is contained in:
Steffo 2022-08-07 05:38:29 +02:00
parent 2da1264681
commit 838dafd028
Signed by: steffo
GPG key ID: 6965406171929D01
5 changed files with 5 additions and 5 deletions

View file

@ -343,7 +343,7 @@ impl CardKeyword {
///
/// Equivalent to calling [LocalizedCardKeywordIndex::get].
pub fn localized<'hm>(&self, hm: &'hm LocalizedCardKeywordIndex) -> Option<&'hm LocalizedCardKeyword> {
hm.get(&self)
hm.get(self)
}
}

View file

@ -28,7 +28,7 @@ impl CardRarity {
///
/// Equivalent to calling [LocalizedCardRarityIndex::get].
pub fn localized<'hm>(&self, hm: &'hm LocalizedCardRarityIndex) -> Option<&'hm LocalizedCardRarity> {
hm.get(&self)
hm.get(self)
}
}

View file

@ -49,7 +49,7 @@ impl CardRegion {
///
/// Equivalent to calling [LocalizedCardRegionIndex::get].
pub fn localized<'hm>(&self, hm: &'hm LocalizedCardRegionIndex) -> Option<&'hm LocalizedCardRegion> {
hm.get(&self)
hm.get(self)
}
}

View file

@ -48,7 +48,7 @@ impl CardSet {
///
/// Equivalent to calling [LocalizedCardSetIndex::get].
pub fn localized<'hm>(&self, hm: &'hm LocalizedCardSetIndex) -> Option<&'hm LocalizedCardSet> {
hm.get(&self)
hm.get(self)
}
}

View file

@ -23,7 +23,7 @@ impl SpellSpeed {
///
/// Equivalent to calling [LocalizedSpellSpeedIndex::get].
pub fn localized<'hm>(&self, hm: &'hm LocalizedSpellSpeedIndex) -> Option<&'hm LocalizedSpellSpeed> {
hm.get(&self)
hm.get(self)
}
}