summaryrefslogtreecommitdiffstats
path: root/src/commands/build.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-01-13 08:53:39 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-01-15 23:21:39 +0100
commitd2576b3b8d2f66d01bcf7edd18d1a97f743b0539 (patch)
treea37db2df7467f775fd7942c8a3508dd43da8cc71 /src/commands/build.rs
parentb9336d3a9402cec61f64ba9a15f9482100eb45f7 (diff)
Fix clippy: you should consider adding a `Default` implementation for `package::tree::Tree`
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/commands/build.rs')
-rw-r--r--src/commands/build.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/build.rs b/src/commands/build.rs
index 75831a6..44ac327 100644
--- a/src/commands/build.rs
+++ b/src/commands/build.rs
@@ -180,7 +180,7 @@ pub async fn build(repo_root: &Path,
let bar_tree_building = progressbars.bar();
bar_tree_building.set_length(max_packages);
- let mut tree = Tree::new();
+ let mut tree = Tree::default();
tree.add_package(package.clone(), &repo, bar_tree_building.clone())?;
bar_tree_building.finish_with_message("Finished loading Tree");