Skip to content

Commit

Permalink
refactor: clippy --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lautarodragan committed Feb 1, 2025
1 parent 32f1861 commit 6a36af7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/list/widget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ where
let items = self.items.borrow();
let visible_items = self.visible_items.borrow();

if visible_items.len() < 1 {
if visible_items.is_empty() {
return;
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/tree/tree_node.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{cmp::Ordering, collections::VecDeque};
use std::collections::VecDeque;

use super::TreeNodePath;

Expand Down Expand Up @@ -63,7 +63,7 @@ impl<T> TreeNode<T> {
.iter()
.take(until_path.first().saturating_add(1))
.enumerate()
.map(|(i, n)| 1 + n.total_open_children_count(&TreeNodePath::from_vec(vec![i]), &until_path))
.map(|(i, n)| 1 + n.total_open_children_count(&TreeNodePath::from_vec(vec![i]), until_path))
.sum()
}

Expand Down

0 comments on commit 6a36af7

Please sign in to comment.