From 92d3e3370bd916cee25067997213efd639d0fe65 Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Sun, 4 Sep 2022 15:00:04 +0200 Subject: [PATCH] import cleanup --- src/pinger_icmp.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pinger_icmp.rs b/src/pinger_icmp.rs index 0335f74..75ef559 100644 --- a/src/pinger_icmp.rs +++ b/src/pinger_icmp.rs @@ -1,12 +1,11 @@ use std::error::Error; -use std::net::{IpAddr, Ipv6Addr, SocketAddrV4, SocketAddrV6}; -use std::{process, thread, time}; +use std::net::IpAddr; +use std::{thread, time}; use crate::Pinger; use byteorder::*; use nix::sys::time::TimeValLike; use nix::time::{clock_gettime, ClockId}; -use pnet::packet::icmp::IcmpType; use pnet::packet::icmp::IcmpTypes::EchoReply; use pnet::packet::ip::IpNextHeaderProtocols; use pnet::packet::*;