From c39ff75262c3ab642c783198ac5e8545efe8fa22 Mon Sep 17 00:00:00 2001 From: Infinty-ux Date: Sun, 28 Jun 2026 01:20:00 -0400 Subject: [PATCH 1/2] docs: fix hijacked trunk link in tour example --- examples/tour/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/tour/README.md b/examples/tour/README.md index 1c01236b31..3b82f54645 100644 --- a/examples/tour/README.md +++ b/examples/tour/README.md @@ -30,4 +30,4 @@ cd examples/tour trunk serve ``` -[`trunk`]: https://trunkrs.dev/ +[`trunk`]: https://github.com/trunk-rs/trunk From b0a317454b199d52d9bbf58b9e4d0600338026f3 Mon Sep 17 00:00:00 2001 From: Infinty-ux Date: Wed, 1 Jul 2026 17:56:59 -0400 Subject: [PATCH 2/2] fix(image): assert width and height are greater than 0 --- core/src/image.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/image.rs b/core/src/image.rs index b0079b998c..634ce94a9c 100644 --- a/core/src/image.rs +++ b/core/src/image.rs @@ -132,6 +132,11 @@ impl Handle { /// /// This is useful if you have already decoded your image. pub fn from_rgba(width: u32, height: u32, pixels: impl Into) -> Handle { + assert!( + width > 0 && height > 0, + "Image width and height must be greater than 0" + ); + Self::Rgba { id: Id::unique(), width,