std: Remove the get() method from RefCell wrappers

This method has been entirely obsoleted by autoderef, so there's no reason for
its existence.
This commit is contained in:
Alex Crichton
2014-03-20 15:04:55 -07:00
parent e233a43f5a
commit cd510b3382
3 changed files with 6 additions and 27 deletions

View File

@@ -284,7 +284,7 @@ mod tests {
let a = Rc::new(Cycle { x: RefCell::new(None) });
let b = a.clone().downgrade();
*a.deref().x.borrow_mut().get() = Some(b);
*a.deref().x.borrow_mut() = Some(b);
// hopefully we don't double-free (or leak)...
}