Skip to content

Commit

Permalink
Derive Debug for age::x25519::Recipient.
Browse files Browse the repository at this point in the history
  • Loading branch information
gibbz00 committed Dec 9, 2023
1 parent 1973dea commit 81acb77
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions age/src/x25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check warning on line 189 in age/src/x25519.rs

View check run for this annotation

Codecov / codecov/patch

age/src/x25519.rs#L188-L189

Added lines #L188 - L189 were not covered by tests
}
}

impl crate::Recipient for Recipient {
fn wrap_file_key(&self, file_key: &FileKey) -> Result<Vec<Stanza>, EncryptError> {
let rng = OsRng;
Expand Down

0 comments on commit 81acb77

Please sign in to comment.