|
3 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
4 | 4 |
|
5 | 5 | use std::{io, str, task};
|
6 |
| -use std::io::{File, Process, Writer}; |
7 |
| -use extra::{tempfile, json}; |
8 |
| -use extra::json::ToJson; |
| 6 | +use std::io::{File, Process, Writer, TempDir}; |
| 7 | +use serialize::{json}; |
| 8 | +use serialize::json::ToJson; |
9 | 9 | use test;
|
10 | 10 |
|
11 | 11 | use encoding::label::encoding_from_whatwg_label;
|
@@ -38,7 +38,7 @@ fn almost_equals(a: &json::Json, b: &json::Json) -> bool {
|
38 | 38 |
|
39 | 39 | fn assert_json_eq(results: json::Json, expected: json::Json, message: ~str) {
|
40 | 40 | if !almost_equals(&results, &expected) {
|
41 |
| - let temp = tempfile::TempDir::new("rust-cssparser-tests").unwrap(); |
| 41 | + let temp = TempDir::new("rust-cssparser-tests").unwrap(); |
42 | 42 | let results = results.to_pretty_str() + "\n";
|
43 | 43 | let expected = expected.to_pretty_str() + "\n";
|
44 | 44 | task::try(proc() {
|
@@ -382,8 +382,8 @@ impl ToJson for Declaration {
|
382 | 382 |
|
383 | 383 | impl ToJson for ComponentValue {
|
384 | 384 | fn to_json(&self) -> json::Json {
|
385 |
| - use JList = extra::json::List; |
386 |
| - use JString = extra::json::String; |
| 385 | + use JList = serialize::json::List; |
| 386 | + use JString = serialize::json::String; |
387 | 387 |
|
388 | 388 | fn numeric(value: &NumericValue) -> ~[json::Json] {
|
389 | 389 | match *value {
|
|
0 commit comments