diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-09-20 17:55:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-20 17:55:04 +0200 |
| commit | 016420a603bca59dde9bc22de9e11aef39329e00 (patch) | |
| tree | d159444f6d47689060a2fd610109c92a6791f8b4 /compiler/rustc_driver_impl/src/print.rs | |
| parent | 8904ff135fbf92527b657e3f4af889ae128d40c4 (diff) | |
| parent | 54b15a66d89926c4e3e719f26a46b32653d1343f (diff) | |
| download | rust-016420a603bca59dde9bc22de9e11aef39329e00.tar.gz rust-016420a603bca59dde9bc22de9e11aef39329e00.zip | |
Rollup merge of #146770 - hkBst:clippy-fix-10, r=fmease
fixes for numerous clippy warnings
Diffstat (limited to 'compiler/rustc_driver_impl/src/print.rs')
| -rw-r--r-- | compiler/rustc_driver_impl/src/print.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_driver_impl/src/print.rs b/compiler/rustc_driver_impl/src/print.rs index 70de55320f7..3f107eb7a61 100644 --- a/compiler/rustc_driver_impl/src/print.rs +++ b/compiler/rustc_driver_impl/src/print.rs @@ -14,7 +14,7 @@ macro_rules! safe_println { } pub(crate) fn print(args: fmt::Arguments<'_>) { - if let Err(_) = io::stdout().write_fmt(args) { + if io::stdout().write_fmt(args).is_err() { rustc_errors::FatalError.raise(); } } |
