Skip to content

Commit ef3c39b

Browse files
committed
fix: correct error handling in native-tls downgrade message
1 parent 7f28d0e commit ef3c39b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlx-core/src/net/tls/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ where
153153
#[cfg(feature = "_tls-native-tls")]
154154
{
155155
let _ = boxed_stream; // Use the variable to avoid warning
156-
return Err(Error::tls("No way to downgrade a native-tls stream, use rustls instead, or never disable tls"));
156+
Err(Error::tls("No way to downgrade a native-tls stream, use rustls instead, or never disable tls"))
157157
}
158158
}
159159

0 commit comments

Comments
 (0)