Skip to content

Commit

Permalink
chore(fix): update proc macro for QueryData to include lifetimes
Browse files Browse the repository at this point in the history
Authored-by: RobWalt <robwalter96@gmail.com>
  • Loading branch information
RobWalt committed Feb 23, 2024
1 parent 06e32dc commit df16eeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proc-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ fn impl_trait_query(arg: TokenStream, item: TokenStream) -> Result<TokenStream2>
}
}

unsafe impl #impl_generics #imports::QueryData for &mut #trait_object
unsafe impl #impl_generics_with_lifetime #imports::QueryData for &'__a mut #trait_object
#where_clause
{
type ReadOnly = &'__a #trait_object;
type ReadOnly = &'__a mut #trait_object;
}
unsafe impl #impl_generics #imports::ReadOnlyQueryData for &mut #trait_object
#where_clause
Expand Down

0 comments on commit df16eeb

Please sign in to comment.