clippy
This commit is contained in:
parent
2e0b85d526
commit
7653428b68
|
@ -97,7 +97,6 @@ fn send_to_gso_pacing(
|
|||
panic!("send_to_gso() should not be called on non-linux platforms");
|
||||
}
|
||||
|
||||
|
||||
/// Send packets using sendmsg() with pacing but without GSO.
|
||||
#[cfg(target_os = "linux")]
|
||||
fn send_to_pacing(
|
||||
|
@ -120,13 +119,7 @@ fn send_to_pacing(
|
|||
let send_time = std_time_to_u64(&send_info.at);
|
||||
let cmsg_txtime = ControlMessage::TxTime(&send_time);
|
||||
|
||||
match sendmsg(
|
||||
sockfd,
|
||||
&iov,
|
||||
&[cmsg_txtime],
|
||||
MsgFlags::empty(),
|
||||
Some(&dst),
|
||||
) {
|
||||
match sendmsg(sockfd, &iov, &[cmsg_txtime], MsgFlags::empty(), Some(&dst)) {
|
||||
Ok(v) => Ok(v),
|
||||
Err(e) => Err(e.into()),
|
||||
}
|
||||
|
@ -142,7 +135,6 @@ fn send_to_pacing(
|
|||
panic!("send_to_gso() should not be called on non-linux platforms");
|
||||
}
|
||||
|
||||
|
||||
/// A wrapper function of send_to().
|
||||
///
|
||||
/// When GSO and SO_TXTIME are enabled, send packets using send_to_gso().
|
||||
|
|
Loading…
Reference in New Issue