1
Fork 0

Removing do keyword from libextra

This commit is contained in:
Scott Lawrence 2014-01-26 23:13:24 -05:00
parent d904179066
commit badc580416
8 changed files with 122 additions and 123 deletions

View file

@ -2201,7 +2201,7 @@ mod tests {
}
fn check_err<T: Decodable<Decoder>>(to_parse: &'static str, expected_error: &str) {
use std::task;
let res = do task::try {
let res = task::try(proc() {
// either fails in `decode` (which is what we want), or
// returns Some(error_message)/None if the string was
// invalid or valid JSON.
@ -2212,7 +2212,7 @@ mod tests {
None
}
}
};
});
match res {
Ok(Some(parse_error)) => fail!("`{}` is not valid json: {}",
to_parse, parse_error),