summaryrefslogtreecommitdiffstats
path: root/src/commands/tree_of.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-03-04 13:34:13 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-03-04 13:34:54 +0100
commit5b46db841f74663c896c37e5f40a4ad08699ba2b (patch)
tree7eb3b4875b90d33c834efcc206ddb5952d93f915 /src/commands/tree_of.rs
parente83155b64527de035b55d57c12c96463f0443b84 (diff)
Do not pass progress bars by value, but by reference
Because passing by value is simply not necessary here. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/commands/tree_of.rs')
-rw-r--r--src/commands/tree_of.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/tree_of.rs b/src/commands/tree_of.rs
index df3a6cf..30196b7 100644
--- a/src/commands/tree_of.rs
+++ b/src/commands/tree_of.rs
@@ -45,7 +45,7 @@ pub async fn tree_of(
})
.map(|package| {
let bar_tree_building = progressbars.bar();
- let tree = Dag::for_root_package(package.clone(), &repo, bar_tree_building.clone())?;
+ let tree = Dag::for_root_package(package.clone(), &repo, &bar_tree_building)?;
bar_tree_building.finish_with_message("Finished loading Tree");
Ok(tree)
})