Skip to content

Commit f6c4bb1

Browse files
committed
cargo fmt
1 parent d0de4f3 commit f6c4bb1

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/util/log.rs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,13 @@ fn pretty_print_msg_header(
8787
rd.start_level()?;
8888

8989
match record.level() {
90-
Level::Critical | Level::Error => {
91-
write!(
92-
rd,
93-
"{}{}{}",
94-
color_if_tty("\x1b[0;91m", isatty),
95-
record.level().as_short_str(),
96-
color_if_tty("\x1b[0m", isatty)
97-
)
98-
}
90+
Level::Critical | Level::Error => write!(
91+
rd,
92+
"{}{}{}",
93+
color_if_tty("\x1b[0;91m", isatty),
94+
record.level().as_short_str(),
95+
color_if_tty("\x1b[0m", isatty)
96+
),
9997
Level::Warning => write!(
10098
rd,
10199
"{}{}{}",

0 commit comments

Comments
 (0)