clippy fixes

This commit is contained in:
Anton-4 2024-01-01 19:19:44 +01:00
parent 3041da46f3
commit c85a25e320
No known key found for this signature in database
GPG key ID: 0971D718C0A9B937
6 changed files with 14 additions and 57 deletions

View file

@ -594,7 +594,7 @@ pub fn desugar_expr<'a>(
// line_info is an option so that we can lazily calculate it.
// That way it there are no `dbg` statements, we never pay the cast of scanning the source an extra time.
if matches!(line_info, None) {
if line_info.is_none() {
*line_info = Some(LineInfo::new(src));
}
let line_col = line_info.as_ref().unwrap().convert_pos(region.start());