Skip to content

Commit

Permalink
Don't depend on deprecated description_
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger authored and djc committed Oct 4, 2023
1 parent aaf4dd7 commit 84a3053
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub enum Error {
/// Unspecified `ring` error
RingUnspecified,
/// The `ring` library rejected the key upon loading
RingKeyRejected(&'static str),
RingKeyRejected(String),
/// The provided certificate's signature algorithm
/// is incompatible with the given key pair
CertificateKeyPairMismatch,
Expand Down Expand Up @@ -106,7 +106,7 @@ impl From<ring::error::Unspecified> for Error {

impl From<ring::error::KeyRejected> for Error {
fn from(err: ring::error::KeyRejected) -> Self {
Error::RingKeyRejected(err.description_())
Error::RingKeyRejected(err.to_string())
}
}

Expand Down

0 comments on commit 84a3053

Please sign in to comment.