Skip to content

Commit a5b1f59

Browse files
committed
Clean up rustdoc representation of the &mut R Read impl
The new impl is rendered by rustdoc in a way that is easier to parse than before.
1 parent 7b86e66 commit a5b1f59

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/read.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,9 +695,12 @@ impl<'a> Read<'a> for StrRead<'a> {
695695

696696
//////////////////////////////////////////////////////////////////////////////
697697

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

700-
impl<'de, R: Read<'de>> Read<'de> for &mut R {
700+
impl<'a, 'de, R> Read<'de> for &'a mut R
701+
where
702+
R: Read<'de>,
703+
{
701704
fn next(&mut self) -> Result<Option<u8>> {
702705
R::next(self)
703706
}

0 commit comments

Comments
 (0)