mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Update Servo::handle_events to take IntoIterator (#30762)
This commit is contained in:
parent
7a5854693e
commit
604d785bad
1 changed files with 1 additions and 1 deletions
|
@ -715,7 +715,7 @@ where
|
||||||
::std::mem::replace(&mut self.messages_for_embedder, Vec::new())
|
::std::mem::replace(&mut self.messages_for_embedder, Vec::new())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn handle_events(&mut self, events: Vec<EmbedderEvent>) -> bool {
|
pub fn handle_events(&mut self, events: impl IntoIterator<Item = EmbedderEvent>) -> bool {
|
||||||
if self.compositor.receive_messages() {
|
if self.compositor.receive_messages() {
|
||||||
self.receive_messages();
|
self.receive_messages();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue