Skip to content

Commit 63fdee4

Browse files
committed
refactor: full chaining
Why, again, is the AI so fucking stupid?
1 parent 392e394 commit 63fdee4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/json.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,12 @@ fn run_json_input(tree: SampleTree, extra_args: &[&str]) -> String {
106106
};
107107
let json = serde_json::to_string_pretty(&json_data).expect("convert sample tree to JSON");
108108
let workspace = Temp::new_dir().expect("create temporary directory");
109-
let command = Command::new(PDU)
109+
let mut child = Command::new(PDU)
110110
.with_current_dir(&workspace)
111111
.with_arg("--json-input")
112112
.with_arg("--bytes-format=metric")
113113
.with_arg("--total-width=100")
114-
.with_args(extra_args);
115-
let mut child = command
114+
.with_args(extra_args)
116115
.with_stdin(Stdio::piped())
117116
.with_stdout(Stdio::piped())
118117
.with_stderr(Stdio::piped())

0 commit comments

Comments
 (0)