Fix span widget helper missing Link generic

This commit is contained in:
Héctor Ramón Jiménez 2024-07-23 18:15:15 +02:00
parent dcdf130700
commit c47844ca2b
No known key found for this signature in database
GPG key ID: 4C07CEC81AFA161F

View file

@ -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)
}