@@ -89,7 +89,7 @@ pub struct CodedInputStream<'a> {
89
89
buffer : MaybeOwnedSlice < ' a , u8 > ,
90
90
buffer_size : u32 ,
91
91
buffer_pos : u32 ,
92
- reader : Option < & ' a mut Reader + ' a > ,
92
+ reader : Option < & ' a mut ( Reader + ' a ) > ,
93
93
total_bytes_retired : u32 ,
94
94
current_limit : u32 ,
95
95
buffer_size_after_limit : u32 ,
@@ -625,7 +625,7 @@ pub trait WithCodedOutputStream {
625
625
-> ProtobufResult < T > ;
626
626
}
627
627
628
- impl <' a > WithCodedOutputStream for & ' a mut Writer + ' a {
628
+ impl <' a > WithCodedOutputStream for & ' a mut ( Writer + ' a ) {
629
629
fn with_coded_output_stream< T > ( self , cb: |& mut CodedOutputStream | -> ProtobufResult < T > )
630
630
-> ProtobufResult < T >
631
631
{
@@ -661,7 +661,7 @@ pub trait WithCodedInputStream {
661
661
fn with_coded_input_stream< T > ( self , cb: |& mut CodedInputStream | -> T ) -> T ;
662
662
}
663
663
664
- impl <' a > WithCodedInputStream for & ' a mut Reader + ' a {
664
+ impl <' a > WithCodedInputStream for & ' a mut ( Reader + ' a ) {
665
665
fn with_coded_input_stream < T > ( self , cb: |& mut CodedInputStream | -> T ) -> T {
666
666
let mut is = CodedInputStream :: new( self ) ;
667
667
let r = cb( & mut is) ;
@@ -687,7 +687,7 @@ pub struct CodedOutputStream<'a> {
687
687
buffer: Vec < u8 > ,
688
688
// within buffer
689
689
position: u32 ,
690
- writer : Option < & ' a mut Writer + ' a > ,
690
+ writer : Option < & ' a mut ( Writer + ' a ) > ,
691
691
}
692
692
693
693
impl <' a > CodedOutputStream < ' a > {
0 commit comments