1
Fork 0

syntax: Remove Deref impl from Token

This commit is contained in:
Vadim Petrochenkov 2019-06-08 22:38:23 +03:00
parent 0ca3c2f881
commit 25b05147b3
10 changed files with 45 additions and 66 deletions

View file

@ -126,14 +126,6 @@ impl TokenTree {
}
}
/// Indicates if the stream is a token that is equal to the provided token.
pub fn eq_token(&self, t: TokenKind) -> bool {
match self {
TokenTree::Token(token) => *token == t,
_ => false,
}
}
pub fn joint(self) -> TokenStream {
TokenStream::new(vec![(self, Joint)])
}