We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d0b9ff commit 3fa5c0fCopy full SHA for 3fa5c0f
src/tests.rs
@@ -28,10 +28,7 @@ fn write_whole_file(path: &Path, data: &str) -> IoResult<()> {
28
29
30
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
- };
+ let temp = try!(TempDir::new("rust-cssparser-tests"));
35
let results = results.to_pretty_str().append("\n");
36
let expected = expected.to_pretty_str().append("\n");
37
let mut result_path = temp.path().clone();
0 commit comments