summaryrefslogtreecommitdiffstats
path: root/src/tree.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-01-28 20:30:22 +0100
committerqkzk <qu3nt1n@gmail.com>2023-01-28 20:30:22 +0100
commitf27eb0e53e7eae313acf3a24bcc271255f25c871 (patch)
tree72dcd413b5d942cdaed20bbff3b7b332d67c178f /src/tree.rs
parent40629afac165ac23da19ebf195075254e670decb (diff)
clippy: string interpolation
Diffstat (limited to 'src/tree.rs')
-rw-r--r--src/tree.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tree.rs b/src/tree.rs
index 826e9a6..fc79ad9 100644
--- a/src/tree.rs
+++ b/src/tree.rs
@@ -196,7 +196,7 @@ impl Tree {
sort_kind: &SortKind,
parent_position: Vec<usize>,
) -> FmResult<Vec<Tree>> {
- if max_depth <= 0 {
+ if max_depth == 0 {
return Ok(vec![]);
}
let mut leaves = vec![];