Skip to content

Commit

Permalink
Fix clippy::derivable_impls lint
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Dec 25, 2024
1 parent 3139e43 commit 0f91423
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions crates/usvg/src/tree/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,19 +134,16 @@ pub enum Input {
}

/// A color interpolation mode.
///
/// The default is `ColorInterpolation::LinearRGB`.
#[allow(missing_docs)]
#[derive(Clone, Copy, PartialEq, Debug)]
#[derive(Clone, Copy, PartialEq, Debug, Default)]
pub enum ColorInterpolation {
SRGB,
#[default]
LinearRGB,
}

impl Default for ColorInterpolation {
fn default() -> Self {
ColorInterpolation::LinearRGB
}
}

/// A blend filter primitive.
///
/// `feBlend` element in the SVG.
Expand Down

0 comments on commit 0f91423

Please sign in to comment.