Skip to content

Commit

Permalink
silence some dead code warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
micahrj committed Aug 23, 2024
1 parent 560ac22 commit f66376d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions reflector-graphics/src/flatten.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions reflector-graphics/src/simd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand All @@ -66,6 +67,7 @@ where
fn prefix_sum(self) -> Self;
}

#[allow(unused)]
pub trait Int: Sized
where
Self: Shl<usize, Output = Self>,
Expand Down

0 comments on commit f66376d

Please sign in to comment.