File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,7 @@ impl ByteSlice for [u8] {
3939 fn parse_digits ( & self , mut func : impl FnMut ( u8 ) ) -> & Self {
4040 let mut s = self ;
4141
42- // FIXME: Can't use s.split_first() here yet,
43- // see https://github.com/rust-lang/rust/issues/109328
44- while let [ c, s_next @ ..] = s {
42+ while let Some ( ( c, s_next) ) = s. split_first ( ) {
4543 let c = c. wrapping_sub ( b'0' ) ;
4644 if c < 10 {
4745 func ( c) ;
Original file line number Diff line number Diff line change @@ -51,9 +51,7 @@ fn try_parse_19digits(s_ref: &mut &[u8], x: &mut u64) {
5151 let mut s = * s_ref;
5252
5353 while * x < MIN_19DIGIT_INT {
54- // FIXME: Can't use s.split_first() here yet,
55- // see https://github.com/rust-lang/rust/issues/109328
56- if let [ c, s_next @ ..] = s {
54+ if let Some ( ( c, s_next) ) = s. split_first ( ) {
5755 let digit = c. wrapping_sub ( b'0' ) ;
5856
5957 if digit < 10 {
You can’t perform that action at this time.
0 commit comments