mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
apply clippy optimizations
This commit is contained in:
parent
c5ca74702a
commit
48ad344adc
3 changed files with 4 additions and 13 deletions
|
|
@ -55,9 +55,6 @@ impl Memory {
|
|||
result.sort_by(|a, b| b.1.cmp(&a.1));
|
||||
|
||||
// Get first match ID
|
||||
match result.get(0) {
|
||||
Some(value) => Some(value.0),
|
||||
None => None,
|
||||
}
|
||||
result.first().map(|value| value.0)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue