Skip to content

Commit

Permalink
Add IfDesugar to desugaring_name
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed May 11, 2019
1 parent 26ebc3e commit 5661e59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clippy_lints/src/utils/author.rs
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,10 @@ fn desugaring_name(des: hir::MatchSource) -> String {
"MatchSource::IfLetDesugar {{ contains_else_clause: {} }}",
contains_else_clause
),
hir::MatchSource::IfDesugar { contains_else_clause } => format!(
"MatchSource::IfDesugar {{ contains_else_clause: {} }}",
contains_else_clause
),
hir::MatchSource::AwaitDesugar => "MatchSource::AwaitDesugar".to_string(),
}
}
Expand Down

0 comments on commit 5661e59

Please sign in to comment.