Skip to content

Commit 7ea5e20

Browse files
committed
Add IfDesugar to desugaring_name
1 parent 9df227c commit 7ea5e20

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clippy_lints/src/utils/author.rs

+4
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,10 @@ fn desugaring_name(des: hir::MatchSource) -> String {
665665
"MatchSource::IfLetDesugar {{ contains_else_clause: {} }}",
666666
contains_else_clause
667667
),
668+
hir::MatchSource::IfDesugar { contains_else_clause } => format!(
669+
"MatchSource::IfDesugar {{ contains_else_clause: {} }}",
670+
contains_else_clause
671+
),
668672
hir::MatchSource::AwaitDesugar => "MatchSource::AwaitDesugar".to_string(),
669673
}
670674
}

0 commit comments

Comments
 (0)