Skip to content

Commit

Permalink
Remove redundant imports (#377)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
cyqsimon committed Mar 1, 2024
1 parent 5f5cc7e commit 862ede7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

## [Unreleased]

## Fixed
* Remove redundant imports #377 - @cyqsimon

## Added
* CI: include generated assets in release archive #359 - @cyqsimon

Expand Down
4 changes: 1 addition & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 39,10 @@ fn build_completion_manpage() -> anyhow::Result<()> {
#[cfg(target_os = "windows")]
fn download_windows_npcap_sdk() -> anyhow::Result<()> {
use std::{
env, fs,
fs,
io::{self, Write},
path::PathBuf,
};

use anyhow::anyhow;
use http_req::request;
use zip::ZipArchive;

Expand Down
2 changes: 1 addition & 1 deletion src/display/components/table.rs
Original file line number Diff line number Diff line change
@@ -1,4 1,4 @@
use std::{collections::HashMap, fmt, iter::FromIterator, net::IpAddr, ops::Index, rc::Rc};
use std::{collections::HashMap, fmt, net::IpAddr, ops::Index, rc::Rc};

use derivative::Derivative;
use itertools::Itertools;
Expand Down
1 change: 0 additions & 1 deletion src/display/ui_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 2,6 @@ use std::{
cmp,
collections::{HashMap, HashSet, VecDeque},
hash::Hash,
iter::FromIterator,
net::{IpAddr, Ipv4Addr, Ipv6Addr},
};

Expand Down

0 comments on commit 862ede7

Please sign in to comment.