summaryrefslogtreecommitdiffstats
path: root/src/filestore/staging.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/filestore/staging.rs')
-rw-r--r--src/filestore/staging.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filestore/staging.rs b/src/filestore/staging.rs
index 321ba6d..73701cd 100644
--- a/src/filestore/staging.rs
+++ b/src/filestore/staging.rs
@@ -27,7 +27,7 @@ pub struct StagingStore(pub(in crate::filestore) FileStoreImpl);
impl Debug for StagingStore {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::result::Result<(), std::fmt::Error> {
- write!(f, "StagingStore(root: {})", self.0.root.display())
+ write!(f, "StagingStore(root: {})", self.0.root_path().display())
}
}
@@ -47,7 +47,7 @@ impl StagingStore {
{
use futures::stream::TryStreamExt;
- let dest = &self.0.root;
+ let dest = self.0.root_path();
stream
.try_concat()
.await
@@ -78,7 +78,7 @@ impl StagingStore {
.into_iter()
.inspect(|p| trace!("Trying to load into staging store: {}", p.display()))
.filter_map(|path| {
- if self.0.root.is_dir(&path) {
+ if self.0.root_path().is_dir(&path) {
None
} else {
Some({