diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-08-06 12:34:08 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-08-06 15:36:30 -0700 |
| commit | ecaf9e39c9435fa2de4fe393c4b263be36eb2d99 (patch) | |
| tree | 775f69be65adff65551d96173dd797e32e2c3157 /src/libstd/timer.rs | |
| parent | d3a9bb1bd4a1d510bbaca2ab1121e4c85a239247 (diff) | |
| download | rust-ecaf9e39c9435fa2de4fe393c4b263be36eb2d99.tar.gz rust-ecaf9e39c9435fa2de4fe393c4b263be36eb2d99.zip | |
Convert alt to match. Stop parsing alt
Diffstat (limited to 'src/libstd/timer.rs')
| -rw-r--r-- | src/libstd/timer.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/timer.rs b/src/libstd/timer.rs index de629d98d63..d19d7a1adcc 100644 --- a/src/libstd/timer.rs +++ b/src/libstd/timer.rs @@ -215,7 +215,7 @@ mod test { delayed_send(hl_loop, 1u, test_ch, expected); }; - alt recv_timeout(hl_loop, 10u, test_po) { + match recv_timeout(hl_loop, 10u, test_po) { some(val) => { assert val == expected; successes += 1; @@ -243,7 +243,7 @@ mod test { delayed_send(hl_loop, 1000u, test_ch, expected); }; - alt recv_timeout(hl_loop, 1u, test_po) { + match recv_timeout(hl_loop, 1u, test_po) { none => successes += 1, _ => failures += 1 }; |
