mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
Or<T>
should be a new type of PhantomData<T>
(#8212)
# Objective `Or<T>` should be a new type of `PhantomData<T>` instead of `T`. ## Solution Make `Or<T>` a new type of `PhantomData<T>`. ## Migration Guide `Or<T>` is just used as a type annotation and shouldn't be constructed.
This commit is contained in:
parent
4f16d6e0dc
commit
e71078af49
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ unsafe impl<T: Component> ReadOnlyWorldQuery for Without<T> {}
|
|||
/// }
|
||||
/// # bevy_ecs::system::assert_is_system(print_cool_entity_system);
|
||||
/// ```
|
||||
pub struct Or<T>(pub T);
|
||||
pub struct Or<T>(PhantomData<T>);
|
||||
|
||||
#[doc(hidden)]
|
||||
pub struct OrFetch<'w, T: WorldQuery> {
|
||||
|
|
Loading…
Reference in a new issue