diff options
author | Valerii Hiora <valerii.hiora@gmail.com> | 2015-01-03 15:28:22 +0200 |
---|---|---|
committer | Valerii Hiora <valerii.hiora@gmail.com> | 2015-01-03 18:01:19 +0200 |
commit | 887e5ff844efe5a6397ebfdf7333d3e3ec700ef4 (patch) | |
tree | bf5b8a2804d730b37f4c30a137d3b640c42f8c82 /src/test | |
parent | 2557fc9ab98fd4ee4c894b05f1eda903773c4558 (diff) | |
download | milf-rs-887e5ff844efe5a6397ebfdf7333d3e3ec700ef4.tar.gz milf-rs-887e5ff844efe5a6397ebfdf7333d3e3ec700ef4.zip |
Update to master
- updated `rustc-serialize` dependency, in other case `toml-rs`
prohibits `rustc-serialize` update on other crates
- updated after syntax and lib changes
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/valid.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/valid.rs b/src/test/valid.rs index 8f8b6bc..5d15739 100644 --- a/src/test/valid.rs +++ b/src/test/valid.rs @@ -2,7 +2,7 @@ extern crate serialize; use std::num::strconv; use std::collections::BTreeMap; -use self::serialize::json::{mod, Json}; +use self::serialize::json::{self, Json}; use {Parser, Value}; use Value::{Table, Integer, Float, Boolean, Datetime, Array}; @@ -57,8 +57,8 @@ fn run(toml: &str, json: &str) { let toml_json = to_json(Table(table)); assert!(json == toml_json, "expected\n{}\ngot\n{}\n", - json.to_pretty_str(), - toml_json.to_pretty_str()); + json.pretty(), + toml_json.pretty()); } macro_rules! test( ($name:ident, $toml:expr, $json:expr) => ( |