Fix unused variable in tiny_skia when image feature is disabled

This commit is contained in:
Héctor Ramón Jiménez 2025-10-29 00:09:17 +01:00
parent e665afd9eb
commit 951f3a5b2b
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -231,7 +231,7 @@ impl core::Renderer for Renderer {
fn allocate_image( fn allocate_image(
&mut self, &mut self,
handle: &core::image::Handle, _handle: &core::image::Handle,
callback: impl FnOnce(Result<core::image::Allocation, core::image::Error>) callback: impl FnOnce(Result<core::image::Allocation, core::image::Error>)
+ Send + Send
+ 'static, + 'static,
@ -239,7 +239,7 @@ impl core::Renderer for Renderer {
#[cfg(feature = "image")] #[cfg(feature = "image")]
#[allow(unsafe_code)] #[allow(unsafe_code)]
// TODO: Concurrency // TODO: Concurrency
callback(self.engine.raster_pipeline.load(handle)); callback(self.engine.raster_pipeline.load(_handle));
#[cfg(not(feature = "image"))] #[cfg(not(feature = "image"))]
callback(Err(core::image::Error::Unsupported)) callback(Err(core::image::Error::Unsupported))