This commit is contained in:
timfish 2019-09-30 18:58:01 +01:00
parent 53bb0a38f0
commit c34af7979a

View File

@ -687,9 +687,7 @@ impl Engine {
match x.downcast::<T>() {
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);