We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a9b1fe commit 0501d4cCopy full SHA for 0501d4c
macros/src/pre_expand.rs
@@ -45,7 +45,7 @@ fn find_and_expand_match_token(cx: &mut ext::base::ExtCtxt, tts: Vec<ast::TokenT
45
while let Some(tt) = tts.next() {
46
match tt {
47
ast::TokenTree::TtToken(span, token::Token::Ident(ident, token::IdentStyle::Plain))
48
- if ident.name.as_str() == "match_token"
+ if ident.name == "match_token"
49
=> {
50
// `!`
51
if !matches!(tts.next(), Some(ast::TokenTree::TtToken(_, token::Token::Not))) {
0 commit comments