mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 17:31:05 +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:
@@ -16,7 +16,7 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
use std::{collections::HashSet, convert::TryFrom, str::FromStr, sync::Arc, thread::sleep};
|
||||
use std::{collections::HashSet, str::FromStr, sync::Arc, thread::sleep};
|
||||
|
||||
use crate::NetworkProvider;
|
||||
use codec::{Decode, Encode};
|
||||
@@ -327,10 +327,7 @@ mod tests {
|
||||
use sc_client_db::offchain::LocalStorage;
|
||||
use sc_network::{NetworkStateInfo, PeerId};
|
||||
use sp_core::offchain::{DbExternalities, Externalities};
|
||||
use std::{
|
||||
convert::{TryFrom, TryInto},
|
||||
time::SystemTime,
|
||||
};
|
||||
use std::time::SystemTime;
|
||||
|
||||
pub(super) struct TestNetwork();
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user