summaryrefslogtreecommitdiffstats
path: root/src/filestore/staging.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-12-07 13:31:35 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-12-07 13:31:35 +0100
commit40f8002ea95659698cd328753ac7c98c79a8ba03 (patch)
treee07516d17f0a72eabbf758a6d4c78ea25ac876e9 /src/filestore/staging.rs
parent2a019c8bf622e1943b6d3209728570753d4bece0 (diff)
Remove StoreRoot::join_path()
Reduce mis-use possibilities by removing the join_path() method for StoreRoot. 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 992a612..df7e006 100644
--- a/src/filestore/staging.rs
+++ b/src/filestore/staging.rs
@@ -66,7 +66,7 @@ impl StagingStore {
.into_iter()
.inspect(|p| trace!("Trying to load into staging store: {}", p.display()))
.filter_map(|path| {
- if self.0.root.join_path(&path).is_dir() {
+ if self.0.root.is_dir(&path) {
None
} else {
Some({