diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-04-06 20:36:17 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-04-06 20:36:18 +0200 |
commit | af5e9721e1ff4520f9e4e39113cc782598206428 (patch) | |
tree | d589826c9f29ec20fa21597e7ce165eb17382de0 /src/filestore/staging.rs | |
parent | 5ac28f0dae851a3401b835813548f301ed118af5 (diff) |
Remove pub from FileStoreImpl::root_path member
And replace it with a getset::Getters implementation.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/filestore/staging.rs')
-rw-r--r-- | src/filestore/staging.rs | 6 |
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({ |