Use Borrow to avoid clone in ComboBox::overlay

This commit is contained in:
Héctor Ramón Jiménez 2020-07-08 06:14:57 +02:00
parent 9fa0b4da5d
commit 7a105ade27
2 changed files with 15 additions and 22 deletions

View file

@ -223,7 +223,7 @@ where
layout.position(),
Box::new(Menu::new(
self.internal.menu,
self.options.clone(),
&self.options,
&self.internal.on_selected,
bounds.width.round() as u16,
bounds.height,