cleaning imports and warnings

This commit is contained in:
grimhilt
2023-06-17 01:26:13 +02:00
parent ea2b0772af
commit b16058b4d3
7 changed files with 15 additions and 22 deletions

View File

@@ -57,7 +57,7 @@ pub fn add_tree(path: &Path) -> io::Result<()> {
}
pub fn rm_blob(path: &Path) -> io::Result<()> {
let (line, hash, name) = parse_path(path.clone(), true);
let (line, hash, _) = parse_path(path.clone(), true);
// remove blob reference to parent
if path.iter().count() == 1 {
@@ -111,7 +111,7 @@ fn hash_obj(obj: &str) -> (String, String) {
(String::from(dir), String::from(res))
}
fn object_path(obj: &str) -> PathBuf {
fn _object_path(obj: &str) -> PathBuf {
let mut root = match path::objects() {
Some(path) => path,
None => todo!(),