Skip to content

Commit 516543c

Browse files
committed
chore(update): make ReadOnly of &mut trait really read only
Authored-by: RobWalt <[email protected]> Reviewed-by: Azorlogh <[email protected]>
1 parent df16eeb commit 516543c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

proc-macro/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,8 @@ fn impl_trait_query(arg: TokenStream, item: TokenStream) -> Result<TokenStream2>
254254
unsafe impl #impl_generics_with_lifetime #imports::QueryData for &'__a mut #trait_object
255255
#where_clause
256256
{
257-
type ReadOnly = &'__a mut #trait_object;
257+
type ReadOnly = &'__a #trait_object;
258258
}
259-
unsafe impl #impl_generics #imports::ReadOnlyQueryData for &mut #trait_object
260-
#where_clause
261-
{}
262259

263260
unsafe impl #impl_generics_with_lifetime #imports::WorldQuery for &'__a mut #trait_object
264261
#where_clause

0 commit comments

Comments
 (0)