Skip to content

Commit

Permalink
Implement Display for HpkeError newtype (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
divergentdave authored Apr 1, 2024
1 parent 5704c36 commit dccd450
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ cfg_if::cfg_if! {
Self(h)
}
}

impl core::fmt::Display for HpkeError {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
core::fmt::Display::fmt(&self.0, f)
}
}
} else {
pub use hpke::HpkeError;
}
Expand Down

0 comments on commit dccd450

Please sign in to comment.