diff --git a/crates/bevy_math/src/curve/adaptors.rs b/crates/bevy_math/src/curve/adaptors.rs index 18780d5138..33086c2995 100644 --- a/crates/bevy_math/src/curve/adaptors.rs +++ b/crates/bevy_math/src/curve/adaptors.rs @@ -85,7 +85,7 @@ pub struct FunctionCurve { #[cfg_attr(feature = "bevy_reflect", reflect(ignore))] pub(crate) f: F, #[cfg_attr(feature = "bevy_reflect", reflect(ignore))] - pub(crate) _phantom: PhantomData, + pub(crate) _phantom: PhantomData T>, } impl Debug for FunctionCurve { @@ -186,7 +186,7 @@ pub struct MapCurve { #[cfg_attr(feature = "bevy_reflect", reflect(ignore))] pub(crate) f: F, #[cfg_attr(feature = "bevy_reflect", reflect(ignore))] - pub(crate) _phantom: PhantomData<(S, T)>, + pub(crate) _phantom: PhantomData<(fn() -> S, fn(S) -> T)>, } impl Debug for MapCurve @@ -283,7 +283,7 @@ pub struct ReparamCurve { #[cfg_attr(feature = "bevy_reflect", reflect(ignore))] pub(crate) f: F, #[cfg_attr(feature = "bevy_reflect", reflect(ignore))] - pub(crate) _phantom: PhantomData, + pub(crate) _phantom: PhantomData T>, } impl Debug for ReparamCurve @@ -377,7 +377,7 @@ pub struct LinearReparamCurve { /// Invariants: This interval must always be bounded. pub(crate) new_domain: Interval, #[cfg_attr(feature = "bevy_reflect", reflect(ignore))] - pub(crate) _phantom: PhantomData, + pub(crate) _phantom: PhantomData T>, } impl Curve for LinearReparamCurve @@ -410,7 +410,7 @@ pub struct CurveReparamCurve { pub(crate) base: C, pub(crate) reparam_curve: D, #[cfg_attr(feature = "bevy_reflect", reflect(ignore))] - pub(crate) _phantom: PhantomData, + pub(crate) _phantom: PhantomData T>, } impl Curve for CurveReparamCurve @@ -442,7 +442,7 @@ where pub struct GraphCurve { pub(crate) base: C, #[cfg_attr(feature = "bevy_reflect", reflect(ignore))] - pub(crate) _phantom: PhantomData, + pub(crate) _phantom: PhantomData T>, } impl Curve<(f32, T)> for GraphCurve @@ -474,7 +474,7 @@ pub struct ZipCurve { pub(crate) first: C, pub(crate) second: D, #[cfg_attr(feature = "bevy_reflect", reflect(ignore))] - pub(crate) _phantom: PhantomData<(S, T)>, + pub(crate) _phantom: PhantomData (S, T)>, } impl Curve<(S, T)> for ZipCurve @@ -514,7 +514,7 @@ pub struct ChainCurve { pub(crate) first: C, pub(crate) second: D, #[cfg_attr(feature = "bevy_reflect", reflect(ignore))] - pub(crate) _phantom: PhantomData, + pub(crate) _phantom: PhantomData T>, } impl Curve for ChainCurve @@ -563,7 +563,7 @@ where pub struct ReverseCurve { pub(crate) curve: C, #[cfg_attr(feature = "bevy_reflect", reflect(ignore))] - pub(crate) _phantom: PhantomData, + pub(crate) _phantom: PhantomData T>, } impl Curve for ReverseCurve @@ -605,7 +605,7 @@ pub struct RepeatCurve { pub(crate) domain: Interval, pub(crate) curve: C, #[cfg_attr(feature = "bevy_reflect", reflect(ignore))] - pub(crate) _phantom: PhantomData, + pub(crate) _phantom: PhantomData T>, } impl Curve for RepeatCurve @@ -653,7 +653,7 @@ where pub struct ForeverCurve { pub(crate) curve: C, #[cfg_attr(feature = "bevy_reflect", reflect(ignore))] - pub(crate) _phantom: PhantomData, + pub(crate) _phantom: PhantomData T>, } impl Curve for ForeverCurve @@ -697,7 +697,7 @@ where pub struct PingPongCurve { pub(crate) curve: C, #[cfg_attr(feature = "bevy_reflect", reflect(ignore))] - pub(crate) _phantom: PhantomData, + pub(crate) _phantom: PhantomData T>, } impl Curve for PingPongCurve @@ -754,7 +754,7 @@ pub struct ContinuationCurve { // cache the offset in the curve directly to prevent triple sampling for every sample we make pub(crate) offset: T, #[cfg_attr(feature = "bevy_reflect", reflect(ignore))] - pub(crate) _phantom: PhantomData, + pub(crate) _phantom: PhantomData T>, } impl Curve for ContinuationCurve