From bfcfa89e9566ef179fae47e62a8f8290ff3a3980 Mon Sep 17 00:00:00 2001 From: Victor Berger Date: Tue, 18 Nov 2014 09:13:21 +0100 Subject: Update to namespaced enum variants. --- src/test/valid.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/test') 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, _) = -- cgit v1.2.3