diff options
author | Erich Gubler <erichdongubler@gmail.com> | 2019-04-02 09:35:28 -0600 |
---|---|---|
committer | Erich Gubler <erichdongubler@gmail.com> | 2019-04-02 09:35:28 -0600 |
commit | d1552ef0eeff95b1d5ce60787ae6cc6c63832615 (patch) | |
tree | ec612df2c878836a3d18d7399607abccfb01abb1 /src/de.rs | |
parent | d729bf9c53fcfe8f1e5506a938b88d81526b55a4 (diff) | |
download | milf-rs-d1552ef0eeff95b1d5ce60787ae6cc6c63832615.tar.gz milf-rs-d1552ef0eeff95b1d5ce60787ae6cc6c63832615.zip |
Fix warnings for deprecated usages of trim_{left,right}_matches.
Diffstat (limited to 'src/de.rs')
-rw-r--r-- | src/de.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1321,7 +1321,7 @@ impl<'a> Deserializer<'a> { if suffix != "" { return Err(self.error(start, ErrorKind::NumberInvalid)); } - i64::from_str_radix(&prefix.replace("_", "").trim_left_matches('+'), radix) + i64::from_str_radix(&prefix.replace("_", "").trim_start_matches('+'), radix) .map_err(|_e| self.error(start, ErrorKind::NumberInvalid)) } @@ -1399,7 +1399,7 @@ impl<'a> Deserializer<'a> { } let mut number = integral - .trim_left_matches('+') + .trim_start_matches('+') .chars() .filter(|c| *c != '_') .collect::<String>(); |