mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 04:41:02 +00:00
add block usage logs to system pallet (#10940)
* add block usage logs to system pallet * add Debug * use % instead of default Debug impl * change formatting * revert
This commit is contained in:
@@ -24,7 +24,6 @@ use crate::traits::{
|
||||
};
|
||||
use codec::{CompactAs, Encode};
|
||||
use num_traits::{Pow, SaturatingAdd, SaturatingSub};
|
||||
use sp_debug_derive::RuntimeDebug;
|
||||
use sp_std::{
|
||||
convert::{TryFrom, TryInto},
|
||||
fmt, ops,
|
||||
@@ -425,7 +424,7 @@ macro_rules! implement_per_thing {
|
||||
///
|
||||
#[doc = $title]
|
||||
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
|
||||
#[derive(Encode, Copy, Clone, PartialEq, Eq, codec::MaxEncodedLen, PartialOrd, Ord, RuntimeDebug, scale_info::TypeInfo)]
|
||||
#[derive(Encode, Copy, Clone, PartialEq, Eq, codec::MaxEncodedLen, PartialOrd, Ord, sp_std::fmt::Debug, scale_info::TypeInfo)]
|
||||
pub struct $name($type);
|
||||
|
||||
/// Implementation makes any compact encoding of `PerThing::Inner` valid,
|
||||
@@ -847,7 +846,7 @@ macro_rules! implement_per_thing {
|
||||
#[cfg(test)]
|
||||
mod $test_mod {
|
||||
use codec::{Encode, Decode};
|
||||
use super::{$name, Saturating, RuntimeDebug, PerThing};
|
||||
use super::{$name, Saturating, PerThing};
|
||||
use crate::traits::Zero;
|
||||
|
||||
#[test]
|
||||
@@ -871,7 +870,7 @@ macro_rules! implement_per_thing {
|
||||
assert!(<$upper_type>::from($max) * <$upper_type>::from($max) < <$upper_type>::max_value());
|
||||
}
|
||||
|
||||
#[derive(Encode, Decode, PartialEq, Eq, RuntimeDebug)]
|
||||
#[derive(Encode, Decode, PartialEq, Eq, Debug)]
|
||||
struct WithCompact<T: codec::HasCompact> {
|
||||
data: T,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user