Fix span widget helper missing Link generic
This commit is contained in:
parent
dcdf130700
commit
c47844ca2b
1 changed files with 2 additions and 2 deletions
|
|
@ -697,9 +697,9 @@ where
|
||||||
/// Creates a new [`Span`] of text with the provided content.
|
/// Creates a new [`Span`] of text with the provided content.
|
||||||
///
|
///
|
||||||
/// [`Span`]: text::Span
|
/// [`Span`]: text::Span
|
||||||
pub fn span<'a, Font>(
|
pub fn span<'a, Link, Font>(
|
||||||
text: impl text::IntoFragment<'a>,
|
text: impl text::IntoFragment<'a>,
|
||||||
) -> text::Span<'a, Font> {
|
) -> text::Span<'a, Link, Font> {
|
||||||
text::Span::new(text)
|
text::Span::new(text)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue