Skip to content

Commit

Permalink
check style
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-schott committed Dec 11, 2023
1 parent eb1b011 commit 3ef3cc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test-framework/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 } => {
Expand Down

0 comments on commit 3ef3cc3

Please sign in to comment.