From 4e9bdcbc1f1960c7681cca6ddacb81df45117938 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Fri, 13 Jun 2025 00:12:07 +0800 Subject: [PATCH] fix ci --- src/kcp_stream.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kcp_stream.rs b/src/kcp_stream.rs index 46538e6ba..e721aeaf1 100644 --- a/src/kcp_stream.rs +++ b/src/kcp_stream.rs @@ -40,7 +40,7 @@ impl KcpStream { let (input, output) = (endpoint.input_sender(), endpoint.output_receiver().unwrap()); let (stop_sender, stop_receiver) = oneshot::channel(); if let Some(packet) = init_packet { - if packet.len() >= size_of::() { + if packet.len() >= std::mem::size_of::() { input.send(packet.into()).await?; } } @@ -109,7 +109,7 @@ impl KcpStream { result = udp.recv_from(&mut buf) => { match result { Ok((size, _)) => { - if size < size_of::() { + if size < std::mem::size_of::() { continue; } input