Skip to content

Commit

Permalink
Merge pull request #2623 from boondocklabs/markdown-lifetime
Browse files Browse the repository at this point in the history
Change lifetime of markdown IntoIterator Item, as it does not need to live as long as the returned Element
  • Loading branch information
hecrj authored Oct 2, 2024
2 parents 4a080e2 + 8d66b97 commit bc215f6
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 bc215f6

Please sign in to comment.