diff options
author | Alex Crichton <alex@alexcrichton.com> | 2014-11-18 10:18:04 -0600 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2014-11-18 10:18:04 -0600 |
commit | 4bb575fdaf5fd88580abbac6fdb057ef76d32251 (patch) | |
tree | cb8fc875c37fcff679bf3d99a594ffb3f2eb63a1 /src/test | |
parent | c5284ffc32585401f01aa925ebd6d3fe0679e7c6 (diff) | |
parent | bfcfa89e9566ef179fae47e62a8f8290ff3a3980 (diff) | |
download | milf-rs-4bb575fdaf5fd88580abbac6fdb057ef76d32251.tar.gz milf-rs-4bb575fdaf5fd88580abbac6fdb057ef76d32251.zip |
Merge pull request #31 from vberger/master
Update to namespaced enum variants.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/valid.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/valid.rs b/src/test/valid.rs index 05d3172..b60277e 100644 --- a/src/test/valid.rs +++ b/src/test/valid.rs @@ -4,7 +4,8 @@ use std::num::strconv; use std::collections::TreeMap; use self::serialize::json; -use {Parser, Value, Table, Integer, Float, Boolean, Datetime, Array}; +use {Parser, Value}; +use Value::{Table, Integer, Float, Boolean, Datetime, Array}; fn to_json(toml: Value) -> json::Json { fn doit(s: &str, json: json::Json) -> json::Json { @@ -14,7 +15,7 @@ fn to_json(toml: Value) -> json::Json { json::Object(map) } match toml { - ::String(s) => doit("string", json::String(s)), + Value::String(s) => doit("string", json::String(s)), Integer(i) => doit("integer", json::String(i.to_string())), Float(f) => doit("float", json::String({ let (bytes, _) = |