Skip to content

Commit c05e20d

Browse files
hsqStephenZhangcavivie
authored andcommitted
chore: avoid unnecessary clone
1 parent eed33b2 commit c05e20d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/udp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl Sink<UdpMsg> for WriteHalf {
128128
.write(&mut ip_packet_writer, &data)
129129
.map_err(|err| Error::other(format!("PacketBuilder::write: {err}")))?;
130130

131-
match self.stack_tx.start_send_unpin(ip_packet_writer.clone()) {
131+
match self.stack_tx.start_send_unpin(ip_packet_writer) {
132132
Ok(()) => Ok(()),
133133
Err(err) => Err(Error::other(format!("send error: {err}"))),
134134
}

0 commit comments

Comments
 (0)