Skip to content

Commit bc40081

Browse files
committed
fix feature management on rustls
1 parent 9a74c17 commit bc40081

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/error.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ impl From<std::io::Error> for Error {
225225
}
226226
}
227227

228+
#[cfg_attr(docsrs, doc(cfg(feature = "rustls")))]
229+
#[cfg(feature = "rustls")]
228230
impl From<rustls::pki_types::InvalidDnsNameError> for Error {
229231
fn from(value: rustls::pki_types::InvalidDnsNameError) -> Self {
230232
Error::InvalidDnsName(Arc::new(value))

0 commit comments

Comments
 (0)