File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
branches/snap-stage3/src/libcore Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 40559ea83961df06c82f76c333ce4c9604f12449
4
+ refs/heads/snap-stage3: 28ab0e8c0335544359d1809a40682f38c9610b78
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -34,14 +34,8 @@ fn send<T: send>(c: chan<T>, -x: T) {
34
34
( * c ) . with { |cond, data|
35
35
let mut xx = none;
36
36
xx <-> x;
37
- alt xx {
38
- some( y) {
39
- let mut x <- y;
40
- ( * data) . push ( x) ;
41
- cond. signal ( ) ;
42
- }
43
- none { fail }
44
- } ;
37
+ ( * data) . push ( option:: unwrap ( xx) ) ;
38
+ cond. signal ( ) ;
45
39
}
46
40
}
47
41
You can’t perform that action at this time.
0 commit comments