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

@@ -37,7 +37,6 @@ use once_cell::sync::Lazy;
use sc_utils::mpsc::{tracing_unbounded, TracingUnboundedReceiver, TracingUnboundedSender};
use sp_core::offchain::{HttpError, HttpRequestId, HttpRequestStatus, Timestamp};
use std::{
convert::TryFrom,
fmt,
io::Read as _,
pin::Pin,
@@ -19,10 +19,7 @@
//! Helper methods dedicated to timestamps.
use sp_core::offchain::Timestamp;
use std::{
convert::TryInto,
time::{Duration, SystemTime},
};
use std::time::{Duration, SystemTime};
/// Returns the current time as a `Timestamp`.
pub fn now() -> Timestamp {