Skip to content

Commit

Permalink
apply clippy
Browse files Browse the repository at this point in the history
this seems to have been applied before resolving the conflict
  • Loading branch information
fawni committed Mar 14, 2023
1 parent 46e38fb commit 510d52b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/render/tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ impl Tree {
current_node.set_file_size(dir_size)
}

Order::from((ctx.sort(), ctx.dirs_first()))
.comparator()
.map(|func| current_node.sort_children(func));
if let Some(func) = Order::from((ctx.sort(), ctx.dirs_first())).comparator() {
current_node.sort_children(func)
}
}
}

Expand Down

0 comments on commit 510d52b

Please sign in to comment.