File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
crates/hyperion/src/storage Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -38,22 +38,3 @@ unsafe impl Buf for bytes::BytesMut {
38
38
self . split_to ( len)
39
39
}
40
40
}
41
-
42
- unsafe impl Buf for Vec < u8 > {
43
- type Output = ( ) ;
44
-
45
- fn get_contiguous ( & mut self , len : usize ) -> & mut [ u8 ] {
46
- let original_len = self . len ( ) ;
47
- self . resize ( std:: cmp:: max ( self . len ( ) + len, self . capacity ( ) ) , 0 ) ;
48
- unsafe { self . set_len ( original_len) ; }
49
- let cap = & mut self . spare_capacity_mut ( ) [ 0 ..len] ;
50
- let cap = unsafe { MaybeUninit :: slice_assume_init_mut ( cap) } ;
51
- debug_assert ! ( cap. len( ) == len) ;
52
- cap
53
- }
54
-
55
- unsafe fn advance ( & mut self , len : usize ) -> Self :: Output {
56
- debug_assert ! ( self . len( ) + len <= self . capacity( ) ) ;
57
- unsafe { self . set_len ( self . len ( ) + len) } ;
58
- }
59
- }
You can’t perform that action at this time.
0 commit comments