mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-13 03:25:50 +00:00
sp-std removal from substrate/primitives (#3274)
This PR removes sp-std crate from substrate/primitives sub-directories. For now crates that have `pub use` of sp-std or export macros that would necessitate users of the macros to `extern crate alloc` have been excluded from this PR. There should be no breaking changes in this PR. --------- Co-authored-by: Koute <koute@users.noreply.github.com>
This commit is contained in:
@@ -23,14 +23,15 @@ use crate::{
|
||||
trie_backend::TrieCacheProvider,
|
||||
warn, StorageKey, StorageValue,
|
||||
};
|
||||
#[cfg(feature = "std")]
|
||||
use alloc::sync::Arc;
|
||||
use alloc::{boxed::Box, vec::Vec};
|
||||
use codec::Codec;
|
||||
use core::marker::PhantomData;
|
||||
use hash_db::{self, AsHashDB, HashDB, HashDBRef, Hasher, Prefix};
|
||||
#[cfg(feature = "std")]
|
||||
use parking_lot::RwLock;
|
||||
use sp_core::storage::{ChildInfo, ChildType, StateVersion};
|
||||
#[cfg(feature = "std")]
|
||||
use sp_std::sync::Arc;
|
||||
use sp_std::{boxed::Box, marker::PhantomData, vec::Vec};
|
||||
use sp_trie::{
|
||||
child_delta_trie_root, delta_trie_root, empty_child_trie_root,
|
||||
read_child_trie_first_descedant_value, read_child_trie_hash, read_child_trie_value,
|
||||
@@ -55,7 +56,7 @@ macro_rules! format {
|
||||
};
|
||||
}
|
||||
|
||||
type Result<V> = sp_std::result::Result<V, crate::DefaultError>;
|
||||
type Result<V> = core::result::Result<V, crate::DefaultError>;
|
||||
|
||||
/// Patricia trie-based storage trait.
|
||||
pub trait Storage<H: Hasher>: Send + Sync {
|
||||
|
||||
Reference in New Issue
Block a user