Replace all fmt.pad with debug_struct

This commit is contained in:
Christiaan Dirkx
2021-04-05 13:31:11 +02:00
parent 62652865b6
commit 1fb3256fcb
21 changed files with 40 additions and 40 deletions

View File

@@ -146,7 +146,7 @@ impl<'a> fmt::Display for EscapeAscii<'a> {
#[unstable(feature = "inherent_ascii_escape", issue = "77174")]
impl<'a> fmt::Debug for EscapeAscii<'a> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.pad("EscapeAscii { .. }")
f.debug_struct("EscapeAscii").finish_non_exhaustive()
}
}