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/lazy.rs | |
| parent | feaac19f1710ebcfecc783d51f52a9b0d8e998f5 (diff) | |
| download | rust-2afa4cc958d3d65957083f3ae0bded237cce9a87.tar.gz rust-2afa4cc958d3d65957083f3ae0bded237cce9a87.zip | |
Use DebugStruct::finish_non_exhaustive() in std.
Diffstat (limited to 'library/std/src/lazy.rs')
| -rw-r--r-- | library/std/src/lazy.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/lazy.rs b/library/std/src/lazy.rs index 974851a8bd6..ca86e569bc1 100644 --- a/library/std/src/lazy.rs +++ b/library/std/src/lazy.rs @@ -515,7 +515,7 @@ pub struct SyncLazy<T, F = fn() -> T> { #[unstable(feature = "once_cell", issue = "74465")] impl<T: fmt::Debug, F> fmt::Debug for SyncLazy<T, F> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Lazy").field("cell", &self.cell).field("init", &"..").finish() + f.debug_struct("Lazy").field("cell", &self.cell).finish_non_exhaustive() } } |
