Skip to content

Commit fb4e871

Browse files
committed
fix rustfmt.
1 parent d989402 commit fb4e871

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

codex-rs/core/src/command_safety/windows_safe_commands.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,16 @@ fn is_safe_powershell_command(words: &[String]) -> bool {
153153
.to_ascii_lowercase();
154154
if matches!(
155155
inner.as_str(),
156-
"set-content" | "add-content" | "out-file" | "new-item" | "remove-item"
157-
| "move-item" | "copy-item" | "rename-item" | "start-process" | "stop-process"
156+
"set-content"
157+
| "add-content"
158+
| "out-file"
159+
| "new-item"
160+
| "remove-item"
161+
| "move-item"
162+
| "copy-item"
163+
| "rename-item"
164+
| "start-process"
165+
| "stop-process"
158166
) {
159167
// Examples rejected here: "Write-Output (Set-Content foo6.txt 'abc')" and "Get-Content (New-Item bar.txt)".
160168
return false;

0 commit comments

Comments
 (0)