From 88c8c58d8d914279f8aa809413fd53f4929f7de4 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 2 Apr 2024 11:06:24 +1100 Subject: [PATCH] Fix import warnings Recent rustc upgrade introduced some new warnings for incorrect imports, fix them. --- src/ecdsa/serialized_signature.rs | 1 - src/key.rs | 1 - src/schnorr.rs | 4 +--- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ecdsa/serialized_signature.rs b/src/ecdsa/serialized_signature.rs index fceaa73..f8be36a 100644 --- a/src/ecdsa/serialized_signature.rs +++ b/src/ecdsa/serialized_signature.rs @@ -8,7 +8,6 @@ //! serialized signatures and since it's a bit more complicated it has its own module. use core::borrow::Borrow; -use core::convert::TryFrom; use core::{fmt, ops}; pub use into_iter::IntoIter; diff --git a/src/key.rs b/src/key.rs index 84255cf..48b1463 100644 --- a/src/key.rs +++ b/src/key.rs @@ -3,7 +3,6 @@ //! Public and secret keys. //! -use core::convert::TryFrom; use core::ops::{self, BitXor}; use core::{fmt, ptr, str}; diff --git a/src/schnorr.rs b/src/schnorr.rs index b284dcb..e8c767b 100644 --- a/src/schnorr.rs +++ b/src/schnorr.rs @@ -12,9 +12,7 @@ use crate::ffi::{self, CPtr}; use crate::key::{Keypair, XOnlyPublicKey}; #[cfg(feature = "global-context")] use crate::SECP256K1; -use crate::{ - constants, from_hex, impl_array_newtype, Error, Message, Secp256k1, Signing, Verification, -}; +use crate::{constants, from_hex, Error, Message, Secp256k1, Signing, Verification}; /// Represents a schnorr signature. #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]