Skip to content

Commit

Permalink
Fix cargo clippy and cargo fmt warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Gris Ge <[email protected]>
  • Loading branch information
cathay4t committed Mar 28, 2024
1 parent c4d7328 commit aab4c93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(&self, size: T) -> Result<()> {
setsockopt(self.0, libc::SOL_SOCKET, libc::SO_RCVBUF, size)
Expand Down

0 comments on commit aab4c93

Please sign in to comment.