We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ee0de7 commit 7ff7604Copy full SHA for 7ff7604
crates/extensions/tedge_flows/src/flow.rs
@@ -256,9 +256,7 @@ impl Message {
256
257
impl std::fmt::Display for Message {
258
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
259
- '['.fmt(f)?;
260
- self.topic.fmt(f)?;
261
- "] ".fmt(f)?;
+ write!(f, "[{}] ", self.topic)?;
262
match &self.payload_str() {
263
Some(str) => str.fmt(f),
264
None => format!("{:?}", self.payload).fmt(f),
0 commit comments