From dccd450c4a7e3e59c3f7f33d81e5ac509e1b3c3f Mon Sep 17 00:00:00 2001 From: David Cook Date: Mon, 1 Apr 2024 14:39:23 -0500 Subject: [PATCH] Implement Display for HpkeError newtype (#57) --- src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index addc6d5cb23..1ec66b08d10 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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; }