summaryrefslogtreecommitdiffstats
path: root/widget
diff options
context:
space:
mode:
authorLibravatar Héctor <hector@hecrj.dev>2024-10-02 18:08:11 +0200
committerLibravatar GitHub <noreply@github.com>2024-10-02 18:08:11 +0200
commitbc215f6077ae57fcf573cfa2efb98adfef144660 (patch)
treebfa154cb937d4600073d4f5476042be0c04dbb23 /widget
parent4a080e27ab05d33b6c053328a21746ac0af0e2a0 (diff)
parent8d66b9788864a0df26dc5aeb7f3eca4547dfe4b2 (diff)
downloadiced-bc215f6077ae57fcf573cfa2efb98adfef144660.tar.gz
iced-bc215f6077ae57fcf573cfa2efb98adfef144660.tar.bz2
iced-bc215f6077ae57fcf573cfa2efb98adfef144660.zip
Merge pull request #2623 from boondocklabs/markdown-lifetime
Change lifetime of markdown IntoIterator Item, as it does not need to live as long as the returned Element
Diffstat (limited to 'widget')
-rw-r--r--widget/src/markdown.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/widget/src/markdown.rs b/widget/src/markdown.rs
index d3f88310..d6bebb9b 100644
--- a/widget/src/markdown.rs
+++ b/widget/src/markdown.rs
@@ -613,8 +613,8 @@ impl Style {
/// }
/// }
/// ```
-pub fn view<'a, Theme, Renderer>(
- items: impl IntoIterator<Item = &'a Item>,
+pub fn view<'a, 'b, Theme, Renderer>(
+ items: impl IntoIterator<Item = &'b Item>,
settings: Settings,
style: Style,
) -> Element<'a, Url, Theme, Renderer>