mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
minor
This commit is contained in:
parent
904a832b7c
commit
643d235035
@ -17,7 +17,7 @@ pub(crate) struct SyntaxInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl SyntaxKind {
|
impl SyntaxKind {
|
||||||
pub(crate) fn is_trivia(self: SyntaxKind) -> bool {
|
pub(crate) fn is_trivia(self) -> bool {
|
||||||
match self {
|
match self {
|
||||||
WHITESPACE | COMMENT | DOC_COMMENT => true,
|
WHITESPACE | COMMENT | DOC_COMMENT => true,
|
||||||
_ => false,
|
_ => false,
|
||||||
|
Loading…
Reference in New Issue
Block a user