diff --git a/src/output.rs b/src/output.rs index 2f9e1b6..2d635e8 100644 --- a/src/output.rs +++ b/src/output.rs @@ -151,8 +151,7 @@ pub fn print(duplicates: DashMap>, opts: &Params) { // we extract the file size of the first file in the group let size = f.1.first() - .and_then(|ff| Some(&ff.path)) - .and_then(|p| fs::metadata(p).ok()) + .and_then(|ff| fs::metadata(&ff.path).ok()) .and_then(|m| Some(m.len())); (f.0, f.1, size) })