Skip to content

Commit 8d36271

Browse files
clippy
1 parent 51c91f6 commit 8d36271

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codex-rs/core/tests/suite/apply_patch_cli.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,8 @@ async fn apply_patch_cli_can_use_shell_command_output_as_patch_input() -> Result
741741
fn stdout_from_shell_output(output: &str) -> String {
742742
let normalized = output.replace("\r\n", "\n").replace('\r', "\n");
743743
normalized
744-
.splitn(2, "Output:\n")
745-
.nth(1)
744+
.split_once("Output:\n")
745+
.map(|x| x.1)
746746
.unwrap_or("")
747747
.trim_end_matches('\n')
748748
.to_string()

0 commit comments

Comments
 (0)