From 81dde3e76136ef15b3b8d7661dc48db6e8b6319e Mon Sep 17 00:00:00 2001 From: Robert Clipsham Date: Fri, 8 Apr 2022 16:21:33 +0100 Subject: [PATCH] Fix fanout example build warnings on macOS --- examples/fanout.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/fanout.rs b/examples/fanout.rs index 211522b8..9899d4d6 100644 --- a/examples/fanout.rs +++ b/examples/fanout.rs @@ -12,11 +12,8 @@ extern crate pnet; extern crate pnet_datalink; -use pnet::datalink::{self, Config, FanoutOption, FanoutType, NetworkInterface}; -use std::env; use std::io::{self, Write}; use std::process; -use std::thread; #[cfg(not(target_os = "linux"))] fn main() { @@ -27,6 +24,9 @@ fn main() { #[cfg(target_os = "linux")] fn main() { use pnet::datalink::Channel::Ethernet; + use pnet::datalink::{self, Config, FanoutOption, FanoutType, NetworkInterface}; + use std::env; + use std::thread; let iface_name = match env::args().nth(1) { Some(n) => n,