From a5b1f59df8d0554d05e3b0b5c6d9baf3a9f0a517 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 26 Jul 2020 11:16:38 -0700 Subject: [PATCH] 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. --- src/read.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/read.rs b/src/read.rs index 1daf3a184..522c0e011 100644 --- a/src/read.rs +++ b/src/read.rs @@ -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> { R::next(self) }