chore: apply clippy suggestions

This commit is contained in:
Cheong Lau 2025-10-05 12:27:32 +10:00 committed by Michael Murphy
parent 34f55d6720
commit a27bb5e05d
34 changed files with 116 additions and 146 deletions

View file

@ -66,9 +66,7 @@ impl<S, Item: PartialEq> Model<S, Item> {
}
pub(super) fn next(&self) -> Option<&(S, Item)> {
let Some(item) = self.selected.as_ref() else {
return None;
};
let item = self.selected.as_ref()?;
let mut next = false;
for list in &self.lists {