diff options
author | 2020-07-08 06:14:57 +0200 | |
---|---|---|
committer | 2020-07-08 11:29:20 +0200 | |
commit | 7a105ade27c7f33397e3050280e9faef928bdc1b (patch) | |
tree | 24e6a2b895457dafee0a284cde1419256f3d1e36 /native/src/widget/combo_box.rs | |
parent | 9fa0b4da5d5356cb8bd4e79911a939fee0104790 (diff) | |
download | iced-7a105ade27c7f33397e3050280e9faef928bdc1b.tar.gz iced-7a105ade27c7f33397e3050280e9faef928bdc1b.tar.bz2 iced-7a105ade27c7f33397e3050280e9faef928bdc1b.zip |
Use `Borrow` to avoid clone in `ComboBox::overlay`
Diffstat (limited to 'native/src/widget/combo_box.rs')
-rw-r--r-- | native/src/widget/combo_box.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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, |