From 5f52dd2d1ea3a5c906c0b1f547ea8040fe2399a7 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Tue, 20 Aug 2019 17:10:57 -0700 Subject: [PATCH] net_util: Fix clippy error Make sure to explicitly declare trait objects with the keywork "dyn". Signed-off-by: Sebastien Boeuf --- net_util/src/tap.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net_util/src/tap.rs b/net_util/src/tap.rs index f361b5003..7c701d6b3 100644 --- a/net_util/src/tap.rs +++ b/net_util/src/tap.rs @@ -396,7 +396,9 @@ mod tests { // For a given interface name, this returns a tuple that contains the MAC address of the // interface, an object that can be used to send Ethernet frames, and a receiver of // Ethernet frames arriving at the specified interface. - fn pnet_get_mac_tx_rx(ifname: String) -> (MacAddr, Box, Box) { + fn pnet_get_mac_tx_rx( + ifname: String, + ) -> (MacAddr, Box, Box) { let interface_name_matches = |iface: &NetworkInterface| iface.name == ifname; // Find the network interface with the provided name.