Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jcnelson committed Jan 15, 2021
1 parent d0de4f3 commit f6c4bb1
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/util/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,13 @@ fn pretty_print_msg_header(
rd.start_level()?;

match record.level() {
Level::Critical | Level::Error => {
write!(
rd,
"{}{}{}",
color_if_tty("\x1b[0;91m", isatty),
record.level().as_short_str(),
color_if_tty("\x1b[0m", isatty)
)
}
Level::Critical | Level::Error => write!(
rd,
"{}{}{}",
color_if_tty("\x1b[0;91m", isatty),
record.level().as_short_str(),
color_if_tty("\x1b[0m", isatty)
),
Level::Warning => write!(
rd,
"{}{}{}",
Expand Down

0 comments on commit f6c4bb1

Please sign in to comment.