From aaf3a91a95e6c50a7eaa194313f574cb958a5714 Mon Sep 17 00:00:00 2001 From: Brooks Date: Tue, 12 Mar 2024 02:25:59 -0400 Subject: [PATCH] Removes redundant imports (#193) --- frozen-abi/src/abi_digester.rs | 5 +---- programs/bpf_loader/gen-syscall-list/build.rs | 2 +- sdk/macro/src/lib.rs | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/frozen-abi/src/abi_digester.rs b/frozen-abi/src/abi_digester.rs index b014efd2ba1570..fb1fc78fa6735e 100644 --- a/frozen-abi/src/abi_digester.rs +++ b/frozen-abi/src/abi_digester.rs @@ -4,10 +4,7 @@ use { hash::{Hash, Hasher}, }, log::*, - serde::{ - ser::{Error as SerdeError, *}, - Serialize, Serializer, - }, + serde::ser::{Error as SerdeError, *}, std::{any::type_name, io::Write}, thiserror::Error, }; diff --git a/programs/bpf_loader/gen-syscall-list/build.rs b/programs/bpf_loader/gen-syscall-list/build.rs index 96af426ec4763b..f06039ae84d696 100644 --- a/programs/bpf_loader/gen-syscall-list/build.rs +++ b/programs/bpf_loader/gen-syscall-list/build.rs @@ -2,7 +2,7 @@ use { regex::Regex, std::{ fs::File, - io::{prelude::*, BufWriter, Read}, + io::{prelude::*, BufWriter}, path::PathBuf, str, }, diff --git a/sdk/macro/src/lib.rs b/sdk/macro/src/lib.rs index 157592dc37bcaa..3c2a3bdb86a9ee 100644 --- a/sdk/macro/src/lib.rs +++ b/sdk/macro/src/lib.rs @@ -8,7 +8,6 @@ use { proc_macro::TokenStream, proc_macro2::{Delimiter, Span, TokenTree}, quote::{quote, ToTokens}, - std::convert::TryFrom, syn::{ bracketed, parse::{Parse, ParseStream, Result},