Remove lifetime bound for Text in markdown::paragraph

This commit is contained in:
Héctor Ramón Jiménez 2025-02-19 07:02:05 +01:00
parent 51e44e036a
commit 42f6018487
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -1099,7 +1099,7 @@ where
/// Displays a paragraph using the default look.
pub fn paragraph<'a, Message, Theme, Renderer>(
settings: Settings,
text: &'a Text,
text: &Text,
on_link_click: impl Fn(Url) -> Message + 'a,
) -> Element<'a, Message, Theme, Renderer>
where
@ -1264,7 +1264,7 @@ where
fn paragraph(
&self,
settings: Settings,
text: &'a Text,
text: &Text,
) -> Element<'a, Message, Theme, Renderer> {
paragraph(settings, text, Self::on_link_click)
}