Removing do keyword from libextra
This commit is contained in:
parent
d904179066
commit
badc580416
8 changed files with 122 additions and 123 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue