diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-04-12 22:46:08 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-04-12 22:46:08 +0800 |
commit | 83804adf605c2d1264b0fcafcdbf5f77023570ab (patch) | |
tree | d66e665a21edd65f57d1a11632e321acbe731afb /src | |
parent | 9b3de5547d418697e7f094513e80dee4d00c21ff (diff) |
fix clippy lints
Diffstat (limited to 'src')
-rw-r--r-- | src/traverse.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/traverse.rs b/src/traverse.rs index 1e2e1d3..d78041f 100644 --- a/src/traverse.rs +++ b/src/traverse.rs @@ -90,7 +90,7 @@ impl Traversal { match entry { Ok(entry) => { data.name = if entry.depth < 1 { - path.clone().into() + path.clone() } else { entry.file_name.into() }; @@ -156,7 +156,7 @@ impl Traversal { } Err(_) => { if previous_depth == 0 { - data.name = path.clone().into(); + data.name = path.clone(); let entry_index = t.tree.add_node(data); t.tree.add_edge(parent_node_idx, entry_index, ()); } |