Skip to content

Commit

Permalink
Fix cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanYuYuan committed Mar 1, 2024
1 parent 644a3e4 commit 2f226d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commons/zenoh-util/src/std_only/net/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

0 comments on commit 2f226d3

Please sign in to comment.