From 887e5ff844efe5a6397ebfdf7333d3e3ec700ef4 Mon Sep 17 00:00:00 2001 From: Valerii Hiora Date: Sat, 3 Jan 2015 15:28:22 +0200 Subject: 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 --- src/test/valid.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test') 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) => ( -- cgit v1.2.3