diff --git a/crates/bevy_gizmos/src/arrows.rs b/crates/bevy_gizmos/src/arrows.rs index df80d0f840cc94..e17c5674f59a84 100644 --- a/crates/bevy_gizmos/src/arrows.rs +++ b/crates/bevy_gizmos/src/arrows.rs @@ -145,7 +145,11 @@ where } } -impl<'w, 's, T: GizmoConfigGroup> Gizmos<'w, 's, T> { +impl<'w, 's, Config, Clear> Gizmos<'w, 's, Config, Clear> +where + Config: GizmoConfigGroup, + Clear: 'static + Send + Sync, +{ /// Draw a set of axes local to the given transform (`transform`), with length scaled by a factor /// of `base_length`. /// diff --git a/crates/bevy_gizmos/src/gizmos.rs b/crates/bevy_gizmos/src/gizmos.rs index eccdf47f77367e..b3ff80009d9cce 100644 --- a/crates/bevy_gizmos/src/gizmos.rs +++ b/crates/bevy_gizmos/src/gizmos.rs @@ -260,8 +260,9 @@ where } } -impl<'w, 's, T: GizmoConfigGroup, Clear> Gizmos<'w, 's, T, Clear> +impl<'w, 's, Config, Clear> Gizmos<'w, 's, Config, Clear> where + Config: GizmoConfigGroup, Clear: 'static + Send + Sync, { /// Draw a line in 3D from `start` to `end`. @@ -477,7 +478,7 @@ where rotation: Quat, radius: f32, color: impl Into, - ) -> SphereBuilder<'_, 'w, 's, T, Clear> { + ) -> SphereBuilder<'_, 'w, 's, Config, Clear> { SphereBuilder { gizmos: self, position,