summaryrefslogtreecommitdiffstats
path: root/native/src/user_interface.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-16 07:01:25 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-16 07:01:25 +0100
commit5de404ddd9484c6e1113697d749524ac79d8c763 (patch)
tree8d0137c09d38e1f2f7db4cfef16ae6beaeb2d3e7 /native/src/user_interface.rs
parenta508b007d8c00e16aaf44b1968b89cf0908c3a51 (diff)
downloadiced-5de404ddd9484c6e1113697d749524ac79d8c763.tar.gz
iced-5de404ddd9484c6e1113697d749524ac79d8c763.tar.bz2
iced-5de404ddd9484c6e1113697d749524ac79d8c763.zip
Take `IntoIterator` instead of `Iterator`
Diffstat (limited to 'native/src/user_interface.rs')
-rw-r--r--native/src/user_interface.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/user_interface.rs b/native/src/user_interface.rs
index 85b25bc7..53b36240 100644
--- a/native/src/user_interface.rs
+++ b/native/src/user_interface.rs
@@ -176,7 +176,7 @@ where
&mut self,
renderer: &Renderer,
clipboard: Option<&dyn Clipboard>,
- events: impl Iterator<Item = Event>,
+ events: impl IntoIterator<Item = Event>,
) -> Vec<Message> {
let mut messages = Vec::new();