diff options
author | 2023-02-17 15:56:19 +0100 | |
---|---|---|
committer | 2023-02-17 15:56:19 +0100 | |
commit | 0872d078e2e3200e2aa2f5ee0005c34fff9effb7 (patch) | |
tree | e0cc12b848edbfd83054e9069fac9635d0a0f4ef /native/src/widget/toggler.rs | |
parent | 67e3da56690c0681469276f7fa8155bbfc6e585a (diff) | |
download | iced-0872d078e2e3200e2aa2f5ee0005c34fff9effb7.tar.gz iced-0872d078e2e3200e2aa2f5ee0005c34fff9effb7.tar.bz2 iced-0872d078e2e3200e2aa2f5ee0005c34fff9effb7.zip |
Use `Pixels` for `size` methods
Diffstat (limited to '')
-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 eda8f85f..62bdce4a 100644 --- a/native/src/widget/toggler.rs +++ b/native/src/widget/toggler.rs @@ -85,8 +85,8 @@ where } /// Sets the size of the [`Toggler`]. - pub fn size(mut self, size: f32) -> Self { - self.size = size; + pub fn size(mut self, size: impl Into<Pixels>) -> Self { + self.size = size.into().0; self } |