From 1090c3e55e905a9dcf13e5042344408e3caa468d Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 11 Dec 2023 12:48:46 -0800 Subject: [PATCH] style --- tests/test-framework/src/error.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test-framework/src/error.rs b/tests/test-framework/src/error.rs index 4e2eba0bdc..aa1327f0bb 100644 --- a/tests/test-framework/src/error.rs +++ b/tests/test-framework/src/error.rs @@ -39,8 +39,7 @@ pub enum TestError { impl fmt::Display for TestError { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { let format_test = - |test: &str| -> String { if test.len() > 50 { String::new() } else { format!("\n\n{test}\n\n") } - }; + |test: &str| -> String { if test.len() > 50 { String::new() } else { format!("\n\n{test}\n\n") } }; match self { TestError::Panicked { test, index, error } => { write!(f, "test #{}: {}encountered a rust panic:\n{}", index + 1, format_test(test), error)