From 951f3a5b2b1e9894370681e9ed85a44095f0f200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Wed, 29 Oct 2025 00:09:17 +0100 Subject: [PATCH] Fix unused variable in `tiny_skia` when `image` feature is disabled --- tiny_skia/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tiny_skia/src/lib.rs b/tiny_skia/src/lib.rs index 0d04c033..725a0d74 100644 --- a/tiny_skia/src/lib.rs +++ b/tiny_skia/src/lib.rs @@ -231,7 +231,7 @@ impl core::Renderer for Renderer { fn allocate_image( &mut self, - handle: &core::image::Handle, + _handle: &core::image::Handle, callback: impl FnOnce(Result) + Send + 'static, @@ -239,7 +239,7 @@ impl core::Renderer for Renderer { #[cfg(feature = "image")] #[allow(unsafe_code)] // TODO: Concurrency - callback(self.engine.raster_pipeline.load(handle)); + callback(self.engine.raster_pipeline.load(_handle)); #[cfg(not(feature = "image"))] callback(Err(core::image::Error::Unsupported))