a few more &mut self -> self changes
This commit is contained in:
parent
985dff9e7e
commit
2b19b14cec
4 changed files with 21 additions and 21 deletions
|
|
@ -19,7 +19,7 @@ struct A;
|
|||
unsafe impl alloc::GlobalAlloc for A {
|
||||
unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
|
||||
HITS.fetch_add(1, Ordering::SeqCst);
|
||||
AllocRef::alloc(&System, layout).unwrap().as_mut_ptr()
|
||||
alloc::GlobalAlloc::alloc(&System, layout)
|
||||
}
|
||||
|
||||
unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue