aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-09-04 09:11:04 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-09-04 09:13:48 +0530
commite94df1ed5c3ccf76cd616e1146e2944f852477ac (patch)
treed112409360efa1979fca5c2902aecdfa18e684c0 /components/script/script_task.rs
parent2e02ea38fca44aaa5fe23e524bf27f667b300ada (diff)
downloadservo-e94df1ed5c3ccf76cd616e1146e2944f852477ac.tar.gz
servo-e94df1ed5c3ccf76cd616e1146e2944f852477ac.zip
Remove needless returns
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r--components/script/script_task.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs
index 6a77b92b213..7eb15d1e938 100644
--- a/components/script/script_task.rs
+++ b/components/script/script_task.rs
@@ -318,7 +318,7 @@ pub struct MainThreadScriptChan(pub Sender<MainThreadScriptMsg>);
impl ScriptChan for MainThreadScriptChan {
fn send(&self, msg: CommonScriptMsg) -> Result<(), ()> {
let MainThreadScriptChan(ref chan) = *self;
- return chan.send(MainThreadScriptMsg::Common(msg)).map_err(|_| ());
+ chan.send(MainThreadScriptMsg::Common(msg)).map_err(|_| ())
}
fn clone(&self) -> Box<ScriptChan + Send> {