I don't know if its normal, but just in case...
OK
{indicateurs
.iter()
.map(|g| view! { <span>{g.item_title.clone()}</span> })
.collect::<Vec<_>>()}
WRONG
{indicateurs
.iter()
.map(|g| view! { <Badge variant="outline">{g.item_title.clone()}</Badge> })
.collect::<Vec<_>>()}
{indicateurs
| ^^^^^^^^^^^ borrowed value does not live long enough
64 | .iter()
65 | .map(|g| view! { {g.item_title.clone()} })
| ----------------------------------------------------------------- argument requires that indicateurs is borrowed for 'static
I don't know if its normal, but just in case...
OK
WRONG
{indicateurs
| ^^^^^^^^^^^ borrowed value does not live long enough
64 | .iter()
65 | .map(|g| view! { {g.item_title.clone()} })
| ----------------------------------------------------------------- argument requires that
indicateursis borrowed for'static