diff options
author | Johannes Linke <johannes.linke@posteo.de> | 2016-01-02 16:51:01 +0100 |
---|---|---|
committer | Johannes Linke <johannes.linke@posteo.de> | 2016-01-02 23:27:15 +0100 |
commit | 6b215f38eefc98853244c2ec6f4187ae6f000417 (patch) | |
tree | cf4dbc65e6b6fa641359b713f91b596bf9f9a666 /components/script/script_task.rs | |
parent | b1ca3d1cdff412c5ae12113c3681f789becebabc (diff) | |
download | servo-6b215f38eefc98853244c2ec6f4187ae6f000417.tar.gz servo-6b215f38eefc98853244c2ec6f4187ae6f000417.zip |
Fix a bunch of clippy lints
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r-- | components/script/script_task.rs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs index 68ef6a2a474..6d9b2bee301 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -1948,13 +1948,11 @@ impl ScriptTask { // Notify Constellation about anchors that are no longer mouse over targets. for target in &*prev_mouse_over_targets { - if !mouse_over_targets.contains(target) { - if target.is::<HTMLAnchorElement>() { - let event = ConstellationMsg::NodeStatus(None); - let ConstellationChan(ref chan) = self.constellation_chan; - chan.send(event).unwrap(); - break; - } + if !mouse_over_targets.contains(target) && target.is::<HTMLAnchorElement>() { + let event = ConstellationMsg::NodeStatus(None); + let ConstellationChan(ref chan) = self.constellation_chan; + chan.send(event).unwrap(); + break; } } @@ -2108,7 +2106,7 @@ impl ScriptTask { let context = Arc::new(Mutex::new(ParserContext::new(id, subpage, script_chan.clone(), load_data.url.clone()))); let (action_sender, action_receiver) = ipc::channel().unwrap(); - let listener = box NetworkListener { + let listener = NetworkListener { context: context, script_chan: script_chan.clone(), }; |