summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-12-20 11:45:38 +0100
committerLibravatar GitHub <noreply@github.com>2022-12-20 11:45:38 +0100
commit678de1187994f29e3701740617bb5b1963f80c69 (patch)
tree2971553e7bb3d2b9278b422f33e27c2c5c79e5d0 /core
parentd2d18479acd987b4a4f6a125c0dda7b2a6661df4 (diff)
parent6bb01b727611b83592f96b2b89371a12e7ce54d8 (diff)
downloadiced-678de1187994f29e3701740617bb5b1963f80c69.tar.gz
iced-678de1187994f29e3701740617bb5b1963f80c69.tar.bz2
iced-678de1187994f29e3701740617bb5b1963f80c69.zip
Merge pull request #1611 from iced-rs/fix/clippy-lints
Fix `clippy` lints for Rust 1.66
Diffstat (limited to '')
-rw-r--r--core/src/rectangle.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/rectangle.rs b/core/src/rectangle.rs
index 4e082051..4fe91519 100644
--- a/core/src/rectangle.rs
+++ b/core/src/rectangle.rs
@@ -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,
}