1
Fork 0

Remove identity casts

This commit is contained in:
Nilstrieb 2023-04-09 23:07:45 +02:00
parent 81c320ea77
commit 4b4948c2e3
8 changed files with 11 additions and 11 deletions

View file

@ -558,8 +558,8 @@ impl<'a> StringReader<'a> {
}
if let Some(possible_offset) = possible_offset {
let lo = start + BytePos(possible_offset as u32);
let hi = lo + BytePos(found_terminators as u32);
let lo = start + BytePos(possible_offset);
let hi = lo + BytePos(found_terminators);
let span = self.mk_sp(lo, hi);
err.span_suggestion(
span,