fix clippy lints

This commit is contained in:
John Smith 2021-12-25 11:13:30 -05:00
parent 78ff6d0c61
commit a12c8eabb3

View File

@ -468,7 +468,7 @@ impl Network {
// Create protocol handler // Create protocol handler
let udpv4_handler = let udpv4_handler =
RawUdpProtocolHandler::new(inner.network_manager.clone(), socket_arc.clone()); RawUdpProtocolHandler::new(inner.network_manager.clone(), socket_arc);
inner.outbound_udpv4_protocol_handler = Some(udpv4_handler); inner.outbound_udpv4_protocol_handler = Some(udpv4_handler);
} }
@ -485,7 +485,7 @@ impl Network {
// Create protocol handler // Create protocol handler
let udpv6_handler = let udpv6_handler =
RawUdpProtocolHandler::new(inner.network_manager.clone(), socket_arc.clone()); RawUdpProtocolHandler::new(inner.network_manager.clone(), socket_arc);
inner.outbound_udpv6_protocol_handler = Some(udpv6_handler); inner.outbound_udpv6_protocol_handler = Some(udpv6_handler);
} }