Skip to content

Commit

Permalink
Update kanin/src/extract/req_id.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Nordam Suadicani <[email protected]>
  • Loading branch information
gorm-issuu and Victor-N-Suadicani authored Aug 25, 2023
1 parent ab04384 commit 6e11997
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kanin/src/extract/req_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ impl ReqId {
}
}

/// [`AMQPValue`] does not implement `Display` but we provide a `Display` implementation for `ReqId` to allow it to be used in tracing spans (see the `tracing` crate).
impl fmt::Display for ReqId {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match &self.0 {
Expand Down

0 comments on commit 6e11997

Please sign in to comment.