Skip to content

Commit

Permalink
Clean up rustdoc representation of the &mut R Read impl
Browse files Browse the repository at this point in the history
The new impl is rendered by rustdoc in a way that is easier to parse
than before.
  • Loading branch information
dtolnay committed Jul 26, 2020
1 parent 7b86e66 commit a5b1f59
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -695,9 +695,12 @@ impl<'a> Read<'a> for StrRead<'a> {

//////////////////////////////////////////////////////////////////////////////

impl<'de, R: Read<'de>> private::Sealed for &mut R {}
impl<'a, 'de, R> private::Sealed for &'a mut R where R: Read<'de> {}

impl<'de, R: Read<'de>> Read<'de> for &mut R {
impl<'a, 'de, R> Read<'de> for &'a mut R
where
R: Read<'de>,
{
fn next(&mut self) -> Result<Option<u8>> {
R::next(self)
}
Expand Down

0 comments on commit a5b1f59

Please sign in to comment.