Skip to content

Commit

Permalink
bevyengine#5817: derive_bundle macro is not hygienic
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoday committed Aug 29, 2022
1 parent f62bdc3 commit 7fc2c42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_ecs/macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ pub fn derive_bundle(input: TokenStream) -> TokenStream {
fn component_ids(
components: &mut #ecs_path::component::Components,
storages: &mut #ecs_path::storage::Storages,
) -> Vec<#ecs_path::component::ComponentId> {
let mut component_ids = Vec::with_capacity(#field_len);
) -> ::std::vec::Vec<#ecs_path::component::ComponentId> {
let mut component_ids = ::std::vec::Vec::with_capacity(#field_len);
#(#field_component_ids)*
component_ids
}
Expand Down

0 comments on commit 7fc2c42

Please sign in to comment.