diff --git a/src/badge.rs b/src/badge.rs index 48affa8..090cc95 100644 --- a/src/badge.rs +++ b/src/badge.rs @@ -1,4 +1,7 @@ -#[derive(std::fmt::Debug, std::cmp::PartialEq)] +use std::cmp::{Eq, PartialEq}; +use std::fmt::Debug; + +#[derive(Debug, Eq, PartialEq)] pub enum BadgeStyle { Flat, FlatSquare, diff --git a/src/graphics/raster.rs b/src/graphics/raster.rs index 98a809f..d3d331b 100644 --- a/src/graphics/raster.rs +++ b/src/graphics/raster.rs @@ -1,3 +1,6 @@ +use std::cmp::{Eq, PartialEq}; +use std::fmt::Debug; + use super::{SvgProcessor, INVALID_SVG}; use crate::badge::BadgeStyle; @@ -9,7 +12,7 @@ use gio::{MemoryInputStream, NONE_CANCELLABLE, NONE_FILE}; use glib::Bytes; use librsvg::IntrinsicDimensions; -#[derive(std::fmt::Debug, std::cmp::PartialEq)] +#[derive(Debug, Eq, PartialEq)] pub enum SvgToPngConversionError { ImageContextCreationFailure, ImageSurfaceCreationFailure,