Skip to content

Commit

Permalink
Fix fanout example build warnings on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmonday committed Apr 8, 2022
1 parent c888bfa commit 5c3d09d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/fanout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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,
Expand Down

0 comments on commit 5c3d09d

Please sign in to comment.