mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 08:51:09 +00:00
Remove useless imports (#11136)
Because `TryInto`/`TryFrom` are in prelude by default from edition 2021 Signed-off-by: koushiro <koushiro.cqx@gmail.com>
This commit is contained in:
@@ -42,7 +42,7 @@ pub use scale_info;
|
||||
#[cfg(feature = "std")]
|
||||
pub use serde;
|
||||
#[doc(hidden)]
|
||||
pub use sp_std::{convert::TryFrom, ops::Deref, vec::Vec};
|
||||
pub use sp_std::{ops::Deref, vec::Vec};
|
||||
|
||||
pub mod ecdsa;
|
||||
pub mod ed25519;
|
||||
@@ -363,7 +363,7 @@ macro_rules! app_crypto_public_common {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> $crate::TryFrom<&'a [u8]> for Public {
|
||||
impl<'a> TryFrom<&'a [u8]> for Public {
|
||||
type Error = ();
|
||||
|
||||
fn try_from(data: &'a [u8]) -> Result<Self, Self::Error> {
|
||||
@@ -518,7 +518,7 @@ macro_rules! app_crypto_signature_common {
|
||||
type Generic = $sig;
|
||||
}
|
||||
|
||||
impl<'a> $crate::TryFrom<&'a [u8]> for Signature {
|
||||
impl<'a> TryFrom<&'a [u8]> for Signature {
|
||||
type Error = ();
|
||||
|
||||
fn try_from(data: &'a [u8]) -> Result<Self, Self::Error> {
|
||||
@@ -526,7 +526,7 @@ macro_rules! app_crypto_signature_common {
|
||||
}
|
||||
}
|
||||
|
||||
impl $crate::TryFrom<$crate::Vec<u8>> for Signature {
|
||||
impl TryFrom<$crate::Vec<u8>> for Signature {
|
||||
type Error = ();
|
||||
|
||||
fn try_from(data: $crate::Vec<u8>) -> Result<Self, Self::Error> {
|
||||
|
||||
Reference in New Issue
Block a user