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:
Qinxuan Chen authored and GitHub committed 2022-04-03 21:44:29 +02:00
1 parent 98ed4afe45
commit 41c84b0b41
91 files changed
+81 -176

No files matched your search

@@ -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> {