From 8a436e7550f8e631440e02ebb79e216b15b931cc Mon Sep 17 00:00:00 2001 From: Constantin Nickel Date: Tue, 25 Apr 2023 22:22:36 +0200 Subject: [PATCH] Remove unused `TlsError::Webpki` error variant The error variant is no longer needed since `rustls` 0.21. --- Cargo.toml | 7 +------ src/error.rs | 4 ---- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d33c2b3..f1ad7fe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ native-tls = ["native-tls-crate"] native-tls-vendored = ["native-tls", "native-tls-crate/vendored"] rustls-tls-native-roots = ["__rustls-tls", "rustls-native-certs"] rustls-tls-webpki-roots = ["__rustls-tls", "webpki-roots"] -__rustls-tls = ["rustls", "webpki"] +__rustls-tls = ["rustls"] [dependencies] data-encoding = { version = "2", optional = true } @@ -52,11 +52,6 @@ version = "0.21.0" optional = true version = "0.6.0" -[dependencies.webpki] -optional = true -version = "0.22" -features = ["std"] - [dependencies.webpki-roots] optional = true version = "0.23" diff --git a/src/error.rs b/src/error.rs index c830024..b9a957f 100644 --- a/src/error.rs +++ b/src/error.rs @@ -271,10 +271,6 @@ pub enum TlsError { #[cfg(feature = "__rustls-tls")] #[error("rustls error: {0}")] Rustls(#[from] rustls::Error), - /// Webpki error. - #[cfg(feature = "__rustls-tls")] - #[error("webpki error: {0}")] - Webpki(#[from] webpki::Error), /// DNS name resolution error. #[cfg(feature = "__rustls-tls")] #[error("Invalid DNS name")]