summary refs log tree commit diff
path: root/library/std/src/sys
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/sys
parentfeaac19f1710ebcfecc783d51f52a9b0d8e998f5 (diff)
downloadrust-2afa4cc958d3d65957083f3ae0bded237cce9a87.tar.gz
rust-2afa4cc958d3d65957083f3ae0bded237cce9a87.zip
Use DebugStruct::finish_non_exhaustive() in std.
Diffstat (limited to 'library/std/src/sys')
-rw-r--r--library/std/src/sys/wasi/fs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/wasi/fs.rs b/library/std/src/sys/wasi/fs.rs
index 1ec3ff6a10f..ed0f03e4b71 100644
--- a/library/std/src/sys/wasi/fs.rs
+++ b/library/std/src/sys/wasi/fs.rs
@@ -130,7 +130,7 @@ impl FileType {
 
 impl fmt::Debug for ReadDir {
     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
-        f.debug_struct("ReadDir").finish()
+        f.debug_struct("ReadDir").finish_non_exhaustive()
     }
 }