Avoid a bit more allocation and make intentions clearer.
This commit is contained in:
parent
f584494464
commit
79eecb6251
3 changed files with 7 additions and 6 deletions
|
|
@ -116,7 +116,7 @@ impl FileTree {
|
|||
Some(go(
|
||||
maybe_subtree.unwrap_or_else(|| {
|
||||
FileTree::with_status(
|
||||
new_path.to_owned(),
|
||||
new_path.clone(),
|
||||
// We only label as managed the final path entry,
|
||||
// to label intermediate nodes as managed, we should
|
||||
// call this function for every one of them separately.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue