Skip to content

Commit 97fa950

Browse files
authored
Update lib.rs
1 parent 08d94c9 commit 97fa950

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ fn null_error_check<T>(pointer: *const T) -> Result<(), crate::error::PointerErr
7070
#[inline]
7171
pub fn raw<T>(data: T) -> *mut T {
7272
let pointer = Box::into_raw(Box::new(data));
73+
// Use try_reserve in nightly until it is available in stable
7374
#[cfg(all(feature = "std", feature = "lender"))]
7475
LENT_POINTERS.write().unwrap().insert(pointer as usize);
7576
return pointer;

0 commit comments

Comments
 (0)