diff options
author | Joel Galenson <jgalenson@google.com> | 2020-10-23 09:39:31 -0700 |
---|---|---|
committer | Joel Galenson <jgalenson@google.com> | 2020-10-23 09:52:09 -0700 |
commit | d5495b03381a3ebe0805db353d198b285b535b5c (patch) | |
tree | 778b8524d15fca8b73db0253ee0e1919d0848bb6 /src/loom/std/unsafe_cell.rs | |
parent | ba45c5bedf31df8562364c61d3dfb5262f10642e (diff) | |
download | tokio-d5495b03381a3ebe0805db353d198b285b535b5c.tar.gz |
Update to tokio-0.3.1 and add new features
Test: Build
Change-Id: I5b5b9b386a21982a019653d0cf0bd3afc505cfac
Diffstat (limited to 'src/loom/std/unsafe_cell.rs')
-rw-r--r-- | src/loom/std/unsafe_cell.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loom/std/unsafe_cell.rs b/src/loom/std/unsafe_cell.rs index f2b03d8..66c1d79 100644 --- a/src/loom/std/unsafe_cell.rs +++ b/src/loom/std/unsafe_cell.rs @@ -2,7 +2,7 @@ pub(crate) struct UnsafeCell<T>(std::cell::UnsafeCell<T>); impl<T> UnsafeCell<T> { - pub(crate) fn new(data: T) -> UnsafeCell<T> { + pub(crate) const fn new(data: T) -> UnsafeCell<T> { UnsafeCell(std::cell::UnsafeCell::new(data)) } |