From c0fb3ea9e8642c045c0716d85c8ac317bf451439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Mon, 27 Oct 2025 00:02:29 +0100 Subject: [PATCH] Take `Into` in `image::allocate` --- runtime/src/image.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/src/image.rs b/runtime/src/image.rs index d35f7006..2e2cfa69 100644 --- a/runtime/src/image.rs +++ b/runtime/src/image.rs @@ -17,8 +17,8 @@ pub enum Action { /// When you obtain an [`Allocation`] explicitly, you get the guarantee /// that using a [`Handle`] will draw the corresponding image immediately /// in the next frame. -pub fn allocate(handle: Handle) -> Task { +pub fn allocate(handle: impl Into) -> Task { task::oneshot(|sender| { - crate::Action::Image(Action::Allocate(handle, sender)) + crate::Action::Image(Action::Allocate(handle.into(), sender)) }) }