Skip to content

Commit

Permalink
fix(syn-solidity): struct fields formatting (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Oct 11, 2023
1 parent 5ef2d9f commit 8b33e7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/syn-solidity/src/variable/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ impl fmt::Display for FieldList {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
for (i, field) in self.iter().enumerate() {
if i > 0 {
f.write_str("; ")?;
f.write_str(" ")?;
}
field.fmt(f)?;
f.write_str(";")?;
}
Ok(())
}
Expand Down

0 comments on commit 8b33e7f

Please sign in to comment.