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)