Aplly clippy

This commit is contained in:
yanorei32 2023-05-26 05:32:21 +09:00
parent 78a4f8b75e
commit 659f2c8e5e

View File

@ -22,7 +22,7 @@ pub struct Cli {
pub size: Option<Size>,
}
#[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<Size> 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)