Skip to content

Commit fc70f9b

Browse files
committed
Rename variable
1 parent a00d1f0 commit fc70f9b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/filter.rs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,19 @@ pub fn get_all_file_types(top_level_nodes: Vec<Node>, n: usize) -> Option<Displa
6969

7070
fn add_children<'a>(
7171
using_a_filter: bool,
72-
line: &'a Node,
72+
file_or_folder: &'a Node,
7373
depth: usize,
7474
mut heap: BinaryHeap<&'a Node>,
7575
) -> BinaryHeap<&'a Node> {
76-
if depth > line.depth {
76+
if depth > file_or_folder.depth {
7777
if using_a_filter {
78-
line.children.iter().for_each(|c| {
78+
file_or_folder.children.iter().for_each(|c| {
7979
if c.name.is_file() || c.size > 0 {
8080
heap.push(c)
8181
}
8282
});
8383
} else {
84-
line.children.iter().for_each(|c| heap.push(c));
84+
file_or_folder.children.iter().for_each(|c| heap.push(c));
8585
}
8686
}
8787
heap

0 commit comments

Comments
 (0)