File tree 5 files changed +8
-11
lines changed
5 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 22
22
23
23
include :
24
24
# Test MSRV
25
- - rust : 1.62.0 # keep in sync with manifest rust-version
25
+ - rust : 1.80 # keep in sync with manifest rust-version
26
26
TARGET : x86_64-unknown-linux-gnu
27
27
28
28
# Test nightly but don't fail
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ categories = ["no-std"]
4
4
description = " serde-json for no_std programs"
5
5
documentation = " https://docs.rs/serde-json-core"
6
6
edition = " 2018"
7
- rust-version = " 1.62.0 " # keep in sync with ci, src/lib.rs, and README
7
+ rust-version = " 1.80 " # keep in sync with ci, src/lib.rs, and README
8
8
keywords = [" serde" , " json" ]
9
9
license = " MIT OR Apache-2.0"
10
10
name = " serde-json-core"
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ This project is developed and maintained by the [rust-embedded-community].
12
12
13
13
## Minimum Supported Rust Version (MSRV)
14
14
15
- This crate is guaranteed to compile on stable Rust 1.62.0 and up. It * might*
15
+ This crate is guaranteed to compile on stable Rust 1.80 and up. It * might*
16
16
compile with older versions but that may change in any new patch release.
17
17
18
18
## License
Original file line number Diff line number Diff line change 52
52
//!
53
53
//! # Minimum Supported Rust Version (MSRV)
54
54
//!
55
- //! This crate is guaranteed to compile on stable Rust 1.62.0 and up. It *might* compile with older
55
+ //! This crate is guaranteed to compile on stable Rust 1.80 and up. It *might* compile with older
56
56
//! versions but that may change in any new patch release.
57
57
58
58
// #![deny(missing_docs)]
Original file line number Diff line number Diff line change @@ -25,13 +25,10 @@ fn unescape_next_fragment(
25
25
Some ( 'r' ) => '\r' ,
26
26
Some ( 't' ) => '\t' ,
27
27
Some ( 'u' ) => {
28
- fn split_first_slice ( s : & str , len : usize ) -> Option < ( & str , & str ) > {
29
- Some ( ( s. get ( ..len) ?, s. get ( len..) ?) )
30
- }
31
-
32
- let ( escape_sequence, remaining_escaped_string_chars) =
33
- split_first_slice ( escaped_string_chars. as_str ( ) , 4 )
34
- . ok_or ( StringUnescapeError :: InvalidEscapeSequence ) ?;
28
+ let ( escape_sequence, remaining_escaped_string_chars) = escaped_string_chars
29
+ . as_str ( )
30
+ . split_at_checked ( 4 )
31
+ . ok_or ( StringUnescapeError :: InvalidEscapeSequence ) ?;
35
32
36
33
escaped_string_chars = remaining_escaped_string_chars. chars ( ) ;
37
34
You can’t perform that action at this time.
0 commit comments