Change lifetime of markdown view IntoIterator Item, as it does not need to live as long as the returned Element.

This commit is contained in:
Matt Thompson 2024-10-01 19:30:10 -07:00
parent 75548373a7
commit 8d66b97888

View file

@ -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>