Skip to content

Commit

Permalink
Fix trailing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcampbell committed Dec 8, 2024
1 parent 408d084 commit 11479d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions consumer/src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,12 +341,12 @@ impl<T> fmt::Display for ShortNodeList<'_, T> {
write!(f, "[")?;
let mut iter = self.0.iter();
for i in 0..10 {
if i != 0 {
write!(f, ", ")?;
}
let Some((id, _)) = iter.next() else {
break;
};
if i != 0 {
write!(f, ", ")?;
}
write!(f, "#{}", id.0)?;
}
if iter.next().is_some() {
Expand Down

0 comments on commit 11479d6

Please sign in to comment.