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 committed Oct 3, 2023
1 parent 471943b commit 015b450
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 @@ -27,7 +27,7 @@ pub enum RcgenError {
/// 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 @@ -107,7 +107,7 @@ impl From<ring::error::Unspecified> for RcgenError {

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

Expand Down

0 comments on commit 015b450

Please sign in to comment.