diff options
| author | Christiaan Dirkx <christiaan@dirkx.email> | 2021-04-05 13:31:11 +0200 |
|---|---|---|
| committer | Christiaan Dirkx <christiaan@dirkx.email> | 2021-04-21 14:38:24 +0200 |
| commit | 1fb3256fcb9f616b19245eedea6503bce35e5b81 (patch) | |
| tree | 72b0a23f374fa7d7cb5358d959e3a27654f15a7d /library/std/src/sync/mpsc | |
| parent | 62652865b6029b4776a7c03efa13a37b15c9b953 (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.rs | 2 |
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() } } |
