From 862ede716c4de07f1985884b4af25ac874ab4640 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Fri, 1 Mar 2024 10:55:38 +0800 Subject: 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 --- build.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'build.rs') 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; -- cgit v1.2.3