Skip to content

Commit

Permalink
config: Add Debug Clone for common configs (#1542)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
lexnv authored Apr 24, 2024
1 parent 03fd95e commit 7f2b34b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/config/polkadot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions core/src/config/substrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7f2b34b

Please sign in to comment.