File tree 2 files changed +0
-30
lines changed
2 files changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,6 @@ macro_rules! bench_group {
159
159
mod get_u8 {
160
160
use super :: * ;
161
161
bench_group ! ( get_u8) ;
162
- bench ! ( option, option) ;
163
162
}
164
163
mod get_u16 {
165
164
use super :: * ;
Original file line number Diff line number Diff line change @@ -1032,35 +1032,6 @@ impl Buf for &[u8] {
1032
1032
}
1033
1033
}
1034
1034
1035
- impl Buf for Option < [ u8 ; 1 ] > {
1036
- fn remaining ( & self ) -> usize {
1037
- if self . is_some ( ) {
1038
- 1
1039
- } else {
1040
- 0
1041
- }
1042
- }
1043
-
1044
- fn bytes ( & self ) -> & [ u8 ] {
1045
- self . as_ref ( )
1046
- . map ( AsRef :: as_ref)
1047
- . unwrap_or ( Default :: default ( ) )
1048
- }
1049
-
1050
- fn advance ( & mut self , cnt : usize ) {
1051
- if cnt == 0 {
1052
- return ;
1053
- }
1054
-
1055
- if self . is_none ( ) {
1056
- panic ! ( "overflow" ) ;
1057
- } else {
1058
- assert_eq ! ( 1 , cnt) ;
1059
- * self = None ;
1060
- }
1061
- }
1062
- }
1063
-
1064
1035
#[ cfg( feature = "std" ) ]
1065
1036
impl < T : AsRef < [ u8 ] > > Buf for std:: io:: Cursor < T > {
1066
1037
fn remaining ( & self ) -> usize {
You can’t perform that action at this time.
0 commit comments