From c34af7979a54ecec3162d8fcf019fc3fc286fe5e Mon Sep 17 00:00:00 2001 From: timfish Date: Mon, 30 Sep 2019 18:58:01 +0100 Subject: [PATCH] Format --- src/engine.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/engine.rs b/src/engine.rs index fe8d2a1a..f1e6b8a3 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -687,9 +687,7 @@ impl Engine { match x.downcast::() { Ok(out) => Ok(*out), - Err(a) => Err(EvalAltResult::ErrorMismatchOutputType( - (*a).type_name(), - )), + Err(a) => Err(EvalAltResult::ErrorMismatchOutputType((*a).type_name())), } } Err(_) => Err(EvalAltResult::ErrorFunctionArgMismatch), @@ -913,7 +911,7 @@ impl Engine { /// Make a new engine pub fn new() -> Engine { let mut engine = Engine { - fns: HashMap::new() + fns: HashMap::new(), }; Engine::register_default_lib(&mut engine);