clippy --fix && fmt

This commit is contained in:
Henry Schimke
2023-03-06 11:37:37 -06:00
parent fe8f89cd29
commit bef21af81e
6 changed files with 269 additions and 299 deletions

View File

@@ -235,7 +235,10 @@ impl Point {
}
pub fn round(self) -> Self {
Self { x: self.x.round(), y: self.y.round() }
Self {
x: self.x.round(),
y: self.y.round(),
}
}
}
@@ -251,8 +254,8 @@ impl From<(f32, f32)> for Point {
}
}
impl From<(i32,i32)> for Point {
fn from(value: (i32,i32)) -> Self {
impl From<(i32, i32)> for Point {
fn from(value: (i32, i32)) -> Self {
Self::new(value.0 as f32, value.1 as f32)
}
}