Skip to content

Commit

Permalink
Fix derive PassByInner with generics (paritytech#13247)
Browse files Browse the repository at this point in the history
* Fix derive PassByInner with generics

* Update primitives/runtime-interface/proc-macro/src/pass_by/inner.rs

---------

Co-authored-by: Bastian Köcher <git@kchr.de>
  • Loading branch information
2 people authored and ltfschoen committed Feb 22, 2023
1 parent 7e95d21 commit 548bc09
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub fn derive_impl(mut input: DeriveInput) -> Result<TokenStream> {
#crate_include

impl #impl_generics #crate_::pass_by::PassBy for #ident #ty_generics #where_clause {
type PassBy = #crate_::pass_by::Inner<#ident, #inner_ty>;
type PassBy = #crate_::pass_by::Inner<Self, #inner_ty>;
}

impl #impl_generics #crate_::pass_by::PassByInner for #ident #ty_generics #where_clause {
Expand Down

0 comments on commit 548bc09

Please sign in to comment.