config: Add Debug Clone for common configs (#1542)

* config: Add Debug Clone for common configs

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Add copy impl

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Add other traits

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

---------

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile
2024-04-24 13:08:54 +03:00
committed by GitHub
parent 03fd95efcf
commit 7f2b34bdcd
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -11,6 +11,9 @@ pub use crate::utils::{AccountId32, MultiAddress, MultiSignature};
pub use primitive_types::{H256, U256};
/// Default set of commonly used types by Polkadot nodes.
// Note: The trait implementations exist just to make life easier,
// but shouldn't strictly be necessary since users can't instantiate this type.
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)]
pub enum PolkadotConfig {}
impl Config for PolkadotConfig {
+3
View File
@@ -16,6 +16,9 @@ pub use primitive_types::{H256, U256};
/// Default set of commonly used types by Substrate runtimes.
// Note: We only use this at the type level, so it should be impossible to
// create an instance of it.
// The trait implementations exist just to make life easier,
// but shouldn't strictly be necessary since users can't instantiate this type.
#[derive(Clone, Copy, Eq, PartialEq, Ord, PartialOrd, Hash, Debug)]
pub enum SubstrateConfig {}
impl Config for SubstrateConfig {