diff options
author | Bert Belder <bertbelder@gmail.com> | 2019-04-02 02:52:09 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2019-04-02 18:04:25 +0200 |
commit | b735155712b944004ac87ba5d3be7a9baccbf53e (patch) | |
tree | 8c18f642fd2bcf931d3c5c7429264bb778fbf0bd /cli/workers.rs | |
parent | efbe44eb33bb8d19a68bc1a0889c4f2780894184 (diff) |
Clippy fixes
Diffstat (limited to 'cli/workers.rs')
-rw-r--r-- | cli/workers.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cli/workers.rs b/cli/workers.rs index cb919e8ed..02126f1e2 100644 --- a/cli/workers.rs +++ b/cli/workers.rs @@ -146,7 +146,7 @@ pub fn spawn<B: WorkerBehavior + 'static>( let init_result = match init { WorkerInit::Script(script) => match worker.execute(&script) { - Ok(v) => Ok(v), + Ok(_) => Ok(()), Err(e) => Err(RustOrJsError::Js(e)), }, WorkerInit::Module(specifier) => { @@ -211,8 +211,7 @@ mod tests { resource_.close(); debug!("workers.rs after resource close"); if let Err(err) = r { - eprintln!("{}", JSErrorColor(&err).to_string()); - assert!(false) + panic!("{}", JSErrorColor(&err).to_string()); } Ok(()) }) @@ -260,8 +259,7 @@ mod tests { resource_.close(); debug!("workers.rs after resource close"); if let Err(err) = r { - eprintln!("{}", JSErrorColor(&err).to_string()); - assert!(false) + panic!("{}", JSErrorColor(&err).to_string()); } Ok(()) }) |