Skip to content

Commit 3cd604d

Browse files
committed
fix: Remove conditional compilation to validate pointers in own_back
1 parent 3c14772 commit 3cd604d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ pub unsafe fn free<T>(pointer: *mut T) {
112112
#[inline]
113113
#[allow(clippy::not_unsafe_ptr_arg_deref)]
114114
pub unsafe fn own_back<T>(pointer: *mut T) -> Result<T, PointerError> {
115-
#[cfg(all(feature = "std", feature = "lender"))]
116115
validate_pointer(pointer)?;
117116
let boxed = { Box::from_raw(pointer) };
118117
#[cfg(all(feature = "std", feature = "lender"))]

0 commit comments

Comments
 (0)