Merge pull request #2623 from boondocklabs/markdown-lifetime

Change lifetime of markdown IntoIterator Item, as it does not need to live as long as the returned Element
This commit is contained in:
Héctor 2024-10-02 18:08:11 +02:00 committed by GitHub
commit bc215f6077
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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>