mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-07-19 19:53:38 -04:00
Inline <Token as PartialEq<TokenKind>>::eq.
This commit is contained in:
@@ -728,6 +728,7 @@ impl Token {
|
||||
}
|
||||
|
||||
impl PartialEq<TokenKind> for Token {
|
||||
#[inline]
|
||||
fn eq(&self, rhs: &TokenKind) -> bool {
|
||||
self.kind == *rhs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user