From 81acb7773c7bc206e1a1ed983f961fbaec5499a0 Mon Sep 17 00:00:00 2001 From: gibbz00 Date: Sat, 9 Dec 2023 11:25:31 +0100 Subject: [PATCH] Derive `Debug` for `age::x25519::Recipient`. --- age/src/x25519.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/age/src/x25519.rs b/age/src/x25519.rs index df73dbda..ec01e87e 100644 --- a/age/src/x25519.rs +++ b/age/src/x25519.rs @@ -184,6 +184,12 @@ impl fmt::Display for Recipient { } } +impl fmt::Debug for Recipient { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + write!(f, "{}", self) + } +} + impl crate::Recipient for Recipient { fn wrap_file_key(&self, file_key: &FileKey) -> Result, EncryptError> { let rng = OsRng;