port over the old tests to the new Rc

This commit is contained in:
Daniel Micay 2014-01-09 15:56:38 -05:00
parent c5bcb22719
commit fc60ace7a9
3 changed files with 44 additions and 3 deletions

View file

@ -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) };