Use next_byte function in all places in scanf

This commit is contained in:
Jeremy Soller
2019-03-27 21:32:02 -06:00
parent d13fb3f42b
commit 6548aad36d
+1 -2
View File
@@ -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);