diff options
author | 2024-07-23 18:15:15 +0200 | |
---|---|---|
committer | 2024-07-23 18:15:15 +0200 | |
commit | c47844ca2b0dd3efbcb0a850878867bbb2a59a6c (patch) | |
tree | a8f3a2266bd10733a8aea591bd02a64ec976409c /widget | |
parent | dcdf1307006883f50083c186ca7b8656bfa60873 (diff) | |
download | iced-c47844ca2b0dd3efbcb0a850878867bbb2a59a6c.tar.gz iced-c47844ca2b0dd3efbcb0a850878867bbb2a59a6c.tar.bz2 iced-c47844ca2b0dd3efbcb0a850878867bbb2a59a6c.zip |
Fix `span` widget helper missing `Link` generic
Diffstat (limited to 'widget')
-rw-r--r-- | widget/src/helpers.rs | 4 |
1 files 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) } |