We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b073baf commit e7663f9Copy full SHA for e7663f9
sqlx-core/src/net/tls/mod.rs
@@ -145,13 +145,8 @@ where
145
MaybeTlsStream::Tls(stream) => {
146
#[cfg(feature = "_tls-rustls")]
147
let raw = stream.into_inner().0;
148
-
149
- #[cfg(all(feature = "_rt-async-std", feature = "_tls-native-tls"))]
150
- let raw = stream.into_inner();
151
152
- #[cfg(all(not(feature = "_rt-async-std"), feature = "_tls-native-tls"))]
153
- let raw = stream.into_inner().into_inner().into_inner();
154
+ #[cfg(feature = "_tls-native-tls")]
+ let raw = unimplemented!("No way to downgrade a native-tls stream, use rustls instead, or never disable tls");
155
raw
156
}
157
0 commit comments