summaryrefslogtreecommitdiffstats
path: root/src/commands/find_artifact.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/find_artifact.rs')
-rw-r--r--src/commands/find_artifact.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/find_artifact.rs b/src/commands/find_artifact.rs
index 93b332b..469fb6e 100644
--- a/src/commands/find_artifact.rs
+++ b/src/commands/find_artifact.rs
@@ -59,7 +59,7 @@ pub async fn find_artifact(matches: &ArgMatches, config: &Configuration, progres
let p = config.releases_directory().join(storename);
debug!("Loading release directory: {}", p.display());
- let r = ReleaseStore::load(StoreRoot::new(p)?, bar_release_loading.clone());
+ let r = ReleaseStore::load(StoreRoot::new(p)?, &bar_release_loading);
if r.is_ok() {
bar_release_loading.finish_with_message("Loaded releases successfully");
} else {
@@ -79,7 +79,7 @@ pub async fn find_artifact(matches: &ArgMatches, config: &Configuration, progres
}
debug!("Loading staging directory: {}", p.display());
- let r = StagingStore::load(StoreRoot::new(p.clone())?, bar_staging_loading.clone());
+ let r = StagingStore::load(StoreRoot::new(p.clone())?, &bar_staging_loading);
if r.is_ok() {
bar_staging_loading.finish_with_message("Loaded staging successfully");
} else {