summaryrefslogtreecommitdiffstats
path: root/src/filestore/staging.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/filestore/staging.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/filestore/staging.rs')
-rw-r--r--src/filestore/staging.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filestore/staging.rs b/src/filestore/staging.rs
index 1c2a848..9e98e25 100644
--- a/src/filestore/staging.rs
+++ b/src/filestore/staging.rs
@@ -33,7 +33,7 @@ impl Debug for StagingStore {
}
impl StagingStore {
- pub fn load(root: StoreRoot, progress: ProgressBar) -> Result<Self> {
+ pub fn load(root: StoreRoot, progress: &ProgressBar) -> Result<Self> {
FileStoreImpl::load(root, progress).map(StagingStore)
}