aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-03-07 19:40:26 +0100
committerHampusM <hampus@hampusmat.com>2023-03-07 19:41:25 +0100
commit248f3dec0275f5fb673c38d999c4f7961aded188 (patch)
tree3904bbe94023c2d2648669992eea27c63094c067
parentdba1ad4edf272a192b7b5e258552c8ce87fe69ad (diff)
refactor: remove redundant match pattern in recurse_replace_ident
-rw-r--r--src/token_stream.rs5
1 files changed, 0 insertions, 5 deletions
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;