Skip to content

Commit

Permalink
Revert "drop unused From impl"
Browse files Browse the repository at this point in the history
This reverts commit 8d9d223.
  • Loading branch information
woodruffw committed Oct 26, 2023
1 parent 8d9d223 commit 5ef5ecb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/rust/cryptography-x509-validation/src/policy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ impl From<asn1::ParseError> for PolicyError {
}
}

impl From<DuplicateExtensionsError> for PolicyError {
fn from(value: DuplicateExtensionsError) -> Self {
Self::DuplicateExtension(value)
}
}

impl From<&'static str> for PolicyError {
fn from(value: &'static str) -> Self {
Self::Other(value)
Expand Down

0 comments on commit 5ef5ecb

Please sign in to comment.