minor code cleanups

This commit is contained in:
auronandace
2026-04-03 14:39:56 +01:00
parent 19b0b44eb9
commit b4009544a8
4 changed files with 9 additions and 14 deletions
+1 -2
View File
@@ -610,9 +610,8 @@ impl<'a, T: c_str::Kind> Iterator for PrintfIter<'a, T> {
self.format = first_percent.split_first().expect("must be %").1;
let mut peekahead = self.format;
let index = pop_index(&mut peekahead).map(|i| {
let index = pop_index(&mut peekahead).inspect(|i| {
self.format = peekahead;
i
});
// Flags: