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 authored and stepancheg committed Oct 15, 2024
1 parent 63d53f8 commit 46f6cef
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 46f6cef

Please sign in to comment.