diff options
author | 2025-02-19 07:02:05 +0100 | |
---|---|---|
committer | 2025-02-19 07:03:08 +0100 | |
commit | 42f6018487e88eb3988e8650e51ba6e369327b64 (patch) | |
tree | ec19e41a25f2e12e54a9aa65d584a74158c7a684 | |
parent | 51e44e036a5e2acf67caae4fc7265e6185f13d42 (diff) | |
download | iced-42f6018487e88eb3988e8650e51ba6e369327b64.tar.gz iced-42f6018487e88eb3988e8650e51ba6e369327b64.tar.bz2 iced-42f6018487e88eb3988e8650e51ba6e369327b64.zip |
Remove lifetime bound for `Text` in `markdown::paragraph`
-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) } |