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 c897175 commit f16c79eCopy full SHA for f16c79e
src/core/pool.rs
@@ -135,9 +135,6 @@ impl Pool {
135
/// Allocates memory for a value of a specified type and adds a cleanup handler to the memory pool.
136
///
137
/// Returns a typed pointer to the allocated memory if successful, or a null pointer if allocation or cleanup handler addition fails.
138
- ///
139
- /// # Safety
140
- /// This function is marked as unsafe because it involves raw pointer manipulation.
141
pub fn allocate<T>(&mut self, value: T) -> *mut T {
142
unsafe {
143
let p = self.alloc(mem::size_of::<T>()) as *mut T;
0 commit comments