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 8044482 commit f0de36dCopy full SHA for f0de36d
src/lib.rs
@@ -135,10 +135,6 @@ unsafe impl Alloc for Heap {
135
unsafe fn dealloc(&mut self, ptr: NonNull<Opaque>, layout: Layout) {
136
self.deallocate(ptr, layout)
137
}
138
-
139
- fn oom(&mut self) -> ! {
140
- panic!("Out of memory");
141
- }
142
143
144
#[cfg(feature = "use_spin")]
@@ -188,10 +184,6 @@ unsafe impl GlobalAlloc for LockedHeap {
188
184
.lock()
189
185
.deallocate(NonNull::new_unchecked(ptr), layout)
190
186
191
192
- fn oom(&self) -> ! {
193
194
195
187
196
197
/// Align downwards. Returns the greatest x with alignment `align`
0 commit comments