Skip to content

Commit

Permalink
Update sylvia-derive/src/message.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Woźniak <[email protected]>
  • Loading branch information
kulikthebird and jawoznia authored Apr 23, 2024
1 parent 5e0d3a3 commit b65c660
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sylvia-derive/src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -850,9 +850,7 @@ impl<'a> GlueMessage<'a> {

let generics: Vec<_> = source.generics.params.iter().collect();
let full_where_clause = &source.generics.where_clause;
let bracketed_wrapper_generics = match generics.is_empty() {
true => quote! {},
false => quote! { < #(#generics,)* > },
let bracketed_wrapper_generics = emit_bracketed_generics(&generics);
};

let contract_enum_name = msg_ty.emit_msg_wrapper_name();
Expand Down

0 comments on commit b65c660

Please sign in to comment.