Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,6 @@ pub trait TryRng {
fn try_fill_bytes(&mut self, dst: &mut [u8]) -> Result<(), Self::Error>;
}

// Note that, unfortunately, this blanket impl prevents us from implementing
// `TryRng` for types which can be dereferenced to `TryRng`, i.e. `TryRng`
// will not be automatically implemented for `&mut R`, `Box<R>`, etc.
impl<R: DerefMut> TryRng for R
where
R::Target: TryRng,
Expand Down