diff options
author | 2022-12-20 11:31:25 +0100 | |
---|---|---|
committer | 2022-12-20 11:31:25 +0100 | |
commit | 6bb01b727611b83592f96b2b89371a12e7ce54d8 (patch) | |
tree | c75ba7d21b0bec1f5000b6e4ababff923d09387c /native/src/widget/toggler.rs | |
parent | e0c728c62c6fd9496de1d442e7476e24fc5e9023 (diff) | |
download | iced-6bb01b727611b83592f96b2b89371a12e7ce54d8.tar.gz iced-6bb01b727611b83592f96b2b89371a12e7ce54d8.tar.bz2 iced-6bb01b727611b83592f96b2b89371a12e7ce54d8.zip |
Fix `clippy` lints for Rust 1.66
Diffstat (limited to 'native/src/widget/toggler.rs')
-rw-r--r-- | native/src/widget/toggler.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/toggler.rs b/native/src/widget/toggler.rs index 37cafd92..1ae65ba6 100644 --- a/native/src/widget/toggler.rs +++ b/native/src/widget/toggler.rs @@ -265,8 +265,8 @@ where theme.active(&self.style, self.is_active) }; - let border_radius = bounds.height as f32 / BORDER_RADIUS_RATIO; - let space = SPACE_RATIO * bounds.height as f32; + let border_radius = bounds.height / BORDER_RADIUS_RATIO; + let space = SPACE_RATIO * bounds.height; let toggler_background_bounds = Rectangle { x: bounds.x + space, |