From 42f6018487e88eb3988e8650e51ba6e369327b64 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 19 Feb 2025 07:02:05 +0100 Subject: Remove lifetime bound for `Text` in `markdown::paragraph` --- widget/src/markdown.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widget/src/markdown.rs b/widget/src/markdown.rs index 7e7ae4b1..ad4b81fe 100644 --- a/widget/src/markdown.rs +++ b/widget/src/markdown.rs @@ -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) } -- cgit