Skip to content

Commit

Permalink
fix(records): implement Display for Sender and Receiver (#198) (#199)
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Loudet <[email protected]>
  • Loading branch information
J-Loudet authored Feb 27, 2024
1 parent cac9adb commit 0f168c9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions zenoh-flow-records/src/connectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ pub struct SenderRecord {
}

impl Display for SenderRecord {
fn fmt(&self, _f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
todo!()
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "Sender < {} > publishing on: {}", self.id, self.resource)
}
}

Expand Down Expand Up @@ -60,8 +60,12 @@ pub struct ReceiverRecord {
}

impl Display for ReceiverRecord {
fn fmt(&self, _f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
todo!()
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"Receiver < {} > subscribed on: {}",
self.id, self.resource
)
}
}

Expand Down

0 comments on commit 0f168c9

Please sign in to comment.