We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04ff227 commit 8304704Copy full SHA for 8304704
tests/test.rs
@@ -617,7 +617,7 @@ where
617
// Make sure every prefix is an EOF error, except that a prefix of a
618
// number may be a valid number.
619
if !json_value.is_number() {
620
- for (i, _) in s.trim_right().char_indices() {
+ for (i, _) in s.trim_end().char_indices() {
621
assert!(from_str::<Value>(&s[..i]).unwrap_err().is_eof());
622
assert!(from_str::<IgnoredAny>(&s[..i]).unwrap_err().is_eof());
623
}
0 commit comments