about summary refs log tree commit diff
path: root/library/std/src/sync/mpsc
diff options
context:
space:
mode:
authorChristiaan Dirkx <christiaan@dirkx.email>2021-04-05 13:31:11 +0200
committerChristiaan Dirkx <christiaan@dirkx.email>2021-04-21 14:38:24 +0200
commit1fb3256fcb9f616b19245eedea6503bce35e5b81 (patch)
tree72b0a23f374fa7d7cb5358d959e3a27654f15a7d /library/std/src/sync/mpsc
parent62652865b6029b4776a7c03efa13a37b15c9b953 (diff)
Replace all `fmt.pad` with `debug_struct`
Diffstat (limited to 'library/std/src/sync/mpsc')
-rw-r--r--library/std/src/sync/mpsc/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sync/mpsc/mod.rs b/library/std/src/sync/mpsc/mod.rs
index c8f0a6b99fe..ea1d598d264 100644
--- a/library/std/src/sync/mpsc/mod.rs
+++ b/library/std/src/sync/mpsc/mod.rs
@@ -1477,7 +1477,7 @@ impl<T> fmt::Debug for Receiver<T> {
 #[stable(feature = "rust1", since = "1.0.0")]
 impl<T> fmt::Debug for SendError<T> {
     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
-        "SendError(..)".fmt(f)
+        f.debug_struct("SendError").finish_non_exhaustive()
     }
 }