Skip to content

Commit

Permalink
Add derive[Clone] to SolEvent creation (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikreppel authored May 1, 2024
1 parent a420416 commit df22e16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/sol-macro/src/expand/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ pub(super) fn expand(cx: &ExpCtxt<'_>, event: &ItemEvent) -> Result<TokenStream>
#(#attrs)*
#doc
#[allow(non_camel_case_types, non_snake_case, clippy::style)]
#[derive(Clone)]
pub struct #name {
#(pub #fields,)*
}
Expand Down

0 comments on commit df22e16

Please sign in to comment.