Skip to content

Commit 404c494

Browse files
committed
Use BTreeMap from alloc crate
Signed-off-by: linning <[email protected]>
1 parent 749c561 commit 404c494

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

domains/primitives/messenger/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ sp-inherents.workspace = true
2727
sp-mmr-primitives.workspace = true
2828
sp-runtime.workspace = true
2929
sp-trie.workspace = true
30-
sp-std.workspace = true
3130
sp-subspace-mmr.workspace = true
3231

3332
[features]

domains/primitives/messenger/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ extern crate alloc;
2525

2626
use crate::messages::{MessageKey, Nonce};
2727
#[cfg(not(feature = "std"))]
28+
use alloc::collections::BTreeMap;
29+
#[cfg(not(feature = "std"))]
2830
use alloc::collections::BTreeSet;
2931
#[cfg(not(feature = "std"))]
3032
use alloc::vec::Vec;
@@ -35,9 +37,10 @@ use messages::{BlockMessagesWithStorageKey, ChannelId, CrossDomainMessage, Messa
3537
use parity_scale_codec::{Decode, Encode};
3638
use scale_info::TypeInfo;
3739
use sp_domains::{ChainId, DomainAllowlistUpdates, DomainId};
38-
use sp_std::collections::btree_map::BTreeMap;
3940
use sp_subspace_mmr::ConsensusChainMmrLeafProof;
4041
#[cfg(feature = "std")]
42+
use std::collections::BTreeMap;
43+
#[cfg(feature = "std")]
4144
use std::collections::BTreeSet;
4245

4346
/// Messenger inherent identifier.

0 commit comments

Comments
 (0)