diff options
author | Alex Crichton <alex@alexcrichton.com> | 2014-09-21 07:55:13 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2014-09-21 07:55:19 -0700 |
commit | 22ad6e7ea9f2a81aac3ba9e427dd8a1036453486 (patch) | |
tree | f8d213dd276f416aa44394a3439530cfd5e19332 /src/test | |
parent | 1ca52c5ea44d37354af024f1c790c2f042504c5b (diff) | |
download | milf-rs-22ad6e7ea9f2a81aac3ba9e427dd8a1036453486.tar.gz milf-rs-22ad6e7ea9f2a81aac3ba9e427dd8a1036453486.zip |
Update to rust master
Closes #19
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/valid.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/valid.rs b/src/test/valid.rs index 76ca9fb..05d3172 100644 --- a/src/test/valid.rs +++ b/src/test/valid.rs @@ -4,7 +4,7 @@ use std::num::strconv; use std::collections::TreeMap; use self::serialize::json; -use {Parser, Value, Table, String, Integer, Float, Boolean, Datetime, Array}; +use {Parser, 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 +14,7 @@ fn to_json(toml: Value) -> json::Json { json::Object(map) } match toml { - String(s) => doit("string", json::String(s)), + ::String(s) => doit("string", json::String(s)), Integer(i) => doit("integer", json::String(i.to_string())), Float(f) => doit("float", json::String({ let (bytes, _) = |