Skip to content
Snippets Groups Projects
Verified Commit 6548aad3 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Use next_byte function in all places in scanf

parent d13fb3f4
No related branches found
No related tags found
No related merge requests found
......@@ -71,8 +71,7 @@ unsafe fn inner_scanf<R: Read>(
}
while *format != 0 {
let mut c = *format as u8;
format = format.offset(1);
let mut c = next_byte(&mut format)?;
if c == b' ' {
maybe_read!(noreset);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment