From d1552ef0eeff95b1d5ce60787ae6cc6c63832615 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Tue, 2 Apr 2019 09:35:28 -0600 Subject: Fix warnings for deprecated usages of trim_{left,right}_matches. --- test-suite/tests/valid.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test-suite/tests') 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))), -- cgit v1.2.3