Simplify further

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2026-01-25 19:55:57 +02:00
parent 0a4c2fe3dc
commit 5d08307892

View File

@@ -10,7 +10,7 @@ struct Args {
fn compute_size(path: PathBuf) -> Result<u64, std::io::Error> {
if path.is_dir() {
std::fs::read_dir(path)?.try_fold(0_u64, |counter, entry| -> Result<u64, std::io::Error> {
std::fs::read_dir(path)?.try_fold(0_u64, |counter, entry| {
Ok(counter + compute_size(entry?.path())?)
})
} else {