summaryrefslogtreecommitdiffstats
path: root/core/src/length.rs
diff options
context:
space:
mode:
authorLibravatar Héctor <hector@hecrj.dev>2025-02-09 08:36:34 +0100
committerLibravatar GitHub <noreply@github.com>2025-02-09 08:36:34 +0100
commit12653114bd1cadb10b9fe185b6f2b1e4300bdcf7 (patch)
tree8fa2254a1eb36685fd93241db638d2ad65856bcb /core/src/length.rs
parent65bf503963bb58186ba7a60f6b6010e8a3b41ae7 (diff)
parente0d60d58391535d96f0864da4a4dde50d5669543 (diff)
downloadiced-12653114bd1cadb10b9fe185b6f2b1e4300bdcf7.tar.gz
iced-12653114bd1cadb10b9fe185b6f2b1e4300bdcf7.tar.bz2
iced-12653114bd1cadb10b9fe185b6f2b1e4300bdcf7.zip
Merge pull request #2796 from tarkah/feat/gallery-enhancements
Add blurhash to gallery
Diffstat (limited to 'core/src/length.rs')
-rw-r--r--core/src/length.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/length.rs b/core/src/length.rs
index 5f24169f..363833c4 100644
--- a/core/src/length.rs
+++ b/core/src/length.rs
@@ -77,8 +77,8 @@ impl From<f32> for Length {
}
}
-impl From<u16> for Length {
- fn from(units: u16) -> Self {
- Length::Fixed(f32::from(units))
+impl From<u32> for Length {
+ fn from(units: u32) -> Self {
+ Length::Fixed(units as f32)
}
}