Take IntoIterator instead of Iterator
This commit is contained in:
parent
a508b007d8
commit
5de404ddd9
3 changed files with 8 additions and 4 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue