Skip to content

Commit

Permalink
Cleanup self_accessor macro to omit trailing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-mobilecoin committed Feb 28, 2023
1 parent 718229f commit 6dd3831
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions verifier/src/report_body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub trait Accessor<T>: Debug {

/// [`Accessor`] for returning Self, i.e. T -> T
macro_rules! self_accessor {
($($type:ty,)*) => {$(
($($type:ty),*) => {$(
impl Accessor<$type> for $type {
fn get(&self) -> $type {
self.clone()
Expand All @@ -55,7 +55,7 @@ macro_rules! report_body_member_accessors {
}
}

self_accessor! {$member_type,}
self_accessor! {$member_type}
)*}
}

Expand All @@ -67,7 +67,7 @@ report_body_member_accessors! {
MiscellaneousSelect, miscellaneous_select;
}

self_accessor!(MrEnclave, MrSigner,);
self_accessor!(MrEnclave, MrSigner);

/// Verify the attributes are as expected.
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
Expand Down

0 comments on commit 6dd3831

Please sign in to comment.