From 27302107e6ff73a2a2016f42e7f86c3269ee3907 Mon Sep 17 00:00:00 2001 From: Diggory Hardy Date: Thu, 29 Sep 2022 17:54:04 +0100 Subject: [PATCH] Compatibility with older rustc --- src/rngs/thread.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rngs/thread.rs b/src/rngs/thread.rs index 9888e9c806..673c9a879d 100644 --- a/src/rngs/thread.rs +++ b/src/rngs/thread.rs @@ -73,7 +73,7 @@ pub struct ThreadRng { /// Debug implementation does not leak internal state impl fmt::Debug for ThreadRng { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - fmt.debug_struct("ThreadRng").finish_non_exhaustive() + write!(fmt, "ThreadRng {{ .. }}") } }