From 72d9f1b669b8b0b498b38bb9a1c0800e059e49fc Mon Sep 17 00:00:00 2001 From: Caleb Cartwright Date: Mon, 5 Sep 2022 19:33:42 -0500 Subject: [PATCH] chore: fix lint issue --- src/badge.rs | 5 ++++- src/graphics/raster.rs | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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,