Skip to content

Commit

Permalink
fix: minor spacing issue while formatting constant messages
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Sep 4, 2024
1 parent 9d32945 commit 6d98aba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protobuf-parse/src/pure/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,11 @@ impl fmt::Display for ProtobufConstant {
impl ProtobufConstantMessage {
pub fn format(&self) -> String {
let mut s = String::new();
write!(s, "{{").unwrap();
write!(s, "{{ ").unwrap();
for (n, v) in &self.fields {
match v {
ProtobufConstant::Message(m) => write!(s, "{} {}", n, m.format()).unwrap(),
v => write!(s, "{}: {}", n, v.format()).unwrap(),
v => write!(s, "{}: {} ", n, v.format()).unwrap(),
}
}
write!(s, "}}").unwrap();
Expand Down

0 comments on commit 6d98aba

Please sign in to comment.