diff --git a/primitives/account/src/lib.rs b/primitives/account/src/lib.rs index b1f1588dcb..d2263aa25d 100644 --- a/primitives/account/src/lib.rs +++ b/primitives/account/src/lib.rs @@ -44,7 +44,8 @@ pub struct AccountId20(pub [u8; 20]); #[cfg(feature = "serde")] impl_serde::impl_fixed_hash_serde!(AccountId20, 20); -impl core::str::FromStr for AccountId20 { +#[cfg(feature = "std")] +impl std::str::FromStr for AccountId20 { type Err = &'static str; fn from_str(s: &str) -> Result {