add test... and fix missing final comments!

This commit is contained in:
Sébastien Besnier 2020-12-28 18:41:48 +01:00
parent 3d0a5aa89a
commit 7692bd5671
2 changed files with 26 additions and 1 deletions

View file

@ -465,6 +465,7 @@ pub fn fmt_list<'a>(
}
}
}
fmt_comments_only(buf, final_comments.iter(), NewlineAt::Top, item_indent);
newline(buf, indent);
buf.push(']');
} else {