Skip to content

Commit 862ede7

Browse files
authored
Remove redundant imports (#377)
* Remove redundant imports - Now linted by clippy in 1.78 - See rust-lang/rust#117772 * Write changelog * Remove Windows-only redundant imports in build script
1 parent 5f5cc7e commit 862ede7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66

77
## [Unreleased]
88

9+
## Fixed
10+
* Remove redundant imports #377 - @cyqsimon
11+
912
## Added
1013
* CI: include generated assets in release archive #359 - @cyqsimon
1114

build.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,10 @@ fn build_completion_manpage() -> anyhow::Result<()> {
3939
#[cfg(target_os = "windows")]
4040
fn download_windows_npcap_sdk() -> anyhow::Result<()> {
4141
use std::{
42-
env, fs,
42+
fs,
4343
io::{self, Write},
44-
path::PathBuf,
4544
};
4645

47-
use anyhow::anyhow;
4846
use http_req::request;
4947
use zip::ZipArchive;
5048

src/display/components/table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::{collections::HashMap, fmt, iter::FromIterator, net::IpAddr, ops::Index, rc::Rc};
1+
use std::{collections::HashMap, fmt, net::IpAddr, ops::Index, rc::Rc};
22

33
use derivative::Derivative;
44
use itertools::Itertools;

src/display/ui_state.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use std::{
22
cmp,
33
collections::{HashMap, HashSet, VecDeque},
44
hash::Hash,
5-
iter::FromIterator,
65
net::{IpAddr, Ipv4Addr, Ipv6Addr},
76
};
87

0 commit comments

Comments
 (0)