port over the old tests to the new Rc
This commit is contained in:
parent
c5bcb22719
commit
fc60ace7a9
3 changed files with 44 additions and 3 deletions
|
|
@ -127,7 +127,7 @@ mod test {
|
|||
}
|
||||
|
||||
fn mk(v: uint) -> (~IdleWatcher, Chan) {
|
||||
let rc = Rc::from_send(RefCell::new((None, 0)));
|
||||
let rc = Rc::new(RefCell::new((None, 0)));
|
||||
let cb = ~MyCallback(rc.clone(), v);
|
||||
let cb = cb as ~Callback:;
|
||||
let cb = unsafe { cast::transmute(cb) };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue