Skip to content

Commit

Permalink
Hard to please the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dgsantana committed Feb 27, 2024
1 parent 22ed734 commit 2ee6180
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Expand Up @@ -540,11 +540,13 @@ impl<T: Asset> AssetAnimator<T> {
}

/// Trait to interpolate between two values.
/// Need for color.
/// Needed for color.
#[allow(dead_code)]
trait Lerper {
fn lerp(&self, target: &Self, ratio: f32) -> Self;
}

#[allow(dead_code)]
impl Lerper for Color {
fn lerp(&self, target: &Color, ratio: f32) -> Color {
let r = self.r().lerp(target.r(), ratio);
Expand Down

0 comments on commit 2ee6180

Please sign in to comment.