chore: apply clippy suggestions
This commit is contained in:
parent
34f55d6720
commit
a27bb5e05d
34 changed files with 116 additions and 146 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue