Skip to content

Commit 8304704

Browse files
committed
Update name of deprecated str::trim_right
1 parent 04ff227 commit 8304704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ where
617617
// Make sure every prefix is an EOF error, except that a prefix of a
618618
// number may be a valid number.
619619
if !json_value.is_number() {
620-
for (i, _) in s.trim_right().char_indices() {
620+
for (i, _) in s.trim_end().char_indices() {
621621
assert!(from_str::<Value>(&s[..i]).unwrap_err().is_eof());
622622
assert!(from_str::<IgnoredAny>(&s[..i]).unwrap_err().is_eof());
623623
}

0 commit comments

Comments
 (0)