From e84070acef84f883ca42d965c577e54ce60c3f2a Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 3 Aug 2024 16:20:12 +0200 Subject: Implement `From<&Handle>` for `image::Handle` --- widget/src/image.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widget') diff --git a/widget/src/image.rs b/widget/src/image.rs index 80e17263..f1571400 100644 --- a/widget/src/image.rs +++ b/widget/src/image.rs @@ -43,7 +43,7 @@ pub struct Image { impl Image { /// Creates a new [`Image`] with the given path. - pub fn new>(handle: T) -> Self { + pub fn new(handle: impl Into) -> Self { Image { handle: handle.into(), width: Length::Shrink, -- cgit