about summary refs log tree commit diff
path: root/library/std/src/sync
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2021-03-27 13:29:23 +0100
committerMara Bos <m-ou.se@m-ou.se>2021-03-27 13:29:23 +0100
commit2afa4cc958d3d65957083f3ae0bded237cce9a87 (patch)
tree4b8de9e1a21719743462e365ad244d661d7b4043 /library/std/src/sync
parentfeaac19f1710ebcfecc783d51f52a9b0d8e998f5 (diff)
downloadrust-2afa4cc958d3d65957083f3ae0bded237cce9a87.tar.gz
rust-2afa4cc958d3d65957083f3ae0bded237cce9a87.zip
Use DebugStruct::finish_non_exhaustive() in std.
Diffstat (limited to 'library/std/src/sync')
-rw-r--r--library/std/src/sync/mpsc/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/std/src/sync/mpsc/mod.rs b/library/std/src/sync/mpsc/mod.rs
index b12e7eeb138..c8f0a6b99fe 100644
--- a/library/std/src/sync/mpsc/mod.rs
+++ b/library/std/src/sync/mpsc/mod.rs
@@ -864,7 +864,7 @@ impl<T> Drop for Sender<T> {
 #[stable(feature = "mpsc_debug", since = "1.8.0")]
 impl<T> fmt::Debug for Sender<T> {
     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
-        f.debug_struct("Sender").finish()
+        f.debug_struct("Sender").finish_non_exhaustive()
     }
 }
 
@@ -991,7 +991,7 @@ impl<T> Drop for SyncSender<T> {
 #[stable(feature = "mpsc_debug", since = "1.8.0")]
 impl<T> fmt::Debug for SyncSender<T> {
     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
-        f.debug_struct("SyncSender").finish()
+        f.debug_struct("SyncSender").finish_non_exhaustive()
     }
 }
 
@@ -1470,7 +1470,7 @@ impl<T> Drop for Receiver<T> {
 #[stable(feature = "mpsc_debug", since = "1.8.0")]
 impl<T> fmt::Debug for Receiver<T> {
     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
-        f.debug_struct("Receiver").finish()
+        f.debug_struct("Receiver").finish_non_exhaustive()
     }
 }