mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
clippy
This commit is contained in:
parent
cab096b4e1
commit
b9532cadaa
1 changed files with 4 additions and 4 deletions
|
@ -205,8 +205,8 @@ impl<'a> Formattable for Pattern<'a> {
|
|||
fn starts_with_inline_comment<'a, I: IntoIterator<Item = &'a CommentOrNewline<'a>>>(
|
||||
spaces: I,
|
||||
) -> bool {
|
||||
match spaces.into_iter().next() {
|
||||
Some(space) => matches!(space, CommentOrNewline::LineComment(_)),
|
||||
None => false,
|
||||
}
|
||||
matches!(
|
||||
spaces.into_iter().next(),
|
||||
Some(CommentOrNewline::LineComment(_))
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue