mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
add match_same_arms clippy lint (#8549)
This commit is contained in:
@ -340,8 +340,7 @@ impl<T: Table> ExtraTableElement<T> {
|
||||
/// Return the key for the extra element
|
||||
const fn key(&self) -> &T::Key {
|
||||
match self {
|
||||
Self::First { key, .. } => key,
|
||||
Self::Second { key, .. } => key,
|
||||
Self::First { key, .. } | Self::Second { key, .. } => key,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user