utils: derived implementation of default
use crate::{Angle, Color, OnLinePos, OnPlanePos, Point, RelativeDir};
/// Describes a position on a colorful gradient.
-#[derive(Copy, Clone, PartialEq, Debug)]
+#[derive(Copy, Clone, Default, Debug, PartialEq)]
pub struct GradientStop {
pub pos: Option<OnLinePos>,
pub color: Color,
@@ -38,15 +38,6 @@ impl From<Color> for GradientStop {
}
}
-impl Default for GradientStop {
- fn default() -> GradientStop {
- GradientStop {
- pos: None,
- color: Color::default(),
- }
- }
-}
-
/// Describes the coordinates of a colorful linear gradient.
#[derive(Copy, Clone, PartialEq, Debug)]
pub enum LinearGradientCoords {
