diff --git a/crates/bevy_ecs/macros/src/lib.rs b/crates/bevy_ecs/macros/src/lib.rs index 98fbe27200b2e..f518e0a0e73f7 100644 --- a/crates/bevy_ecs/macros/src/lib.rs +++ b/crates/bevy_ecs/macros/src/lib.rs @@ -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 }