Skip to content

Commit b5a5a94

Browse files
committed
Drop bounds on <G as Generator>::Output for impl Debug for BlockRng<G>
1 parent 88cdb17 commit b5a5a94

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/block.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,14 @@ pub struct BlockRng<G: Generator> {
137137
}
138138

139139
// Custom Debug implementation that does not expose the contents of `results`.
140-
impl<W: Word, const N: usize, G> fmt::Debug for BlockRng<G>
140+
impl<G> fmt::Debug for BlockRng<G>
141141
where
142-
G: Generator<Output = [W; N]> + fmt::Debug,
142+
G: Generator + fmt::Debug,
143143
{
144144
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
145145
fmt.debug_struct("BlockRng")
146146
.field("core", &self.core)
147-
.field("index", &self.index())
148-
.finish()
147+
.finish_non_exhaustive()
149148
}
150149
}
151150

0 commit comments

Comments
 (0)