Skip to content

Commit

Permalink
Merge pull request #773 from akoshelev/receive-gate-log
Browse files Browse the repository at this point in the history
Use strings in Compact gate Display
  • Loading branch information
martinthomson authored Aug 10, 2023
2 parents 00e80cc + df0f01e commit 2ffce66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/protocol/step/compact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ impl From<&str> for Compact {

impl Display for Compact {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.0)
write!(f, "{}", self.as_ref())
}
}

impl Debug for Compact {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f, "step={}", self.0)
write!(f, "gate[{}]={}", self.0, self.as_ref())
}
}

Expand Down

0 comments on commit 2ffce66

Please sign in to comment.