Skip to content

Commit 3fa5c0f

Browse files
committed
Upgrade to rustc aaf141d39 2014-09-07
1 parent 1d0b9ff commit 3fa5c0f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/tests.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ fn write_whole_file(path: &Path, data: &str) -> IoResult<()> {
2828

2929

3030
fn print_json_diff(results: &json::Json, expected: &json::Json) -> IoResult<()> {
31-
let temp = match TempDir::new("rust-cssparser-tests") {
32-
Some(temp) => temp,
33-
None => return Err(io::standard_error(io::OtherIoError)),
34-
};
31+
let temp = try!(TempDir::new("rust-cssparser-tests"));
3532
let results = results.to_pretty_str().append("\n");
3633
let expected = expected.to_pretty_str().append("\n");
3734
let mut result_path = temp.path().clone();

0 commit comments

Comments
 (0)