From b735155712b944004ac87ba5d3be7a9baccbf53e Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Tue, 2 Apr 2019 02:52:09 +0200 Subject: Clippy fixes --- cli/workers.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'cli/workers.rs') 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( 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(()) }) -- cgit v1.2.3