Skip to content

Commit

Permalink
Derive default
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshOrndorff committed Apr 19, 2024
1 parent 3f43fb3 commit f67f66c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions tuxedo-core/src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! are dealing with a parachain or not.
use parity_scale_codec::{Decode, Encode};
#[derive(Debug, Encode, Decode)]
#[derive(Default, Debug, Encode, Decode)]
pub struct TuxedoMetadata {
/// Placeholder for the scale info type registry that will hopefully eventually go here.
_registry: (),
Expand All @@ -22,13 +22,3 @@ impl TuxedoMetadata {
self.parachain
}
}

#[allow(clippy::derivable_impls)]
impl Default for TuxedoMetadata {
fn default() -> Self {
Self {
_registry: (),
parachain: false,
}
}
}

0 comments on commit f67f66c

Please sign in to comment.