Skip to content

Commit 7774ea8

Browse files
committed
fix: builder Error
1 parent 7a12e6e commit 7774ea8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/proxy/builder.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ use tokio_tungstenite::Connector;
2323
#[derive(Debug, Error)]
2424
#[non_exhaustive]
2525
pub enum Error {
26+
#[cfg(feature = "native-tls-client")]
27+
#[cfg_attr(docsrs, doc(cfg(feature = "native-tls-client")))]
2628
#[error("{0}")]
2729
NativeTls(#[from] hyper_tls::native_tls::Error),
30+
#[cfg(feature = "rustls-client")]
31+
#[cfg_attr(docsrs, doc(cfg(feature = "rustls-client")))]
2832
#[error("{0}")]
2933
Rustls(#[from] tokio_rustls::rustls::Error),
3034
}
@@ -59,7 +63,8 @@ pub enum Error {
5963
/// .with_addr(std::net::SocketAddr::from(([127, 0, 0, 1], 0)))
6064
/// .with_ca(ca)
6165
/// .with_rustls_client(aws_lc_rs::default_provider())
62-
/// .build();
66+
/// .build()
67+
/// .expect("Failed to create proxy");
6368
/// # }
6469
/// ```
6570
#[derive(Clone, Debug, PartialEq, Eq, Hash)]

0 commit comments

Comments
 (0)