Avoid flagging missing whitespace for decorators (#4454)

This commit is contained in:
Charlie Marsh 2023-05-16 13:15:01 -04:00 committed by GitHub
parent 7e0d018b35
commit d9c3f8e249
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View file

@ -174,7 +174,7 @@ impl TokenKind {
#[inline]
pub const fn is_unary(&self) -> bool {
matches!(self, TokenKind::Plus | TokenKind::Minus | TokenKind::Star)
matches!(self, TokenKind::Plus | TokenKind::Minus)
}
#[inline]