Skip to content

Commit 56be6a4

Browse files
committed
fix: expect macos-only var to be unused on other OSes
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
1 parent d8c7a50 commit 56be6a4

File tree

1 file changed

+1
-0
lines changed
  • crates/wasi/src/p3/sockets

1 file changed

+1
-0
lines changed

crates/wasi/src/p3/sockets/tcp.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ impl TcpSocket {
248248

249249
pub fn set_keep_alive_idle_time(&mut self, value: Duration) -> Result<(), ErrorCode> {
250250
let fd = &*self.as_std_view()?;
251+
#[cfg_attr(not(target_os = "macos"), expect(unused))]
251252
let value = set_keep_alive_idle_time(fd, value)?;
252253
#[cfg(target_os = "macos")]
253254
{

0 commit comments

Comments
 (0)