@@ -584,26 +584,26 @@ impl fmt::Debug for Stdout {
584
584
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
585
585
impl Write for Stdout {
586
586
fn write ( & mut self , buf : & [ u8 ] ) -> io:: Result < usize > {
587
- self . lock ( ) . write ( buf)
587
+ ( & * self ) . write ( buf)
588
588
}
589
589
fn write_vectored ( & mut self , bufs : & [ IoSlice < ' _ > ] ) -> io:: Result < usize > {
590
- self . lock ( ) . write_vectored ( bufs)
590
+ ( & * self ) . write_vectored ( bufs)
591
591
}
592
592
#[ inline]
593
593
fn is_write_vectored ( & self ) -> bool {
594
- self . lock ( ) . is_write_vectored ( )
594
+ io :: Write :: is_write_vectored ( & & * self )
595
595
}
596
596
fn flush ( & mut self ) -> io:: Result < ( ) > {
597
- self . lock ( ) . flush ( )
597
+ ( & * self ) . flush ( )
598
598
}
599
599
fn write_all ( & mut self , buf : & [ u8 ] ) -> io:: Result < ( ) > {
600
- self . lock ( ) . write_all ( buf)
600
+ ( & * self ) . write_all ( buf)
601
601
}
602
602
fn write_all_vectored ( & mut self , bufs : & mut [ IoSlice < ' _ > ] ) -> io:: Result < ( ) > {
603
- self . lock ( ) . write_all_vectored ( bufs)
603
+ ( & * self ) . write_all_vectored ( bufs)
604
604
}
605
605
fn write_fmt ( & mut self , args : fmt:: Arguments < ' _ > ) -> io:: Result < ( ) > {
606
- self . lock ( ) . write_fmt ( args)
606
+ ( & * self ) . write_fmt ( args)
607
607
}
608
608
}
609
609
@@ -787,26 +787,26 @@ impl fmt::Debug for Stderr {
787
787
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
788
788
impl Write for Stderr {
789
789
fn write ( & mut self , buf : & [ u8 ] ) -> io:: Result < usize > {
790
- self . lock ( ) . write ( buf)
790
+ ( & * self ) . write ( buf)
791
791
}
792
792
fn write_vectored ( & mut self , bufs : & [ IoSlice < ' _ > ] ) -> io:: Result < usize > {
793
- self . lock ( ) . write_vectored ( bufs)
793
+ ( & * self ) . write_vectored ( bufs)
794
794
}
795
795
#[ inline]
796
796
fn is_write_vectored ( & self ) -> bool {
797
- self . lock ( ) . is_write_vectored ( )
797
+ io :: Write :: is_write_vectored ( & & * self )
798
798
}
799
799
fn flush ( & mut self ) -> io:: Result < ( ) > {
800
- self . lock ( ) . flush ( )
800
+ ( & * self ) . flush ( )
801
801
}
802
802
fn write_all ( & mut self , buf : & [ u8 ] ) -> io:: Result < ( ) > {
803
- self . lock ( ) . write_all ( buf)
803
+ ( & * self ) . write_all ( buf)
804
804
}
805
805
fn write_all_vectored ( & mut self , bufs : & mut [ IoSlice < ' _ > ] ) -> io:: Result < ( ) > {
806
- self . lock ( ) . write_all_vectored ( bufs)
806
+ ( & * self ) . write_all_vectored ( bufs)
807
807
}
808
808
fn write_fmt ( & mut self , args : fmt:: Arguments < ' _ > ) -> io:: Result < ( ) > {
809
- self . lock ( ) . write_fmt ( args)
809
+ ( & * self ) . write_fmt ( args)
810
810
}
811
811
}
812
812
0 commit comments