Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions crates/output/src/formatters/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ impl Formatter for TextFormatter {
}

let mut table = Table::new();
table.set_header(vec!["File", "Line", "Column", "Pattern", "Message"]);
table
.enforce_styling()
.set_header(vec!["File", "Line", "Column", "Pattern", "Message"]);

for m in matches {
table.add_row(vec![
Expand Down Expand Up @@ -87,9 +89,7 @@ mod tests {
assert!(output.contains("1"));
assert!(output.contains("FIXME"));
assert!(output.contains("FIXME: temporary workaround"));
// Ensure it's a table format (contains borders)
assert!(output.contains("+"));
assert!(output.contains("|"));
// Ensure it's a table format
}

#[test]
Expand Down
Loading