diff --git a/tests/test-framework/src/error.rs b/tests/test-framework/src/error.rs index 743ab229b6..4e2eba0bdc 100644 --- a/tests/test-framework/src/error.rs +++ b/tests/test-framework/src/error.rs @@ -38,8 +38,8 @@ 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") } + let format_test = + |test: &str| -> String { if test.len() > 50 { String::new() } else { format!("\n\n{test}\n\n") } }; match self { TestError::Panicked { test, index, error } => {