summaryrefslogtreecommitdiffstats
path: root/src/filestore/staging.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-11-08 20:09:16 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-11-08 20:53:41 +0100
commit3ae736b019b7c8bf749da8bc15d8948faaba1855 (patch)
tree7f4a50670e95df8d2088899666edbc57960dc5ca /src/filestore/staging.rs
parent54106763f8e5bd81d0255d9537c5334dc68b1b30 (diff)
Remove unused imports, sort imports
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/filestore/staging.rs')
-rw-r--r--src/filestore/staging.rs15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/filestore/staging.rs b/src/filestore/staging.rs
index 361da53..d471d44 100644
--- a/src/filestore/staging.rs
+++ b/src/filestore/staging.rs
@@ -1,19 +1,19 @@
+use std::fmt::Debug;
use std::path::Path;
use std::path::PathBuf;
-use std::fmt::Debug;
-use anyhow::anyhow;
-use anyhow::Result;
-use anyhow::Error;
use anyhow::Context;
-use indicatif::ProgressBar;
+use anyhow::Error;
+use anyhow::Result;
+use anyhow::anyhow;
use futures::stream::Stream;
-use resiter::Map;
+use indicatif::ProgressBar;
use resiter::Filter;
+use resiter::Map;
use tar;
-use crate::filestore::util::FileStoreImpl;
use crate::filestore::Artifact;
+use crate::filestore::util::FileStoreImpl;
// The implementation of this type must be available in the merged filestore.
pub struct StagingStore(pub (in crate::filestore) FileStoreImpl);
@@ -38,7 +38,6 @@ impl StagingStore {
where S: Stream<Item = Result<Vec<u8>>>
{
use futures::stream::TryStreamExt;
- use std::io::Read;
let dest = &self.0.root;
stream.try_concat()