diff options
Diffstat (limited to 'src/collection/utils.rs')
| -rwxr-xr-x | src/collection/utils.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/collection/utils.rs b/src/collection/utils.rs index e79b78b..236853c 100755 --- a/src/collection/utils.rs +++ b/src/collection/utils.rs @@ -1,4 +1,6 @@ -use std::cell::Cell; +use core::cell::Cell; + +use alloc::vec::Vec; use crate::handle_unwind::handle_unwind; use crate::lockable::{Lockable, RawLock, Sharable}; @@ -32,7 +34,7 @@ pub fn ordered_contains_duplicates(l: &[&dyn RawLock]) -> bool { l.windows(2) // NOTE: addr_eq is necessary because eq would also compare the v-table pointers - .any(|window| std::ptr::addr_eq(window[0], window[1])) + .any(|window| core::ptr::addr_eq(window[0], window[1])) } /// Lock a set of locks in the given order. It's UB to call this without a `ThreadKey` |
