diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-12-07 13:31:38 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-12-07 13:31:38 +0100 |
commit | a9f696bdf2f54d2965a715bd79fc4d166267e20c (patch) | |
tree | 1ce089813388a4c48beb9f395793395ceaaa6219 /src/filestore/staging.rs | |
parent | 6915232f680e395a1b0329a96dba967d9105590d (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.rs | 3 |
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) |