Clean up imports after last commit
This commit is contained in:
parent
71a87a506e
commit
eae02ce616
@ -14,7 +14,7 @@ use {
|
||||
Mutex,
|
||||
},
|
||||
},
|
||||
walkdir::{DirEntry, WalkDir},
|
||||
walkdir::WalkDir,
|
||||
zstd::Encoder,
|
||||
};
|
||||
|
||||
@ -48,7 +48,7 @@ impl Creator {
|
||||
})
|
||||
}
|
||||
|
||||
fn from_list(list: &[&str], specs: Specs) -> Result<Self, io::Error> {
|
||||
pub fn from_list(list: &[&str], specs: Specs) -> Result<Self, io::Error> {
|
||||
let entries = list.iter().map(|x| Path::new(x).to_path_buf()).collect();
|
||||
Ok(Self {
|
||||
path: env::current_dir().unwrap_or(Path::new("/").to_path_buf()),
|
||||
|
@ -1,25 +1,18 @@
|
||||
use crate::Item;
|
||||
use std::{fs, path::PathBuf};
|
||||
use tar::Owner;
|
||||
use zstd::Encoder;
|
||||
|
||||
mod dependency;
|
||||
mod specs;
|
||||
|
||||
use {
|
||||
crate::{Entry, Plist, Version},
|
||||
rayon::prelude::*,
|
||||
crate::{Plist, Version},
|
||||
ron::ser::{to_string_pretty, PrettyConfig},
|
||||
serde::{Deserialize, Serialize},
|
||||
std::{
|
||||
env,
|
||||
fs,
|
||||
error::Error,
|
||||
fs::File,
|
||||
io::{BufWriter, Write},
|
||||
path::Path,
|
||||
},
|
||||
tar::Node,
|
||||
walkdir::WalkDir,
|
||||
tar::{Node, Owner},
|
||||
};
|
||||
|
||||
pub use {dependency::Dependency, specs::Specs};
|
||||
|
Loading…
Reference in New Issue
Block a user