Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Fix derive PassByInner with generics (#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
conr2d and bkchr authored Jan 28, 2023
1 parent 9762613 commit 1e6b892
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 1e6b892

Please sign in to comment.