apply clippy optimizations

This commit is contained in:
yggverse 2024-11-22 14:52:45 +02:00
parent c5ca74702a
commit 48ad344adc
3 changed files with 4 additions and 13 deletions

View file

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