diff options
-rw-r--r-- | widget/src/markdown.rs | 4 |
1 files 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) } |