diff --git a/reflector-graphics/src/flatten.rs b/reflector-graphics/src/flatten.rs index cfee1f4..4b77c89 100644 --- a/reflector-graphics/src/flatten.rs +++ b/reflector-graphics/src/flatten.rs @@ -12,7 +12,9 @@ trait Curve { fn eval(&self, t: f32) -> Point; fn tangent(&self, t: f32) -> Point; + #[allow(unused)] fn start_tangent(&self) -> Point; + #[allow(unused)] fn end_tangent(&self) -> Point; fn segments_for_tolerance(&self, tolerance: f32) -> usize; diff --git a/reflector-graphics/src/simd/mod.rs b/reflector-graphics/src/simd/mod.rs index 561bc7c..38120d4 100644 --- a/reflector-graphics/src/simd/mod.rs +++ b/reflector-graphics/src/simd/mod.rs @@ -46,6 +46,7 @@ where fn last(&self) -> Self::Elem; fn as_slice(&self) -> &[Self::Elem]; + #[allow(unused)] fn as_mut_slice(&mut self) -> &mut [Self::Elem]; fn load(slice: &[Self::Elem]) -> Self; fn store(&self, slice: &mut [Self::Elem]); @@ -66,6 +67,7 @@ where fn prefix_sum(self) -> Self; } +#[allow(unused)] pub trait Int: Sized where Self: Shl,