From 3733c8b7ee818adfee7f873b923f3405d3c4706e Mon Sep 17 00:00:00 2001 From: yuanyuyuan Date: Sat, 2 Mar 2024 00:25:27 +0800 Subject: [PATCH] Fix cargo clippy --- commons/zenoh-util/src/std_only/net/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commons/zenoh-util/src/std_only/net/mod.rs b/commons/zenoh-util/src/std_only/net/mod.rs index f79829129c..3e6caa2d8f 100644 --- a/commons/zenoh-util/src/std_only/net/mod.rs +++ b/commons/zenoh-util/src/std_only/net/mod.rs @@ -438,9 +438,11 @@ pub fn set_bind_to_device_udp_socket(socket: &UdpSocket, iface: Option<&str>) -> #[cfg(any(target_os = "macos", target_os = "windows"))] pub fn set_bind_to_device_tcp_socket(socket: &TcpSocket, iface: Option<&str>) -> ZResult<()> { log::warn!("Binding the socket {socket:?} to the interface {iface:?} is not supported on macOS and Windows"); + Ok(()) } #[cfg(any(target_os = "macos", target_os = "windows"))] pub fn set_bind_to_device_udp_socket(socket: &UdpSocket, iface: Option<&str>) -> ZResult<()> { log::warn!("Binding the socket {socket:?} to the interface {iface:?} is not supported on macOS and Windows"); + Ok(()) }