summaryrefslogtreecommitdiffstats
path: root/src/filestore/staging.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-12-07 13:31:38 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-12-07 13:31:38 +0100
commita9f696bdf2f54d2965a715bd79fc4d166267e20c (patch)
tree1ce089813388a4c48beb9f395793395ceaaa6219 /src/filestore/staging.rs
parent6915232f680e395a1b0329a96dba967d9105590d (diff)
Remove AsRef<Path> for StoreRoot impl
This patch reduces the mis-useable parts of the StoreRoot interface further by removing the AsRef<Path> implementation for StoreRoot. The implementation was required to unpack the tar archive stream in the staging store implementation. A function was added to do it instead. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/filestore/staging.rs')
-rw-r--r--src/filestore/staging.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/filestore/staging.rs b/src/filestore/staging.rs
index d474d1a..0fa6e03 100644
--- a/src/filestore/staging.rs
+++ b/src/filestore/staging.rs
@@ -56,8 +56,7 @@ impl StagingStore {
.context("Collecting outputs of TAR archive")?;
trace!("Unpacking archive to {}", dest.display());
- tar::Archive::new(&bytes[..])
- .unpack(dest)
+ dest.unpack_archive_here(tar::Archive::new(&bytes[..]))
.context("Unpacking TAR")
.map_err(Error::from)
.map(|_| outputs)