mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-24 07:45:49 +00:00
Remove spurious #[derive(Encode, Decode)] (#2759)
They did not compile, since `Encode` and `Decode` are deliberately not implemented for `usize`.
This commit is contained in:
@@ -59,7 +59,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
|||||||
impl_name: create_runtime_str!("substrate-node"),
|
impl_name: create_runtime_str!("substrate-node"),
|
||||||
authoring_version: 10,
|
authoring_version: 10,
|
||||||
spec_version: 89,
|
spec_version: 89,
|
||||||
impl_version: 89,
|
impl_version: 90,
|
||||||
apis: RUNTIME_API_VERSIONS,
|
apis: RUNTIME_API_VERSIONS,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,6 @@ use primitives::traits::{SaturatedConversion, Saturating, Zero, One};
|
|||||||
use timestamp::OnTimestampSet;
|
use timestamp::OnTimestampSet;
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
use timestamp::TimestampInherentData;
|
use timestamp::TimestampInherentData;
|
||||||
use parity_codec::{Encode, Decode};
|
|
||||||
use inherents::{RuntimeString, InherentIdentifier, InherentData, ProvideInherent, MakeFatalError};
|
use inherents::{RuntimeString, InherentIdentifier, InherentData, ProvideInherent, MakeFatalError};
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
use inherents::{InherentDataProviders, ProvideInherentData};
|
use inherents::{InherentDataProviders, ProvideInherentData};
|
||||||
@@ -133,6 +132,7 @@ impl ProvideInherentData for InherentDataProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn error_to_string(&self, error: &[u8]) -> Option<String> {
|
fn error_to_string(&self, error: &[u8]) -> Option<String> {
|
||||||
|
use parity_codec::Decode;
|
||||||
RuntimeString::decode(&mut &error[..]).map(Into::into)
|
RuntimeString::decode(&mut &error[..]).map(Into::into)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -163,7 +163,7 @@ decl_module! {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// A report of skipped authorities in Aura.
|
/// A report of skipped authorities in Aura.
|
||||||
#[derive(Clone, Encode, Decode, PartialEq, Eq)]
|
#[derive(Clone, PartialEq, Eq)]
|
||||||
#[cfg_attr(feature = "std", derive(Debug))]
|
#[cfg_attr(feature = "std", derive(Debug))]
|
||||||
pub struct AuraReport {
|
pub struct AuraReport {
|
||||||
// The first skipped slot.
|
// The first skipped slot.
|
||||||
|
|||||||
Reference in New Issue
Block a user