Skip to content

Commit

Permalink
fix: builder Error
Browse files Browse the repository at this point in the history
  • Loading branch information
omjadas committed Sep 22, 2024
1 parent 7a12e6e commit 7774ea8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/proxy/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ use tokio_tungstenite::Connector;
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum Error {
#[cfg(feature = "native-tls-client")]
#[cfg_attr(docsrs, doc(cfg(feature = "native-tls-client")))]
#[error("{0}")]
NativeTls(#[from] hyper_tls::native_tls::Error),
#[cfg(feature = "rustls-client")]
#[cfg_attr(docsrs, doc(cfg(feature = "rustls-client")))]
#[error("{0}")]
Rustls(#[from] tokio_rustls::rustls::Error),
}
Expand Down Expand Up @@ -59,7 +63,8 @@ pub enum Error {
/// .with_addr(std::net::SocketAddr::from(([127, 0, 0, 1], 0)))
/// .with_ca(ca)
/// .with_rustls_client(aws_lc_rs::default_provider())
/// .build();
/// .build()
/// .expect("Failed to create proxy");
/// # }
/// ```
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
Expand Down

0 comments on commit 7774ea8

Please sign in to comment.