diff --git a/src/bird.rs b/src/bird.rs index 9d9a77e..ed48f9d 100644 --- a/src/bird.rs +++ b/src/bird.rs @@ -1,4 +1,3 @@ -use std::fs::File; use std::io::Write; use std::os::unix::net::UnixStream; diff --git a/src/parsers/neighbors.rs b/src/parsers/neighbors.rs index a4502c4..4ee6d05 100644 --- a/src/parsers/neighbors.rs +++ b/src/parsers/neighbors.rs @@ -222,7 +222,7 @@ fn parse_route_change_stats( mod tests { use super::*; use std::fs::File; - use std::io::{BufRead, BufReader}; + use std::io::BufReader; #[test] fn test_parse_neighbor_header() { diff --git a/src/parsers/routes.rs b/src/parsers/routes.rs index 5dcf28f..a47c930 100644 --- a/src/parsers/routes.rs +++ b/src/parsers/routes.rs @@ -321,9 +321,6 @@ fn parse_route_bgp(route: &mut Route, line: &str) -> Result { mod tests { use super::*; - use std::fs::File; - use std::io::BufReader; - #[test] fn test_match_route_header() { let line =