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
2022-04-04 03:44:29 +08:00
committed by GitHub
parent 98ed4afe45
commit 41c84b0b41
91 changed files with 81 additions and 176 deletions
-1
View File
@@ -50,7 +50,6 @@ use sp_runtime::traits::Block as BlockT;
use std::{
borrow::Cow,
collections::HashMap,
convert::TryFrom,
error::Error,
fs,
future::Future,
-1
View File
@@ -60,7 +60,6 @@ use sp_runtime::{
use std::{
borrow::Cow,
collections::{HashMap, HashSet, VecDeque},
convert::TryFrom as _,
io, iter,
num::NonZeroUsize,
pin::Pin,
@@ -41,7 +41,7 @@ use libp2p::core::{upgrade, InboundUpgrade, OutboundUpgrade, UpgradeInfo};
use log::{error, warn};
use std::{
borrow::Cow,
convert::{Infallible, TryFrom as _},
convert::Infallible,
io, mem,
pin::Pin,
task::{Context, Poll},
@@ -56,7 +56,6 @@ use libp2p::{
use std::{
borrow::Cow,
collections::{hash_map::Entry, HashMap},
convert::TryFrom as _,
io, iter,
pin::Pin,
task::{Context, Poll},
-1
View File
@@ -73,7 +73,6 @@ use std::{
borrow::Cow,
cmp,
collections::{HashMap, HashSet},
convert::TryFrom as _,
fs, iter,
marker::PhantomData,
num::NonZeroUsize,
@@ -38,7 +38,6 @@ use parking_lot::Mutex;
use prometheus_endpoint::{register, CounterVec, GaugeVec, Opts, PrometheusError, Registry, U64};
use std::{
cell::RefCell,
convert::TryFrom as _,
fmt,
pin::Pin,
sync::Arc,