libstd: Remove Cell from the library.

This commit is contained in:
Patrick Walton
2013-12-05 17:37:02 -08:00
parent 6113508055
commit fd7a513bef
10 changed files with 37 additions and 91 deletions

View File

@@ -159,11 +159,9 @@ impl EventLoop for BasicLoop {
~BasicRemote::new(self.messages.clone(), id) as ~RemoteCallback
}
fn io(&mut self) -> &'static mut IoFactory:'static {
unsafe {
let factory: &mut IoFactory = self.io;
cast::transmute(factory)
}
fn io<'a>(&'a mut self) -> Option<&'a mut IoFactory> {
let factory: &mut IoFactory = self.io;
Some(factory)
}
}