Skip to content

Commit 93a9794

Browse files
committed
fixup! fixup! Passing binary payloads to flows
1 parent e926d2f commit 93a9794

File tree

1 file changed

+2
-2
lines changed
  • crates/extensions/tedge_flows/src

1 file changed

+2
-2
lines changed

crates/extensions/tedge_flows/src/flow.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ impl std::fmt::Display for Message {
258258
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
259259
write!(f, "[{}] ", self.topic)?;
260260
match &self.payload_str() {
261-
Some(str) => str.fmt(f),
262-
None => format!("{:?}", self.payload).fmt(f),
261+
Some(str) => write!(f, "{str}"),
262+
None => write!(f, "{:?}", self.payload),
263263
}
264264
}
265265
}

0 commit comments

Comments
 (0)