Skip to content

Commit

Permalink
clippy!
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomocavalieri committed Feb 21, 2025
1 parent 9a3024c commit 74f16c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-core/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ where
}
if tail.is_some()
&& elements.is_empty()
&& elements_after_tail.as_ref().map_or(true, |e| e.is_empty())
&& elements_after_tail.as_ref().is_none_or(|e| e.is_empty())
{
return parse_error(
ParseErrorType::ListSpreadWithoutElements,
Expand Down

0 comments on commit 74f16c5

Please sign in to comment.