From 7a105ade27c7f33397e3050280e9faef928bdc1b Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 8 Jul 2020 06:14:57 +0200 Subject: Use `Borrow` to avoid clone in `ComboBox::overlay` --- native/src/widget/combo_box.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'native/src/widget') diff --git a/native/src/widget/combo_box.rs b/native/src/widget/combo_box.rs index 4a509354..f2dc86e8 100644 --- a/native/src/widget/combo_box.rs +++ b/native/src/widget/combo_box.rs @@ -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, -- cgit