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