(hopefully) fix pprust error

This commit is contained in:
Andre Bogus 2017-05-16 09:21:30 +02:00
parent 958c67d9c8
commit 282b40249e

View File

@ -961,9 +961,11 @@ impl<'a> State<'a> {
{
self.rbox(0, b)?;
let len = elts.len();
for (i, elt) in elts.iter().enumerate() {
let mut i = 0;
for elt in elts {
self.maybe_print_comment(get_span(elt).hi)?;
op(self, elt)?;
i += 1;
if i < len {
word(&mut self.s, ",")?;
self.maybe_print_trailing_comment(get_span(elt),