Skip to content

Commit

Permalink
Merge branch 'tobiasfunke1/add-clone-to-macros'
Browse files Browse the repository at this point in the history
Closes #19
  • Loading branch information
kbalt committed Jun 5, 2024
2 parents 8778c10 + e518161 commit 76671f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/sip-types/src/header/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl<H: HeaderParse> DecodeValues for H {
macro_rules! csv_header {
($(#[$meta:meta])* $struct_name:ident, $wrapping:ty, $header_name:expr) => {
$(#[$meta])*
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct $struct_name(pub $wrapping);

impl ConstNamed for $struct_name {
Expand Down Expand Up @@ -133,7 +133,7 @@ macro_rules! csv_header {
macro_rules! from_str_header {
($(#[$meta:meta])* $struct_name:ident, $header_name:expr, $from_str_ty:ty) => {
$(#[$meta])*
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct $struct_name(pub $from_str_ty);

impl ConstNamed for $struct_name {
Expand Down

0 comments on commit 76671f5

Please sign in to comment.