diff options
author | 2024-10-01 19:30:10 -0700 | |
---|---|---|
committer | 2024-10-01 19:30:10 -0700 | |
commit | 8d66b9788864a0df26dc5aeb7f3eca4547dfe4b2 (patch) | |
tree | 988b740a164fa0fb466c519573800e59c89c141f /widget | |
parent | 75548373a761d66df364494267c89697dda91fbe (diff) | |
download | iced-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.
Diffstat (limited to 'widget')
-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 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> |