Clean up imports after last commit

This commit is contained in:
Nathan Fisher 2023-03-30 19:07:12 -04:00
parent 71a87a506e
commit eae02ce616
2 changed files with 5 additions and 12 deletions

View File

@ -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()),

View File

@ -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};