This commit is contained in:
Richard Feldman 2022-07-03 22:47:41 -04:00
parent cab096b4e1
commit b9532cadaa
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798

View file

@ -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(_))
)
}