mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Remove needless returns
This commit is contained in:
parent
2e02ea38fc
commit
e94df1ed5c
14 changed files with 38 additions and 38 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue