ported over to the new std::io, but it's half the speed of std::old_io

This commit is contained in:
Erick Tryzelaar
2015-02-14 10:01:22 -08:00
parent 4dccf8cdec
commit 004a89510e
6 changed files with 278 additions and 267 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ extern crate test;
extern crate serde;
use std::fmt::Debug;
use std::old_io;
use std::io;
use std::str;
use std::string;
use std::collections::BTreeMap;
@@ -113,7 +113,7 @@ impl ToJson for Outer {
}
fn test_encode_ok<
T: PartialEq + Debug + ToJson + ser::Serialize<json::Serializer<Vec<u8>>, old_io::IoError>
T: PartialEq + Debug + ToJson + ser::Serialize<json::Serializer<Vec<u8>>, io::Error>
>(errors: &[(T, &str)]) {
for &(ref value, out) in errors {
let out = out.to_string();
@@ -127,7 +127,7 @@ fn test_encode_ok<
}
fn test_pretty_encode_ok<
T: PartialEq + Debug + ToJson + ser::Serialize<json::PrettySerializer<Vec<u8>>, old_io::IoError>
T: PartialEq + Debug + ToJson + ser::Serialize<json::PrettySerializer<Vec<u8>>, io::Error>
>(errors: &[(T, &str)]) {
for &(ref value, out) in errors {
let out = out.to_string();