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:
@@ -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)...
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user