#[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()
}
}
#[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()
}
}
#[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()
}
}
#[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()
}
}