Skip to content

Commit

Permalink
Compatibility with older rustc
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Sep 29, 2022
1 parent 1a54755 commit 5878d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rngs/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {{ .. }}")
}
}

Expand Down

0 comments on commit 5878d03

Please sign in to comment.