diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-07 18:52:11 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-09 09:30:32 +1100 |
| commit | adc46e5c08df7d3fe68293ee94add19b653b20aa (patch) | |
| tree | c93d5bb4c04c3ed6d5e48a3a0417483fbe4583c9 | |
| parent | 9741dba7fa3fd61a8851e906861ac88bc527ca4c (diff) | |
| download | rust-adc46e5c08df7d3fe68293ee94add19b653b20aa.tar.gz rust-adc46e5c08df7d3fe68293ee94add19b653b20aa.zip | |
Remove an unnecessary `into`.
| -rw-r--r-- | compiler/rustc_lexer/src/unescape.rs | 2 |
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); } } |
