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

@@ -33,7 +33,7 @@ use crate::wasm::*;
#[cfg(feature = "std")]
use sp_wasm_interface::{FunctionContext, Pointer, Result};
use sp_std::{convert::TryFrom, marker::PhantomData};
use sp_std::marker::PhantomData;
#[cfg(not(feature = "std"))]
use sp_std::vec::Vec;
@@ -382,7 +382,7 @@ impl<T: PassByInner<Inner = I>, I: RIType> RIType for Inner<T, I> {
/// }
/// }
///
/// impl std::convert::TryFrom<u8> for Test {
/// impl TryFrom<u8> for Test {
/// type Error = ();
///
/// fn try_from(val: u8) -> Result<Test, ()> {