Skip to content

Commit 6d2b2fb

Browse files
committed
Fix no-std build
1 parent e7d6b25 commit 6d2b2fb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

substrate/frame/staking/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@
282282
#![cfg_attr(not(feature = "std"), no_std)]
283283
#![recursion_limit = "256"]
284284

285+
extern crate alloc;
286+
285287
#[cfg(feature = "runtime-benchmarks")]
286288
pub mod benchmarking;
287289
#[cfg(any(feature = "runtime-benchmarks", test))]

substrate/frame/staking/src/pallet/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const STAKING_ID: LockIdentifier = *b"staking ";
5050

5151
#[frame_support::pallet]
5252
pub mod pallet {
53-
use std::collections::BTreeSet;
53+
use alloc::collections::BTreeSet;
5454

5555
use frame_election_provider_support::ElectionDataProvider;
5656

0 commit comments

Comments
 (0)