From 659f2c8e5e0e907bc984336a2fbedb5dcc34e026 Mon Sep 17 00:00:00 2001 From: yanorei32 Date: Fri, 26 May 2023 05:32:21 +0900 Subject: [PATCH] Aplly clippy --- src/model.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/model.rs b/src/model.rs index 9d556cf..becee03 100644 --- a/src/model.rs +++ b/src/model.rs @@ -22,7 +22,7 @@ pub struct Cli { pub size: Option, } -#[derive(Debug, Copy, Clone, Parser)] +#[derive(Debug, Copy, Clone, Parser, Default)] pub struct Size { pub x: usize, pub y: usize, @@ -66,12 +66,6 @@ impl From for SIZE { } } -impl Default for Size { - fn default() -> Self { - Self { x: 0, y: 0 } - } -} - impl Display for Size { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "{}x{}", self.x, self.y)