Replace all fmt.pad
with debug_struct
This commit is contained in:
parent
62652865b6
commit
1fb3256fcb
21 changed files with 40 additions and 40 deletions
|
@ -312,7 +312,7 @@ impl FromInner<AnonPipe> for ChildStdin {
|
|||
#[stable(feature = "std_debug", since = "1.16.0")]
|
||||
impl fmt::Debug for ChildStdin {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.pad("ChildStdin { .. }")
|
||||
f.debug_struct("ChildStdin").finish_non_exhaustive()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -373,7 +373,7 @@ impl FromInner<AnonPipe> for ChildStdout {
|
|||
#[stable(feature = "std_debug", since = "1.16.0")]
|
||||
impl fmt::Debug for ChildStdout {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.pad("ChildStdout { .. }")
|
||||
f.debug_struct("ChildStdout").finish_non_exhaustive()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -434,7 +434,7 @@ impl FromInner<AnonPipe> for ChildStderr {
|
|||
#[stable(feature = "std_debug", since = "1.16.0")]
|
||||
impl fmt::Debug for ChildStderr {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.pad("ChildStderr { .. }")
|
||||
f.debug_struct("ChildStderr").finish_non_exhaustive()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1257,7 +1257,7 @@ impl FromInner<imp::Stdio> for Stdio {
|
|||
#[stable(feature = "std_debug", since = "1.16.0")]
|
||||
impl fmt::Debug for Stdio {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.pad("Stdio { .. }")
|
||||
f.debug_struct("Stdio").finish_non_exhaustive()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue