Skip to content

Commit 36e6f95

Browse files
committed
Fix new clippy warnings.
1 parent 35d1f96 commit 36e6f95

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tests/compiletests/src/main.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -383,13 +383,10 @@ fn rust_flags(codegen_backend_path: &Path) -> String {
383383
fn map_status_to_result(status: std::process::ExitStatus) -> io::Result<()> {
384384
match status.success() {
385385
true => Ok(()),
386-
false => Err(io::Error::new(
387-
io::ErrorKind::Other,
388-
format!(
389-
"process terminated with non-zero code: {}",
390-
status.code().unwrap_or(0)
391-
),
392-
)),
386+
false => Err(io::Error::other(format!(
387+
"process terminated with non-zero code: {}",
388+
status.code().unwrap_or(0)
389+
))),
393390
}
394391
}
395392

0 commit comments

Comments
 (0)