Skip to content

Commit 0501d4c

Browse files
committed
Remove unnecessary .as_str() call.
1 parent 8a9b1fe commit 0501d4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

macros/src/pre_expand.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fn find_and_expand_match_token(cx: &mut ext::base::ExtCtxt, tts: Vec<ast::TokenT
4545
while let Some(tt) = tts.next() {
4646
match tt {
4747
ast::TokenTree::TtToken(span, token::Token::Ident(ident, token::IdentStyle::Plain))
48-
if ident.name.as_str() == "match_token"
48+
if ident.name == "match_token"
4949
=> {
5050
// `!`
5151
if !matches!(tts.next(), Some(ast::TokenTree::TtToken(_, token::Token::Not))) {

0 commit comments

Comments
 (0)