summaryrefslogtreecommitdiffstats
path: root/widget
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-07-23 18:15:15 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-07-23 18:15:15 +0200
commitc47844ca2b0dd3efbcb0a850878867bbb2a59a6c (patch)
treea8f3a2266bd10733a8aea591bd02a64ec976409c /widget
parentdcdf1307006883f50083c186ca7b8656bfa60873 (diff)
downloadiced-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.rs4
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)
}