Aplly clippy
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user