diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-10-12 11:52:30 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2024-10-23 22:15:59 +0200 |
| commit | dab76eccdfbb6f7b4b445ad05ba4ef004c43e130 (patch) | |
| tree | 93d95a7b50a79dde7cb60f8b450d9075f2439787 /compiler/rustc_middle | |
| parent | be01dabfefd2daa4574b974f571c7852085d60cb (diff) | |
| download | rust-dab76eccdfbb6f7b4b445ad05ba4ef004c43e130.tar.gz rust-dab76eccdfbb6f7b4b445ad05ba4ef004c43e130.zip | |
fix a couple clippy:complexitys
double_parens filter_map_identity needless_question_mark redundant_guards
Diffstat (limited to 'compiler/rustc_middle')
| -rw-r--r-- | compiler/rustc_middle/src/mir/pretty.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/mir/pretty.rs b/compiler/rustc_middle/src/mir/pretty.rs index 2a3a070a6e7..faa022b50ef 100644 --- a/compiler/rustc_middle/src/mir/pretty.rs +++ b/compiler/rustc_middle/src/mir/pretty.rs @@ -277,9 +277,9 @@ pub fn create_dump_file<'tcx>( ) })?; } - Ok(fs::File::create_buffered(&file_path).map_err(|e| { + fs::File::create_buffered(&file_path).map_err(|e| { io::Error::new(e.kind(), format!("IO error creating MIR dump file: {file_path:?}; {e}")) - })?) + }) } /////////////////////////////////////////////////////////////////////////// |
