Skip to content

Commit

Permalink
Fix compile warning when rustls + webpki is used
Browse files Browse the repository at this point in the history
  • Loading branch information
jbg committed Apr 24, 2023
1 parent da857fc commit a3c7042
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ use std::sync::Arc;

#[cfg(not(feature = "tls-insecure"))]
use anyhow::bail;
use anyhow::{Context, Result};
#[cfg(any(feature = "tls-rustls-native-roots", feature = "tls-native", feature = "tls-native-vendored"))]
use anyhow::Context;
use anyhow::Result;
use tokio_tungstenite::Connector;

#[cfg(feature = "tls-rustls-native-roots")]
Expand Down

0 comments on commit a3c7042

Please sign in to comment.