Skip to content

Commit

Permalink
Remove an unnecessary into.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Dec 8, 2023
1 parent 9741dba commit adc46e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_lexer/src/unescape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit adc46e5

Please sign in to comment.