Skip to content

Commit 0f3ccf5

Browse files
committed
refactor: Deprecate free function
1 parent 9f437d8 commit 0f3ccf5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ pub fn raw<T>(data: T) -> *mut T {
4343
}
4444

4545
/// Opposite of [`raw<T>()`], to use Rust's ownership as usually.
46+
#[deprecated(
47+
since = "0.7.2",
48+
note = "Please use the own_back function instead"
49+
)]
4650
#[cfg(any(feature = "alloc", feature = "std"))]
4751
#[inline]
4852
pub unsafe fn free<T>(pointer: *mut T) {

0 commit comments

Comments
 (0)