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:
parent
75548373a7
commit
8d66b97888
1 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue