Remove an unnecessary into.

This commit is contained in:
Nicholas Nethercote 2023-12-07 18:52:11 +11:00
parent 9741dba7fa
commit adc46e5c08

View File

@ -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);
}
}