about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-12-07 18:52:11 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-09 09:30:32 +1100
commitadc46e5c08df7d3fe68293ee94add19b653b20aa (patch)
treec93d5bb4c04c3ed6d5e48a3a0417483fbe4583c9
parent9741dba7fa3fd61a8851e906861ac88bc527ca4c (diff)
downloadrust-adc46e5c08df7d3fe68293ee94add19b653b20aa.tar.gz
rust-adc46e5c08df7d3fe68293ee94add19b653b20aa.zip
Remove an unnecessary `into`.
-rw-r--r--compiler/rustc_lexer/src/unescape.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lexer/src/unescape.rs b/compiler/rustc_lexer/src/unescape.rs
index 8c5b2e3635e..72cb78f82a2 100644
--- a/compiler/rustc_lexer/src/unescape.rs
+++ b/compiler/rustc_lexer/src/unescape.rs
@@ -353,7 +353,7 @@ where
             _ => ascii_check(c, chars_should_be_ascii).map(Into::into),
         };
         let end = src.len() - chars.as_str().len();
-        callback(start..end, res.map(Into::into));
+        callback(start..end, res);
     }
 }