diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-03-27 13:29:23 +0100 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2021-03-27 13:29:23 +0100 |
| commit | 2afa4cc958d3d65957083f3ae0bded237cce9a87 (patch) | |
| tree | 4b8de9e1a21719743462e365ad244d661d7b4043 /library/std/src/thread | |
| parent | feaac19f1710ebcfecc783d51f52a9b0d8e998f5 (diff) | |
| download | rust-2afa4cc958d3d65957083f3ae0bded237cce9a87.tar.gz rust-2afa4cc958d3d65957083f3ae0bded237cce9a87.zip | |
Use DebugStruct::finish_non_exhaustive() in std.
Diffstat (limited to 'library/std/src/thread')
| -rw-r--r-- | library/std/src/thread/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs index 0ef848ff0c4..ffdf4be1584 100644 --- a/library/std/src/thread/mod.rs +++ b/library/std/src/thread/mod.rs @@ -1176,7 +1176,10 @@ impl Thread { #[stable(feature = "rust1", since = "1.0.0")] impl fmt::Debug for Thread { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Thread").field("id", &self.id()).field("name", &self.name()).finish() + f.debug_struct("Thread") + .field("id", &self.id()) + .field("name", &self.name()) + .finish_non_exhaustive() } } |
