chore: Rust 1.85.0 linting

This commit is contained in:
Jack Wills
2025-02-21 11:17:28 +00:00
parent 17a5e7a258
commit cef62b38aa
+1 -1
View File
@@ -167,7 +167,7 @@ impl AppData {
/// Check if a given container can be inserted into the "visible" list, based on current filter term and filter_by /// Check if a given container can be inserted into the "visible" list, based on current filter term and filter_by
fn can_insert(&self, container: &ContainerItem) -> bool { fn can_insert(&self, container: &ContainerItem) -> bool {
self.filter.term.as_ref().map_or(true, |term| { self.filter.term.as_ref().is_none_or(|term| {
let term = term.to_lowercase(); let term = term.to_lowercase();
match self.filter.by { match self.filter.by {
FilterBy::All => { FilterBy::All => {