mirror of
https://github.com/serde-rs/json.git
synced 2025-10-03 15:56:28 +00:00
Update name of deprecated str::trim_right
This commit is contained in:
parent
04ff22701d
commit
8304704f76
@ -617,7 +617,7 @@ where
|
|||||||
// Make sure every prefix is an EOF error, except that a prefix of a
|
// Make sure every prefix is an EOF error, except that a prefix of a
|
||||||
// number may be a valid number.
|
// number may be a valid number.
|
||||||
if !json_value.is_number() {
|
if !json_value.is_number() {
|
||||||
for (i, _) in s.trim_right().char_indices() {
|
for (i, _) in s.trim_end().char_indices() {
|
||||||
assert!(from_str::<Value>(&s[..i]).unwrap_err().is_eof());
|
assert!(from_str::<Value>(&s[..i]).unwrap_err().is_eof());
|
||||||
assert!(from_str::<IgnoredAny>(&s[..i]).unwrap_err().is_eof());
|
assert!(from_str::<IgnoredAny>(&s[..i]).unwrap_err().is_eof());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user