Skip to content

Commit ed919a4

Browse files
rm: fix cargo fmt style violation in map_err_context closure
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5fde2f4 commit ed919a4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/uu/rm/src/platform/unix.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,9 @@ pub fn safe_remove_dir_recursive_impl(path: &Path, dir_fd: &DirFd, options: &Opt
349349
return !options.force;
350350
}
351351
Err(e) => {
352-
let e = e.map_err_context(|| {
353-
translate!("rm-error-traversal-failed", "path" => path.display().to_string())
354-
});
352+
let e = e.map_err_context(
353+
|| translate!("rm-error-traversal-failed", "path" => path.display().to_string()),
354+
);
355355
show_error!("{e}");
356356
return true;
357357
}

0 commit comments

Comments
 (0)