diff --git a/crates/bevy_camera/src/primitives.rs b/crates/bevy_camera/src/primitives.rs index e7f7526dce6ac..9b1fc41c59c39 100644 --- a/crates/bevy_camera/src/primitives.rs +++ b/crates/bevy_camera/src/primitives.rs @@ -652,7 +652,7 @@ mod tests { #[test] fn aabb_enclosing() { - assert_eq!(Aabb::enclosing(<[Vec3; 0]>::default()), None); + assert_eq!(Aabb::enclosing([] as [Vec3; 0]), None); assert_eq!( Aabb::enclosing(vec![Vec3::ONE]).unwrap(), Aabb::from_min_max(Vec3::ONE, Vec3::ONE) diff --git a/crates/bevy_ecs/src/entity/unique_array.rs b/crates/bevy_ecs/src/entity/unique_array.rs index 71df33ec5f42c..db6b67bd7af95 100644 --- a/crates/bevy_ecs/src/entity/unique_array.rs +++ b/crates/bevy_ecs/src/entity/unique_array.rs @@ -157,7 +157,7 @@ impl DerefMut for UniqueEntityEquivalentArr impl Default for UniqueEntityEquivalentArray { fn default() -> Self { - Self(Default::default()) + Self([]) } }