From 248f3dec0275f5fb673c38d999c4f7961aded188 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 7 Mar 2023 19:40:26 +0100 Subject: refactor: remove redundant match pattern in recurse_replace_ident --- src/token_stream.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src') diff --git a/src/token_stream.rs b/src/token_stream.rs index 1bbf431..13df5ba 100644 --- a/src/token_stream.rs +++ b/src/token_stream.rs @@ -52,11 +52,6 @@ fn recurse_replace_ident( Some(substitution.clone()) } - TokenTree::Ident(_) if prev_token_was_prefix => { - prev_token_was_prefix = false; - - Some(substitution.clone()) - } TokenTree::Group(group) => { prev_token_was_prefix = false; -- cgit v1.2.3-18-g5258