Skip to content

Commit 7ff7604

Browse files
committed
fixup! Passing binary payloads to flows
1 parent 2ee0de7 commit 7ff7604

File tree

1 file changed

+1
-3
lines changed
  • crates/extensions/tedge_flows/src

1 file changed

+1
-3
lines changed

crates/extensions/tedge_flows/src/flow.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,7 @@ impl Message {
256256

257257
impl std::fmt::Display for Message {
258258
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
259-
'['.fmt(f)?;
260-
self.topic.fmt(f)?;
261-
"] ".fmt(f)?;
259+
write!(f, "[{}] ", self.topic)?;
262260
match &self.payload_str() {
263261
Some(str) => str.fmt(f),
264262
None => format!("{:?}", self.payload).fmt(f),

0 commit comments

Comments
 (0)