We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29029b6 commit 80252b4Copy full SHA for 80252b4
src/lib.rs
@@ -55,7 +55,7 @@ pub fn raw<T>(data: T) -> *mut T {
55
///
56
/// Invalid pointer or call it twice could cause an undefined behavior or heap error and a crash.
57
pub unsafe fn free<T>(pointer: *mut T) {
58
- let _ = own_back(pointer); // Ignore the must use lint as previous behavior was ignore null pointers
+ std::mem::drop(own_back(pointer));
59
}
60
61
/// Opposite of [`raw<T>()`], to use Rust's ownership as usually.
0 commit comments