syntax: Remove Deref
impl from Token
This commit is contained in:
parent
0ca3c2f881
commit
25b05147b3
10 changed files with 45 additions and 66 deletions
|
@ -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)])
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue