Skip to content

Commit 6becb1e

Browse files
committed
fix macro
1 parent 86e6648 commit 6becb1e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/bevy_ecs/macros/src/query_data.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,6 @@ pub fn derive_query_data_impl(input: TokenStream) -> TokenStream {
247247
}
248248
}
249249

250-
251-
252250
fn provide_extra_access(
253251
state: &mut Self::State,
254252
access: &mut #path::query::Access,
@@ -275,7 +273,7 @@ pub fn derive_query_data_impl(input: TokenStream) -> TokenStream {
275273
for #read_only_struct_name #user_ty_generics #user_where_clauses
276274
// Make these HRTBs with an unused lifetime parameter to allow trivial constraints
277275
// See https://github.com/rust-lang/rust/issues/48214
278-
where #(for<'__a> #field_types: #path::query::ReborrowQueryData,)* {
276+
where #(for<'__a> #field_types: #path::query::QueryData<ReadOnly: #path::query::ReborrowQueryData>,)* {
279277
fn reborrow<'wlong: 'short, 'slong: 'short, 'short>(
280278
item: &'short mut Self::Item<'wlong, 'slong>,
281279
) -> Self::Item<'short, 'short> {

0 commit comments

Comments
 (0)