forked from proxmox-mirrors/proxmox
compression: indentation cleanup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
cc6e5d7372
commit
2d37cd92e0
@ -178,8 +178,14 @@ where
|
|||||||
let mut hardlinks: HashMap<u64, HashMap<u64, PathBuf>> = HashMap::new(); // dev -> inode -> first path
|
let mut hardlinks: HashMap<u64, HashMap<u64, PathBuf>> = HashMap::new(); // dev -> inode -> first path
|
||||||
|
|
||||||
for entry in WalkDir::new(&source).into_iter() {
|
for entry in WalkDir::new(&source).into_iter() {
|
||||||
match entry {
|
let entry = match entry {
|
||||||
Ok(entry) => {
|
Ok(entry) => entry,
|
||||||
|
Err(err) => {
|
||||||
|
eprintln!("zip: error reading directory entry: {}", err);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
let entry_path = entry.path().to_owned();
|
let entry_path = entry.path().to_owned();
|
||||||
let encoder = &mut encoder;
|
let encoder = &mut encoder;
|
||||||
let hardlinks = &mut hardlinks;
|
let hardlinks = &mut hardlinks;
|
||||||
@ -271,10 +277,5 @@ where
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(err) => {
|
|
||||||
eprintln!("zip: error reading directory entry: {}", err);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
@ -632,8 +632,14 @@ where
|
|||||||
let mut encoder = ZipEncoder::new(target);
|
let mut encoder = ZipEncoder::new(target);
|
||||||
|
|
||||||
for entry in WalkDir::new(&source).into_iter() {
|
for entry in WalkDir::new(&source).into_iter() {
|
||||||
match entry {
|
let entry = match entry {
|
||||||
Ok(entry) => {
|
Ok(entry) => entry,
|
||||||
|
Err(err) => {
|
||||||
|
eprintln!("zip: error reading directory entry: {}", err);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
let entry_path = entry.path().to_owned();
|
let entry_path = entry.path().to_owned();
|
||||||
let encoder = &mut encoder;
|
let encoder = &mut encoder;
|
||||||
|
|
||||||
@ -672,11 +678,6 @@ where
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(err) => {
|
|
||||||
eprintln!("zip: error reading directory entry: {}", err);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
encoder.finish().await
|
encoder.finish().await
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user