mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
Remove needless returns
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user