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 @@ -515,6 +515,7 @@ impl<A: Allocator> Read for VecDeque<u8, A> {
515
515
Ok ( n)
516
516
}
517
517
518
+ #[ inline]
518
519
fn read_exact ( & mut self , buf : & mut [ u8 ] ) -> io:: Result < ( ) > {
519
520
let ( front, back) = self . as_slices ( ) ;
520
521
@@ -547,6 +548,7 @@ impl<A: Allocator> Read for VecDeque<u8, A> {
547
548
Ok ( ( ) )
548
549
}
549
550
551
+ #[ inline]
550
552
fn read_buf_exact ( & mut self , mut cursor : BorrowedCursor < ' _ > ) -> io:: Result < ( ) > {
551
553
let len = cursor. capacity ( ) ;
552
554
let ( front, back) = self . as_slices ( ) ;
@@ -646,6 +648,7 @@ impl<A: Allocator> Write for VecDeque<u8, A> {
646
648
647
649
#[ unstable( feature = "read_buf" , issue = "78485" ) ]
648
650
impl < ' a > io:: Write for core:: io:: BorrowedCursor < ' a > {
651
+ #[ inline]
649
652
fn write ( & mut self , buf : & [ u8 ] ) -> io:: Result < usize > {
650
653
let amt = cmp:: min ( buf. len ( ) , self . capacity ( ) ) ;
651
654
self . append ( & buf[ ..amt] ) ;
You can’t perform that action at this time.
0 commit comments