Mostly cosmetic, as having extra , and such is within spec.
I think before there was concern about iter().peekable()? Or maybe misunderstandings from a bunch of other commits. Here's a small example of this pattern, but it gets completely optimized out. This is actually faster because there's no String being allocated, and it's going straight into the fmt buffer.
https://godbolt.org/z/n1qfbTWs8
Mostly cosmetic, as having extra
,
and such is within spec.I think before there was concern about
iter().peekable()
? Or maybe misunderstandings from a bunch of other commits. Here's a small example of this pattern, but it gets completely optimized out. This is actually faster because there's no String being allocated, and it's going straight into the fmt buffer. https://godbolt.org/z/n1qfbTWs8