From c7005c5d79691a4c87674bcf0ea5cc672d7477ab Mon Sep 17 00:00:00 2001 From: Leesoo Ahn Date: Sun, 19 Jul 2026 13:51:53 +0900 Subject: [PATCH] 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")]'. --- crates/stdlib/src/socket.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/stdlib/src/socket.rs b/crates/stdlib/src/socket.rs index 9cb197ab9..283aa4083 100644 --- a/crates/stdlib/src/socket.rs +++ b/crates/stdlib/src/socket.rs @@ -2444,6 +2444,7 @@ mod _socket { } /// returns Ok(true) on timeout + #[cfg(feature = "ssl")] pub(crate) fn sock_wait( sock: &Socket, wait_kind: SockWaitKind,