From 5ef5ecb5ebf22d480917a6457ffccdd037bc7743 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Wed, 25 Oct 2023 22:58:16 -0400 Subject: [PATCH] Revert "drop unused From impl" This reverts commit 8d9d223cbc011bc15d3171e8d16b681e392964ac. --- src/rust/cryptography-x509-validation/src/policy/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rust/cryptography-x509-validation/src/policy/mod.rs b/src/rust/cryptography-x509-validation/src/policy/mod.rs index 14276f7e836e..24cd1ea0ff65 100644 --- a/src/rust/cryptography-x509-validation/src/policy/mod.rs +++ b/src/rust/cryptography-x509-validation/src/policy/mod.rs @@ -130,6 +130,12 @@ impl From for PolicyError { } } +impl From 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)