mirror of
https://github.com/openharmony/third_party_rust_log.git
synced 2026-07-21 07:05:23 -04:00
Merge pull request #333 from johndrinkwater/master
Respect padding for LevelFilter Display
This commit is contained in:
+1
-1
@@ -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])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user