We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba68958 commit b7845d9Copy full SHA for b7845d9
crates/bevy_ecs/macros/src/fetch.rs
@@ -73,7 +73,8 @@ pub fn derive_fetch_impl(input: TokenStream) -> TokenStream {
73
let struct_read_only_declaration = if has_mutable_attr {
74
quote! {
75
// TODO: it would be great to be able to dedup this by just deriving `Fetch` again
76
- // without the `mutable` attribute, but supporting QSelf types is tricky.
+ // without the `mutable` attribute, but we'd need a way to avoid creating a redundant
77
+ // `State` struct.
78
#read_only_derive_macro_call
79
struct #struct_name_read_only #impl_generics #where_clause {
80
#(#field_idents: <<#query_types as #path::query::WorldQuery>::ReadOnlyFetch as #path::query::Fetch<#world_lifetime, #world_lifetime>>::Item,)*
0 commit comments