From 00e95dc055e1faaa4f52981d1a090361b68bbdae Mon Sep 17 00:00:00 2001 From: Gris Ge Date: Fri, 29 Mar 2024 01:28:12 +0800 Subject: [PATCH] Fix cargo clippy and cargo fmt warnings Signed-off-by: Gris Ge --- src/socket.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/socket.rs b/src/socket.rs index edc8c0f..50e738a 100644 --- a/src/socket.rs +++ b/src/socket.rs @@ -530,8 +530,8 @@ impl Socket { /// Sets socket receive buffer in bytes. /// The kernel doubles this value (to allow space for bookkeeping overhead), /// and this doubled value is returned by [get_rx_buf_sz].(see socket(7) - /// The default value is set by the proc/sys/net/core/rmem_default file, and the maximum - /// allowed value is set by the /proc/sys/net/core/rmem_max + /// The default value is set by the proc/sys/net/core/rmem_default file, and + /// the maximum allowed value is set by the /proc/sys/net/core/rmem_max /// file. The minimum (doubled) value for this option is 256. pub fn set_rx_buf_sz(&self, size: T) -> Result<()> { setsockopt(self.0, libc::SOL_SOCKET, libc::SO_RCVBUF, size)