Merge pull request #4642 from codeblack08/unwrap-pub
Declare std::arc::unwrap to be pub
This commit is contained in:
commit
cf23ccf9b6
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ pub fn clone<T: Const Owned>(rc: &ARC<T>) -> ARC<T> {
|
||||||
* unwrap from a task that holds another reference to the same ARC; it is
|
* unwrap from a task that holds another reference to the same ARC; it is
|
||||||
* guaranteed to deadlock.
|
* guaranteed to deadlock.
|
||||||
*/
|
*/
|
||||||
fn unwrap<T: Const Owned>(rc: ARC<T>) -> T {
|
pub fn unwrap<T: Const Owned>(rc: ARC<T>) -> T {
|
||||||
let ARC { x: x } = move rc;
|
let ARC { x: x } = move rc;
|
||||||
unsafe { unwrap_shared_mutable_state(move x) }
|
unsafe { unwrap_shared_mutable_state(move x) }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue