aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2019-04-02 10:50:33 -0700
committerGitHub <noreply@github.com>2019-04-02 10:50:33 -0700
commit166d8f08b3bb70b878664a6689904924c72ab7d6 (patch)
tree59ec93a9f82a600cbe7d48b75eefa1cad099b4e3 /test-suite/tests
parenteda57879e307cb9e10efd62ba3cbead3f43d913d (diff)
parentd1552ef0eeff95b1d5ce60787ae6cc6c63832615 (diff)
downloadmilf-rs-166d8f08b3bb70b878664a6689904924c72ab7d6.tar.gz
milf-rs-166d8f08b3bb70b878664a6689904924c72ab7d6.zip
Merge pull request #295 from ErichDonGubler/fix_warnings
Fix warnings for deprecated usages of trim_{left,right}_matches.
Diffstat (limited to 'test-suite/tests')
-rw-r--r--test-suite/tests/valid.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-suite/tests/valid.rs b/test-suite/tests/valid.rs
index 7c1691c..68e0ea2 100644
--- a/test-suite/tests/valid.rs
+++ b/test-suite/tests/valid.rs
@@ -19,7 +19,7 @@ fn to_json(toml: toml::Value) -> Json {
Toml::Integer(i) => doit("integer", Json::String(i.to_string())),
Toml::Float(f) => doit("float", Json::String({
let s = format!("{:.15}", f);
- let s = format!("{}", s.trim_right_matches('0'));
+ let s = format!("{}", s.trim_end_matches('0'));
if s.ends_with('.') {format!("{}0", s)} else {s}
})),
Toml::Boolean(b) => doit("bool", Json::String(format!("{}", b))),