diff options
author | Alex Crichton <alex@alexcrichton.com> | 2017-04-12 09:13:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-12 09:13:50 -0500 |
commit | 2ae8c79ab8f1ac22c53bd200f7131879fe097d80 (patch) | |
tree | 52648a4c83fa31b0be8b01de7e575483293fcdf3 /tests | |
parent | 9698fb0b120ef0496a75e314bd59ed562d3a2562 (diff) | |
parent | e382b8d895e13b7cac6d35a905aa0490f3bb03d1 (diff) | |
download | milf-rs-2ae8c79ab8f1ac22c53bd200f7131879fe097d80.tar.gz milf-rs-2ae8c79ab8f1ac22c53bd200f7131879fe097d80.zip |
Merge pull request #157 from neosilky/clippy-fixes
Fix issues indicated by clippy
Diffstat (limited to 'tests')
-rw-r--r-- | tests/valid.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/valid.rs b/tests/valid.rs index 4229f1c..e8ea6af 100644 --- a/tests/valid.rs +++ b/tests/valid.rs @@ -18,7 +18,7 @@ fn to_json(toml: toml::Value) -> Json { Toml::Float(f) => doit("float", Json::String({ let s = format!("{:.15}", f); let s = format!("{}", s.trim_right_matches('0')); - if s.ends_with(".") {format!("{}0", s)} else {s} + if s.ends_with('.') {format!("{}0", s)} else {s} })), Toml::Boolean(b) => doit("bool", Json::String(format!("{}", b))), Toml::Datetime(s) => doit("datetime", Json::String(s.to_string())), |