Skip to content

Commit 43cccdf

Browse files
committed
refactor(rm/linux): remove mut from dir_fd parameter in safe_remove_dir_recursive_impl
The `dir_fd` parameter was marked as mutable but is not modified within the function, so removing `mut` enforces Rust's immutability-by-default principle and improves code clarity.
1 parent f4aed24 commit 43cccdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uu/rm/src/platform/linux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ pub fn safe_remove_dir_recursive(
312312

313313
pub fn safe_remove_dir_recursive_impl(
314314
path: &Path,
315-
mut dir_fd: DirFd,
315+
dir_fd: DirFd,
316316
options: &Options,
317317
progress_bar: Option<&ProgressBar>,
318318
) -> bool {

0 commit comments

Comments
 (0)