1
Fork 0

fix a couple clippy:complexitys

double_parens
 filter_map_identity
 needless_question_mark
 redundant_guards
This commit is contained in:
Matthias Krüger 2024-10-12 11:52:30 +02:00
parent be01dabfef
commit dab76eccdf
4 changed files with 6 additions and 6 deletions

View file

@ -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}"))
})?)
})
}
///////////////////////////////////////////////////////////////////////////