From efd7ef5dcfd2aaa1a2ed50f2c5ae6c6d990154ba Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Mon, 16 Aug 2021 13:33:56 +0300 Subject: [PATCH] Format code. --- tests/integration.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/integration.rs b/tests/integration.rs index aa40aff..27fa5fb 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -298,12 +298,18 @@ fn test_capturing_functions() { let four = 4; context - .set_function("function_four".into(), Function::new(move |_| Ok(Value::Int(four)))) + .set_function( + "function_four".into(), + Function::new(move |_| Ok(Value::Int(four))), + ) .unwrap(); assert_eq!(eval_with_context("mult_3 2", &context), Ok(Value::Int(6))); assert_eq!(eval_with_context("mult_3(3)", &context), Ok(Value::Int(9))); - assert_eq!(eval_with_context("mult_3(function_four())", &context), Ok(Value::Int(12))); + assert_eq!( + eval_with_context("mult_3(function_four())", &context), + Ok(Value::Int(12)) + ); } #[test]