diff --git a/mbedtls/src/ssl/config.rs b/mbedtls/src/ssl/config.rs index 298339e2..05451635 100644 --- a/mbedtls/src/ssl/config.rs +++ b/mbedtls/src/ssl/config.rs @@ -21,7 +21,6 @@ use crate::alloc::List as MbedtlsList; #[cfg(not(feature = "std"))] use crate::alloc_prelude::*; #[cfg(feature = "std")] -use crate::error::Error; use crate::error::{codes, IntoResult, Result}; use crate::pk::dhparam::Dhm; use crate::pk::Pk; diff --git a/mbedtls/src/ssl/context.rs b/mbedtls/src/ssl/context.rs index 6461e833..2f180e8e 100644 --- a/mbedtls/src/ssl/context.rs +++ b/mbedtls/src/ssl/context.rs @@ -458,7 +458,7 @@ impl Context { // variable for that. let peer_cert: &MbedtlsList = UnsafeFrom::from(&((*self.handle().session).peer_cert) as *const *mut x509_crt as *const *const x509_crt) - .ok_or(codes::SslBadInputData.into())?; + .ok_or::(codes::SslBadInputData.into())?; Ok(Some(peer_cert)) } }