Aplly clippy
This commit is contained in:
parent
78a4f8b75e
commit
659f2c8e5e
|
@ -22,7 +22,7 @@ pub struct Cli {
|
||||||
pub size: Option<Size>,
|
pub size: Option<Size>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Copy, Clone, Parser)]
|
#[derive(Debug, Copy, Clone, Parser, Default)]
|
||||||
pub struct Size {
|
pub struct Size {
|
||||||
pub x: usize,
|
pub x: usize,
|
||||||
pub y: 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 {
|
impl Display for Size {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
write!(f, "{}x{}", self.x, self.y)
|
write!(f, "{}x{}", self.x, self.y)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user