Skip to content

Commit

Permalink
add no_std to_string
Browse files Browse the repository at this point in the history
  • Loading branch information
pifragile committed Feb 26, 2024
1 parent 17ba8af commit 60094b3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions democracy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ pub use weights::WeightInfo;
#[cfg(not(feature = "std"))]
use sp_std::vec::Vec;

#[cfg(not(feature = "std"))]
extern crate alloc;

#[cfg(not(feature = "std"))]
use alloc::string::String;
#[cfg(not(feature = "std"))]
use alloc::string::ToString;

// Logger target
//const LOG: &str = "encointer";

Expand Down

0 comments on commit 60094b3

Please sign in to comment.