Skip to content

Commit

Permalink
fix: fix clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
camc314 committed Aug 31, 2024
1 parent 9416343 commit 0f68456
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,9 @@ impl Rule for ConsistentFunctionScoping {
function
.id
.as_ref()
.map(|func_binding_ident| func_binding_ident.span)
.unwrap_or(
Span::sized(function.span.start, 8), // 8 for "function"
),
.map_or(Span::sized(function.span.start, 8), |func_binding_ident| {
func_binding_ident.span
}),
)
} else if let Some(function_id) = &function.id {
(function_id.symbol_id.get().unwrap(), function_body, function_id.span())
Expand Down

0 comments on commit 0f68456

Please sign in to comment.