From 46f6cef6ce7e3fcad4904adf4ea0a48b77d0df19 Mon Sep 17 00:00:00 2001 From: "Victor M. Alvarez" Date: Wed, 4 Sep 2024 19:13:15 +0200 Subject: [PATCH] fix: minor spacing issue while formatting constant messages --- protobuf-parse/src/pure/model.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protobuf-parse/src/pure/model.rs b/protobuf-parse/src/pure/model.rs index 8e2cb5fa9..25a57de47 100644 --- a/protobuf-parse/src/pure/model.rs +++ b/protobuf-parse/src/pure/model.rs @@ -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();