summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Matt Thompson <matt@boondocker.io>2024-10-01 19:30:10 -0700
committerLibravatar Matt Thompson <matt@boondocker.io>2024-10-01 19:30:10 -0700
commit8d66b9788864a0df26dc5aeb7f3eca4547dfe4b2 (patch)
tree988b740a164fa0fb466c519573800e59c89c141f
parent75548373a761d66df364494267c89697dda91fbe (diff)
downloadiced-8d66b9788864a0df26dc5aeb7f3eca4547dfe4b2.tar.gz
iced-8d66b9788864a0df26dc5aeb7f3eca4547dfe4b2.tar.bz2
iced-8d66b9788864a0df26dc5aeb7f3eca4547dfe4b2.zip
Change lifetime of markdown view IntoIterator Item, as it does not need to live as long as the returned Element.
-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 8adc368c..912ef2f5 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>