Skip to content

Commit

Permalink
refine display impl
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Nov 9, 2023
1 parent 19e77e0 commit bd0127d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sqllogictest/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,9 @@ impl ExpectedError {
impl std::fmt::Display for ExpectedError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
ExpectedError::Empty => Ok(()),
ExpectedError::Inline(regex) => regex.fmt(f),
ExpectedError::Multiline(results) => write!(f, "{}", results.trim()),
ExpectedError::Empty => write!(f, "(any)"),
ExpectedError::Inline(regex) => write!(f, "(regex) {}", regex),
ExpectedError::Multiline(results) => write!(f, "(multiline) {}", results.trim()),
}
}
}
Expand Down

0 comments on commit bd0127d

Please sign in to comment.