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:
Leesoo Ahn authored and GitHub committed 2026-07-19 13:51:53 +09:00
1 parent 267a7dbb75
commit c7005c5d79
1 file changed
+1
+1
View File
@@ -2444,6 +2444,7 @@ mod _socket {
}
/// returns Ok(true) on timeout
#[cfg(feature = "ssl")]
pub(crate) fn sock_wait(
sock: &Socket,
wait_kind: SockWaitKind,