diff options
| author | 2025-02-09 06:38:48 +0100 | |
|---|---|---|
| committer | 2025-02-09 06:38:48 +0100 | |
| commit | f3ae4266e9727940ba0d0e8469362923590916f4 (patch) | |
| tree | 2a6871b981c083fe01b90511b58f510da7ed9ce2 /examples/gallery | |
| parent | ab236376a3f8f1ac3cdd8aeb0ffeee45e3de37e3 (diff) | |
| download | iced-f3ae4266e9727940ba0d0e8469362923590916f4.tar.gz iced-f3ae4266e9727940ba0d0e8469362923590916f4.tar.bz2 iced-f3ae4266e9727940ba0d0e8469362923590916f4.zip | |
Implement `From<u32>` instead of `u16` for `Length` and `Pixels`
Diffstat (limited to '')
| -rw-r--r-- | examples/gallery/src/civitai.rs | 2 | ||||
| -rw-r--r-- | examples/gallery/src/main.rs | 9 |
2 files changed, 4 insertions, 7 deletions
diff --git a/examples/gallery/src/civitai.rs b/examples/gallery/src/civitai.rs index c394ef1d..457091e9 100644 --- a/examples/gallery/src/civitai.rs +++ b/examples/gallery/src/civitai.rs @@ -125,7 +125,7 @@ impl fmt::Debug for Rgba { #[derive(Debug, Clone, Copy)] pub enum Size { Original, - Thumbnail { width: u16 }, + Thumbnail { width: u32 }, } #[derive(Debug, Clone)] diff --git a/examples/gallery/src/main.rs b/examples/gallery/src/main.rs index 6175f396..3bc66382 100644 --- a/examples/gallery/src/main.rs +++ b/examples/gallery/src/main.rs @@ -97,10 +97,7 @@ impl Gallery { Task::batch(vec