From 8889cbc7ea45cae1c660e59b3fc624af45de97b2 Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Thu, 26 Sep 2024 12:59:45 +0100 Subject: [PATCH] Tweaks --- cmdapp/src/config.rs | 10 +++++----- cmdapp/src/svg.rs | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmdapp/src/config.rs b/cmdapp/src/config.rs index 7bc068e..d20a4d2 100644 --- a/cmdapp/src/config.rs +++ b/cmdapp/src/config.rs @@ -1,27 +1,27 @@ use std::str::FromStr; use visioncortex::PathSimplifyMode; -#[derive(Clone, Debug)] +#[derive(Debug, Clone)] pub enum Preset { Bw, Poster, Photo, } -#[derive(Clone, Debug)] +#[derive(Debug, Clone)] pub enum ColorMode { Color, Binary, } -#[derive(Clone, Debug)] +#[derive(Debug, Clone)] pub enum Hierarchical { Stacked, Cutout, } /// Converter config -#[derive(Clone, Debug)] +#[derive(Debug, Clone)] pub struct Config { pub color_mode: ColorMode, pub hierarchical: Hierarchical, @@ -36,7 +36,7 @@ pub struct Config { pub path_precision: Option, } -#[derive(Clone, Debug)] +#[derive(Debug, Clone)] pub(crate) struct ConverterConfig { pub color_mode: ColorMode, pub hierarchical: Hierarchical, diff --git a/cmdapp/src/svg.rs b/cmdapp/src/svg.rs index 10e6a67..a9135ce 100644 --- a/cmdapp/src/svg.rs +++ b/cmdapp/src/svg.rs @@ -1,7 +1,7 @@ use std::fmt; use visioncortex::{Color, CompoundPath, PointF64}; -#[derive(Clone, Debug)] +#[derive(Debug, Clone)] pub struct SvgFile { pub paths: Vec, pub width: usize, @@ -9,7 +9,7 @@ pub struct SvgFile { pub path_precision: Option, } -#[derive(Clone, Debug)] +#[derive(Debug, Clone)] pub struct SvgPath { pub path: CompoundPath, pub color: Color,