Skip to content

Commit 1e6b892

Browse files
conr2dbkchr
andauthored
Fix derive PassByInner with generics (paritytech#13247)
* 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>
1 parent 9762613 commit 1e6b892

File tree

1 file changed

+1
-1
lines changed
  • primitives/runtime-interface/proc-macro/src/pass_by

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub fn derive_impl(mut input: DeriveInput) -> Result<TokenStream> {
5252
#crate_include
5353

5454
impl #impl_generics #crate_::pass_by::PassBy for #ident #ty_generics #where_clause {
55-
type PassBy = #crate_::pass_by::Inner<#ident, #inner_ty>;
55+
type PassBy = #crate_::pass_by::Inner<Self, #inner_ty>;
5656
}
5757

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

0 commit comments

Comments
 (0)