From f16498b8db0d960905b530c8d726155798843ae7 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 22 Dec 2014 08:17:46 -0800 Subject: Update to rust master --- src/test/valid.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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)} -- cgit v1.2.3