Make sp-keystore no_std-compatible and fix the build-runtimes-polkavm CI job (#3363)

Fixes https://github.com/paritytech/polkadot-sdk/issues/3352
This commit is contained in:
Koute
2024-02-19 00:32:01 +09:00
committed by GitHub
parent 6185b002df
commit b179b83264
5 changed files with 30 additions and 19 deletions
@@ -78,16 +78,16 @@ macro_rules! decl_extension {
$vis struct $ext_name (pub $inner);
impl $crate::Extension for $ext_name {
fn as_mut_any(&mut self) -> &mut dyn std::any::Any {
fn as_mut_any(&mut self) -> &mut dyn core::any::Any {
self
}
fn type_id(&self) -> std::any::TypeId {
std::any::Any::type_id(self)
fn type_id(&self) -> core::any::TypeId {
core::any::Any::type_id(self)
}
}
impl std::ops::Deref for $ext_name {
impl core::ops::Deref for $ext_name {
type Target = $inner;
fn deref(&self) -> &Self::Target {
@@ -95,7 +95,7 @@ macro_rules! decl_extension {
}
}
impl std::ops::DerefMut for $ext_name {
impl core::ops::DerefMut for $ext_name {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
@@ -115,12 +115,12 @@ macro_rules! decl_extension {
$vis struct $ext_name;
impl $crate::Extension for $ext_name {
fn as_mut_any(&mut self) -> &mut dyn std::any::Any {
fn as_mut_any(&mut self) -> &mut dyn core::any::Any {
self
}
fn type_id(&self) -> std::any::TypeId {
std::any::Any::type_id(self)
fn type_id(&self) -> core::any::TypeId {
core::any::Any::type_id(self)
}
}
}