Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
4JX committed Jan 5, 2023
1 parent fa96a50 commit 815e869
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/async_impl/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use super::response::Response;
use super::Body;
#[cfg(feature = "__chrome")]
use crate::browser::{configure_chrome, ChromeVersion};
use crate::connect::{Connector};
use crate::connect::Connector;
#[cfg(feature = "cookies")]
use crate::cookie;
#[cfg(feature = "trust-dns")]
Expand Down
12 changes: 10 additions & 2 deletions src/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ impl Certificate {
/// # Ok(())
/// # }
/// ```
#[cfg(any(not(feature = "__boring"), feature = "native-tls-crate", feature = "__rustls"))]
#[cfg(any(
not(feature = "__boring"),
feature = "native-tls-crate",
feature = "__rustls"
))]
pub fn from_der(der: &[u8]) -> crate::Result<Certificate> {
Ok(Certificate {
#[cfg(feature = "native-tls-crate")]
Expand All @@ -98,7 +102,11 @@ impl Certificate {
/// # Ok(())
/// # }
/// ```
#[cfg(any(not(feature = "__boring"), feature = "native-tls-crate", feature = "__rustls"))]
#[cfg(any(
not(feature = "__boring"),
feature = "native-tls-crate",
feature = "__rustls"
))]
pub fn from_pem(pem: &[u8]) -> crate::Result<Certificate> {
Ok(Certificate {
#[cfg(feature = "native-tls-crate")]
Expand Down

0 comments on commit 815e869

Please sign in to comment.