mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
stdlib: remove unused warning on sock_wait() (#8303)
The function is used in 'feature = ssl'. However, the current codebase defines it without a conditional compilation expression and always be compiled. This commit removes the unused warning by adding a conditional compilation expression, '#[cfg(feature = "ssl")]'.
This commit is contained in:
1 parent
267a7dbb75
commit
c7005c5d79
1 file changed
+1
@@ -2444,6 +2444,7 @@ mod _socket {
|
||||
}
|
||||
|
||||
/// returns Ok(true) on timeout
|
||||
#[cfg(feature = "ssl")]
|
||||
pub(crate) fn sock_wait(
|
||||
sock: &Socket,
|
||||
wait_kind: SockWaitKind,
|
||||
|
||||
Reference in new issue
Block a user