mirror of
https://github.com/astral-sh/ruff
synced 2026-01-08 15:14:19 -05:00
Upgrade to Rust 1.81 (#13265)
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user