Skip to content

Commit

Permalink
Change lifetime of markdown view IntoIterator Item, as it does not ne…
Browse files Browse the repository at this point in the history
…ed to live as long as the returned Element.
  • Loading branch information
boondocklabs committed Oct 2, 2024
1 parent 7554837 commit 8d66b97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions widget/src/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 8d66b97

Please sign in to comment.