diff options
author | 2023-02-17 16:09:49 +0100 | |
---|---|---|
committer | 2023-02-17 16:09:49 +0100 | |
commit | 3320ac1126750ed1c462d4f1ff81a59c74d1e9fb (patch) | |
tree | 1bc13717cc9ea27cfdae3912745d2b52ec0c6330 /native/src/layout/flex.rs | |
parent | 0872d078e2e3200e2aa2f5ee0005c34fff9effb7 (diff) | |
download | iced-3320ac1126750ed1c462d4f1ff81a59c74d1e9fb.tar.gz iced-3320ac1126750ed1c462d4f1ff81a59c74d1e9fb.tar.bz2 iced-3320ac1126750ed1c462d4f1ff81a59c74d1e9fb.zip |
Use `f32` for `Padding`
Diffstat (limited to '')
-rw-r--r-- | native/src/layout/flex.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/layout/flex.rs b/native/src/layout/flex.rs index 94121d76..5d70c2fc 100644 --- a/native/src/layout/flex.rs +++ b/native/src/layout/flex.rs @@ -191,7 +191,7 @@ where } } - let pad = axis.pack(padding.left as f32, padding.top as f32); + let pad = axis.pack(padding.left, padding.top); let mut main = pad.0; for (i, node) in nodes.iter_mut().enumerate() { |