Upgrade to Rust 1.81 (#13265)

This commit is contained in:
Micha Reiser
2024-09-06 15:09:09 +02:00
committed by GitHub
parent 594dee1b0b
commit c3bcd5c842
3 changed files with 3 additions and 6 deletions

View File

@@ -97,9 +97,8 @@ impl StringParser {
#[inline]
fn next_char(&mut self) -> Option<char> {
self.source[self.cursor..].chars().next().map(|c| {
self.source[self.cursor..].chars().next().inspect(|c| {
self.cursor += c.len_utf8();
c
})
}