From 032aba5d7c3a28a847aa77bd4d164a7ef6cd0bc7 Mon Sep 17 00:00:00 2001 From: Annika Hannig Date: Tue, 20 Aug 2024 15:28:20 +0200 Subject: [PATCH] removed imports --- src/bird.rs | 1 - src/parsers/neighbors.rs | 2 +- src/parsers/routes.rs | 3 --- 3 files changed, 1 insertion(+), 5 deletions(-) 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 =