summaryrefslogtreecommitdiffstats
path: root/build.rs
diff options
context:
space:
mode:
authorcyqsimon <28627918+cyqsimon@users.noreply.github.com>2024-03-01 10:55:38 +0800
committerGitHub <noreply@github.com>2024-03-01 10:55:38 +0800
commit862ede716c4de07f1985884b4af25ac874ab4640 (patch)
tree2fd6144571788ba861d630676a45673b6eddd25f /build.rs
parent5f5cc7ed609e8eff29ee0c580e60c468273bf171 (diff)
Remove redundant imports (#377)
* Remove redundant imports - Now linted by clippy in 1.78 - See https://github.com/rust-lang/rust/pull/117772 * Write changelog * Remove Windows-only redundant imports in build script
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/build.rs b/build.rs
index 7481214..0890ab1 100644
--- a/build.rs
+++ b/build.rs
@@ -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;