Skip to content

Commit c08c802

Browse files
committed
style(rm): wrap long line in prompt_file_with_stat macro for readability
Reformatted the prompt_yes! macro call across multiple lines to improve code readability and adhere to line length conventions. No functional changes.
1 parent be31862 commit c08c802

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ fn prompt_file_with_stat(path: &Path, stat: &libc::stat, options: &Options) -> b
6868
match (stdin_ok, writable, len == 0) {
6969
(false, _, _) if options.interactive == InteractiveMode::PromptProtected => true,
7070
(_, true, _) => true,
71-
(_, false, true) => prompt_yes!("remove write-protected regular empty file {}?", path.quote()),
71+
(_, false, true) => prompt_yes!(
72+
"remove write-protected regular empty file {}?",
73+
path.quote()
74+
),
7275
_ => prompt_yes!("remove write-protected regular file {}?", path.quote()),
7376
}
7477
}

0 commit comments

Comments
 (0)