File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -545,7 +545,7 @@ pub trait BitReader {
545545 /// assert_eq!(remainder.partial_byte(), 0b0001_0101);
546546 /// assert_eq!(remainder.data(), &[0b0101_0101, 0b1100_0011]);
547547 /// ```
548- fn remainder ( & self ) -> Remainder ;
548+ fn remainder ( & self ) -> Remainder < ' _ > ;
549549}
550550
551551const BYTE_WIDTH : usize = core:: mem:: size_of :: < u64 > ( ) ;
@@ -960,7 +960,7 @@ impl<const LE: bool> BitReader for BitterState<'_, LE> {
960960 self . bit_count % 8 == 0
961961 }
962962
963- fn remainder ( & self ) -> Remainder {
963+ fn remainder ( & self ) -> Remainder < ' _ > {
964964 // Calculate how many bits are not byte-aligned
965965 let unaligned_bits = self . bit_count % 8 ;
966966
@@ -1189,7 +1189,7 @@ impl BitReader for LittleEndianReader<'_> {
11891189 }
11901190
11911191 #[ inline]
1192- fn remainder ( & self ) -> Remainder {
1192+ fn remainder ( & self ) -> Remainder < ' _ > {
11931193 self . 0 . remainder ( )
11941194 }
11951195}
@@ -1340,7 +1340,7 @@ impl BitReader for BigEndianReader<'_> {
13401340 }
13411341
13421342 #[ inline]
1343- fn remainder ( & self ) -> Remainder {
1343+ fn remainder ( & self ) -> Remainder < ' _ > {
13441344 self . 0 . remainder ( )
13451345 }
13461346}
Original file line number Diff line number Diff line change @@ -576,7 +576,7 @@ fn test_into_inner_error_recovery() {
576576 impl std:: io:: Write for FailingWriter {
577577 fn write ( & mut self , buf : & [ u8 ] ) -> std:: io:: Result < usize > {
578578 if self . should_fail_flush && !buf. is_empty ( ) {
579- Err ( Error :: new ( ErrorKind :: Other , "write failed during flush" ) )
579+ Err ( Error :: other ( "write failed during flush" ) )
580580 } else {
581581 Ok ( buf. len ( ) )
582582 }
You can’t perform that action at this time.
0 commit comments