Skip to content

Commit 5f13335

Browse files
committed
formatting
1 parent 225f8fc commit 5f13335

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

util/process_wrapper/main.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ fn main() -> Result<(), ProcessWrapperError> {
216216
.create(true)
217217
.truncate(true)
218218
.write(true)
219-
.open(&tf)
219+
.open(tf)
220220
.map_err(|e| ProcessWrapperError(format!("failed to create touch file: {}", e)))?;
221221
}
222222
if let Some((copy_source, copy_dest)) = opts.copy_output {
@@ -234,11 +234,12 @@ fn main() -> Result<(), ProcessWrapperError> {
234234
.create(true)
235235
.truncate(true)
236236
.write(true)
237-
.open(&ecf)
237+
.open(ecf)
238238
.map_err(|e| ProcessWrapperError(format!("failed to create exit code file: {}", e)))?;
239239
let mut writer = io::LineWriter::new(exit_code_file);
240-
writeln!(writer, "{}", code)
241-
.map_err(|e| ProcessWrapperError(format!("failed to write exit code to file: {}", e)))?;
240+
writeln!(writer, "{}", code).map_err(|e| {
241+
ProcessWrapperError(format!("failed to write exit code to file: {}", e))
242+
})?;
242243
}
243244

244245
if opts.forward_exit_code {

0 commit comments

Comments
 (0)