Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use if-let in set_inline_event_listener.
  • Loading branch information
Ms2ger committed Feb 11, 2016
1 parent 0b27807 commit 1b50023
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/script/dom/eventtarget.rs
Expand Up @@ -221,10 +221,10 @@ impl EventTarget {
}
}
None => {
if listener.is_some() {
if let Some(listener) = listener {
entries.push(EventListenerEntry {
phase: ListenerPhase::Bubbling,
listener: EventListenerType::Inline(listener.unwrap()),
listener: EventListenerType::Inline(listener),
});
}
}
Expand Down

0 comments on commit 1b50023

Please sign in to comment.