File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -521,6 +521,7 @@ impl<A: Allocator> Read for VecDeque<u8, A> {
521
521
Ok ( n)
522
522
}
523
523
524
+ #[ inline]
524
525
fn read_exact ( & mut self , buf : & mut [ u8 ] ) -> io:: Result < ( ) > {
525
526
let ( front, back) = self . as_slices ( ) ;
526
527
@@ -553,6 +554,7 @@ impl<A: Allocator> Read for VecDeque<u8, A> {
553
554
Ok ( ( ) )
554
555
}
555
556
557
+ #[ inline]
556
558
fn read_buf_exact ( & mut self , mut cursor : BorrowedCursor < ' _ > ) -> io:: Result < ( ) > {
557
559
let len = cursor. capacity ( ) ;
558
560
let ( front, back) = self . as_slices ( ) ;
@@ -658,6 +660,7 @@ impl<A: Allocator> Write for VecDeque<u8, A> {
658
660
659
661
#[ unstable( feature = "read_buf" , issue = "78485" ) ]
660
662
impl < ' a > io:: Write for core:: io:: BorrowedCursor < ' a > {
663
+ #[ inline]
661
664
fn write ( & mut self , buf : & [ u8 ] ) -> io:: Result < usize > {
662
665
let amt = cmp:: min ( buf. len ( ) , self . capacity ( ) ) ;
663
666
self . append ( & buf[ ..amt] ) ;
You can’t perform that action at this time.
0 commit comments