Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJDen committed Jul 19, 2024
1 parent adaab47 commit 7a4dd74
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ impl Rule for NoExtraneousClass {
{
return;
}
let span = class.id.as_ref().map(|id| id.span).unwrap_or(class.span);
let span = class.id.as_ref().map_or(class.span, |id| id.span);
let body = &class.body.body;
match body.as_slice() {
[] => {
Expand Down

0 comments on commit 7a4dd74

Please sign in to comment.