Skip to content

Commit 52a61d9

Browse files
committed
Remove redundant AsRef/AsMut bounds
1 parent 096267f commit 52a61d9

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

rand_core/src/block.rs

+2-8
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,7 @@ impl<R: BlockRngCore> BlockRng<R> {
178178
}
179179
}
180180

181-
impl<R: BlockRngCore<Item = u32>> RngCore for BlockRng<R>
182-
where
183-
<R as BlockRngCore>::Results: AsRef<[u32]> + AsMut<[u32]>,
184-
{
181+
impl<R: BlockRngCore<Item = u32>> RngCore for BlockRng<R> {
185182
#[inline]
186183
fn next_u32(&mut self) -> u32 {
187184
if self.index >= self.results.as_ref().len() {
@@ -346,10 +343,7 @@ impl<R: BlockRngCore> BlockRng64<R> {
346343
}
347344
}
348345

349-
impl<R: BlockRngCore<Item = u64>> RngCore for BlockRng64<R>
350-
where
351-
<R as BlockRngCore>::Results: AsRef<[u64]> + AsMut<[u64]>,
352-
{
346+
impl<R: BlockRngCore<Item = u64>> RngCore for BlockRng64<R> {
353347
#[inline]
354348
fn next_u32(&mut self) -> u32 {
355349
let mut index = self.index - self.half_used as usize;

src/rngs/adapter/reseeding.rs

-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ where
113113
impl<R, Rsdr: RngCore> RngCore for ReseedingRng<R, Rsdr>
114114
where
115115
R: BlockRngCore<Item = u32> + SeedableRng,
116-
<R as BlockRngCore>::Results: AsRef<[u32]> + AsMut<[u32]>,
117116
{
118117
#[inline(always)]
119118
fn next_u32(&mut self) -> u32 {

0 commit comments

Comments
 (0)