mirror of
https://github.com/astral-sh/ruff
synced 2026-01-08 15:14:19 -05:00
Remove Token::is_trivia method (#11962)
Sorry, a leftover from my rebase
This commit is contained in:
@@ -43,12 +43,6 @@ impl Token {
|
||||
(self.kind, self.range)
|
||||
}
|
||||
|
||||
/// Returns `true` if this is a trivia token.
|
||||
#[inline]
|
||||
pub const fn is_trivia(self) -> bool {
|
||||
matches!(self.kind, TokenKind::Comment | TokenKind::NonLogicalNewline)
|
||||
}
|
||||
|
||||
/// Returns `true` if the current token is a triple-quoted string of any kind.
|
||||
///
|
||||
/// # Panics
|
||||
|
||||
Reference in New Issue
Block a user