Fix clippy lints re: docs indentation + unused feature

This commit is contained in:
Rushil Mehra 2024-07-29 10:45:26 -07:00 committed by Rushil Mehra
parent 5dce4d331b
commit 04abc99fb2
3 changed files with 12 additions and 12 deletions

View File

@ -534,9 +534,9 @@ impl SelectCertError {
/// Extension types, to be used with `ClientHello::get_extension`. /// Extension types, to be used with `ClientHello::get_extension`.
/// ///
/// NOTE: The current implementation of `From` is unsound, as it's possible to create an ExtensionType /// **WARNING**: The current implementation of `From` is unsound, as it's possible to create an
/// that is not defined by the impl. `From` will be deprecated in favor of `TryFrom` in the next /// ExtensionType that is not defined by the impl. `From` will be deprecated in favor of `TryFrom`
/// major bump of the library. /// in the next major bump of the library.
#[derive(Debug, Copy, Clone, PartialEq, Eq)] #[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct ExtensionType(u16); pub struct ExtensionType(u16);
@ -645,7 +645,7 @@ impl fmt::Display for SslVersion {
/// A signature verification algorithm. /// A signature verification algorithm.
/// ///
/// NOTE: The current implementation of `From` is unsound, as it's possible to create an /// **WARNING**: The current implementation of `From` is unsound, as it's possible to create an
/// SslSignatureAlgorithm that is not defined by the impl. `From` will be deprecated in favor of /// SslSignatureAlgorithm that is not defined by the impl. `From` will be deprecated in favor of
/// `TryFrom` in the next major bump of the library. /// `TryFrom` in the next major bump of the library.
#[repr(transparent)] #[repr(transparent)]

View File

@ -469,7 +469,7 @@ fn refcount_ssl_context() {
#[test] #[test]
#[cfg_attr(target_os = "windows", ignore)] #[cfg_attr(target_os = "windows", ignore)]
#[cfg_attr(all(target_os = "macos", feature = "vendored"), ignore)] #[cfg_attr(all(target_os = "macos"), ignore)]
fn default_verify_paths() { fn default_verify_paths() {
let mut ctx = SslContext::builder(SslMethod::tls()).unwrap(); let mut ctx = SslContext::builder(SslMethod::tls()).unwrap();
ctx.set_default_verify_paths().unwrap(); ctx.set_default_verify_paths().unwrap();