mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Replace uses of for foo in bar.iter()
,
and `for foo in bar.iter_mut(), and for foo in bar.into_iter() (continuation of #7197)
This commit is contained in:
parent
f4b526cfb4
commit
067a22a868
32 changed files with 76 additions and 78 deletions
|
@ -70,8 +70,8 @@ pub fn dispatch_event<'a, 'b>(target: &'a EventTarget,
|
|||
event.set_current_target(target.clone());
|
||||
|
||||
let opt_listeners = target.get_listeners(&type_);
|
||||
for listeners in opt_listeners.iter() {
|
||||
for listener in listeners.iter() {
|
||||
for listeners in opt_listeners {
|
||||
for listener in listeners {
|
||||
// Explicitly drop any exception on the floor.
|
||||
let _ = listener.HandleEvent_(target, event, Report);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue