From c47844ca2b0dd3efbcb0a850878867bbb2a59a6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Tue, 23 Jul 2024 18:15:15 +0200 Subject: [PATCH] Fix `span` widget helper missing `Link` generic --- widget/src/helpers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widget/src/helpers.rs b/widget/src/helpers.rs index 5b1cb5bc..dcc668ca 100644 --- a/widget/src/helpers.rs +++ b/widget/src/helpers.rs @@ -697,9 +697,9 @@ where /// Creates a new [`Span`] of text with the provided content. /// /// [`Span`]: text::Span -pub fn span<'a, Font>( +pub fn span<'a, Link, Font>( text: impl text::IntoFragment<'a>, -) -> text::Span<'a, Font> { +) -> text::Span<'a, Link, Font> { text::Span::new(text) }