Update context_drawer.rs

This commit is contained in:
wiiznokes 2024-11-11 22:05:23 +01:00
parent 2fbc31ed0d
commit e043b9d9b9

View file

@ -45,7 +45,7 @@ impl<'a, Message: Clone + 'static> ContextDrawer<'a, Message> {
mut self,
header_actions: impl IntoIterator<Item = Element<'a, Message>>,
) -> Self {
self.header_actions = header_actions.into_iter().map(|a| a.into()).collect();
self.header_actions = header_actions.into_iter().collect();
self
}
/// Non-scrolling elements placed below the context drawer title row