diff options
author | Alex Crichton <alex@alexcrichton.com> | 2014-12-22 08:17:46 -0800 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2014-12-22 08:17:46 -0800 |
commit | f16498b8db0d960905b530c8d726155798843ae7 (patch) | |
tree | 44b3be7661414f83222bc33258a22bdff57b4e47 | |
parent | 95c6161dcec9cdaada7e1507c6e536eeb7623ed4 (diff) | |
download | milf-rs-f16498b8db0d960905b530c8d726155798843ae7.tar.gz milf-rs-f16498b8db0d960905b530c8d726155798843ae7.zip |
Update to rust master
-rw-r--r-- | Cargo.toml | 5 | ||||
-rw-r--r-- | src/test/valid.rs | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -14,3 +14,8 @@ A native Rust encoder and decoder of TOML-formatted files and streams. Provides implementations of the standard Encodable/Decodable traits for TOML data to facilitate deserializing and serializing Rust structures. """ + +[profile.dev] +debug = false +[profile.test] +debug = false diff --git a/src/test/valid.rs b/src/test/valid.rs index 205e9e6..29fcda8 100644 --- a/src/test/valid.rs +++ b/src/test/valid.rs @@ -20,9 +20,9 @@ fn to_json(toml: Value) -> Json { Float(f) => doit("float", Json::String({ let (bytes, _) = strconv::float_to_str_bytes_common(f, 10, true, - strconv::SignNeg, - strconv::DigMax(15), - strconv::ExpNone, + strconv::SignFormat::SignNeg, + strconv::SignificantDigits::DigMax(15), + strconv::ExponentFormat::ExpNone, false); let s = String::from_utf8(bytes).unwrap(); if s.as_slice().contains(".") {s} else {format!("{}.0", s)} |