From 0f9142338454940edd9bad553141b3fd9becc69b Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Wed, 25 Dec 2024 12:12:36 -0500 Subject: [PATCH] Fix `clippy::derivable_impls` lint --- crates/usvg/src/tree/filter.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/crates/usvg/src/tree/filter.rs b/crates/usvg/src/tree/filter.rs index 4b370774..f89d399d 100644 --- a/crates/usvg/src/tree/filter.rs +++ b/crates/usvg/src/tree/filter.rs @@ -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.