From c47844ca2b0dd3efbcb0a850878867bbb2a59a6c Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 23 Jul 2024 18:15:15 +0200 Subject: Fix `span` widget helper missing `Link` generic --- widget/src/helpers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'widget/src/helpers.rs') 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) } -- cgit