mirror of
https://github.com/rust-lang/log.git
synced 2026-02-15 04:10:13 +00:00
Respect padding for LevelFilter Display
This mirrors a similar commit fe073054a0999d1bb238cb0293757741e95b3588 that changed output for Level, it seems sensible if the user wishes to output the logging filter level to afford the same formatting choices.
This commit is contained in:
parent
5213657b81
commit
f9eb14c8a1
@ -638,7 +638,7 @@ impl FromStr for LevelFilter {
|
||||
|
||||
impl fmt::Display for LevelFilter {
|
||||
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(fmt, "{}", LOG_LEVEL_NAMES[*self as usize])
|
||||
fmt.pad(LOG_LEVEL_NAMES[*self as usize])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user