Fix clippy lints for Rust 1.66
This commit is contained in:
parent
e0c728c62c
commit
6bb01b7276
10 changed files with 28 additions and 40 deletions
|
|
@ -116,8 +116,8 @@ impl std::ops::Mul<f32> for Rectangle<f32> {
|
|||
|
||||
fn mul(self, scale: f32) -> Self {
|
||||
Self {
|
||||
x: self.x as f32 * scale,
|
||||
y: self.y as f32 * scale,
|
||||
x: self.x * scale,
|
||||
y: self.y * scale,
|
||||
width: self.width * scale,
|
||||
height: self.height * scale,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue