mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 08:11:04 +00:00
put TryInto and TryFrom in sp_std::prelude (#10183)
* Switch to Rust 2021 * Update trybuild to fix errors * half baked * fix * remove unused import * remove more warnings Co-authored-by: Bastian Köcher <info@kchr.de>
This commit is contained in:
@@ -36,7 +36,7 @@ use pwasm_utils::parity_wasm::{
|
||||
use sp_core::crypto::UncheckedFrom;
|
||||
use sp_runtime::traits::Hash;
|
||||
use sp_sandbox::{EnvironmentDefinitionBuilder, Memory};
|
||||
use sp_std::{borrow::ToOwned, convert::TryFrom, prelude::*};
|
||||
use sp_std::{borrow::ToOwned, prelude::*};
|
||||
|
||||
/// Pass to `create_code` in order to create a compiled `WasmModule`.
|
||||
///
|
||||
|
||||
@@ -44,7 +44,7 @@ use sp_runtime::{
|
||||
traits::{Bounded, Hash},
|
||||
Perbill,
|
||||
};
|
||||
use sp_std::{convert::TryInto, default::Default, vec, vec::Vec};
|
||||
use sp_std::prelude::*;
|
||||
|
||||
/// How many batches we do per API benchmark.
|
||||
const API_BENCHMARK_BATCHES: u32 = 20;
|
||||
|
||||
@@ -1967,7 +1967,6 @@ mod tests {
|
||||
#[test]
|
||||
#[cfg(feature = "unstable-interface")]
|
||||
fn call_runtime_works() {
|
||||
use std::convert::TryInto;
|
||||
let call = Call::System(frame_system::Call::remark { remark: b"Hello World".to_vec() });
|
||||
let mut ext = MockExt::default();
|
||||
let result = execute(CODE_CALL_RUNTIME, call.encode(), &mut ext).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user