Remove needless returns

This commit is contained in:
Manish Goregaokar 2015-09-04 09:11:04 +05:30
parent 2e02ea38fc
commit e94df1ed5c
14 changed files with 38 additions and 38 deletions

View file

@ -62,7 +62,7 @@ pub struct SendableWorkerScriptChan {
impl ScriptChan for SendableWorkerScriptChan {
fn send(&self, msg: CommonScriptMsg) -> Result<(), ()> {
return self.sender.send((self.worker.clone(), msg)).map_err(|_| ());
self.sender.send((self.worker.clone(), msg)).map_err(|_| ())
}
fn clone(&self) -> Box<ScriptChan + Send> {
@ -84,9 +84,9 @@ pub struct WorkerThreadWorkerChan {
impl ScriptChan for WorkerThreadWorkerChan {
fn send(&self, msg: CommonScriptMsg) -> Result<(), ()> {
return self.sender
self.sender
.send((self.worker.clone(), WorkerScriptMsg::Common(msg)))
.map_err(|_| ());
.map_err(|_| ())
}
fn clone(&self) -> Box<ScriptChan + Send> {