Skip to content

Commit 2538b79

Browse files
committed
fix macro
1 parent fd48eda commit 2538b79

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,
@@ -281,7 +279,7 @@ pub fn derive_query_data_impl(input: TokenStream) -> TokenStream {
281279
for #read_only_struct_name #user_ty_generics #user_where_clauses
282280
// Make these HRTBs with an unused lifetime parameter to allow trivial constraints
283281
// See https://github.com/rust-lang/rust/issues/48214
284-
where #(for<'__a> #field_types: #path::query::ReborrowQueryData,)* {
282+
where #(for<'__a> #field_types: #path::query::QueryData<ReadOnly: #path::query::ReborrowQueryData>,)* {
285283
fn reborrow<'wlong: 'short, 'slong: 'short, 'short>(
286284
item: &'short mut Self::Item<'wlong, 'slong>,
287285
) -> Self::Item<'short, 'short> {

0 commit comments

Comments
 (0)