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>>>( fn starts_with_inline_comment<'a, I: IntoIterator<Item = &'a CommentOrNewline<'a>>>(
spaces: I, spaces: I,
) -> bool { ) -> bool {
match spaces.into_iter().next() { matches!(
Some(space) => matches!(space, CommentOrNewline::LineComment(_)), spaces.into_iter().next(),
None => false, Some(CommentOrNewline::LineComment(_))
} )
} }