File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ impl Allocator {
126
126
127
127
unsafe impl core:: alloc:: AllocRef for Allocator {
128
128
fn alloc (
129
- & mut self ,
129
+ & self ,
130
130
layout : core:: alloc:: Layout ,
131
131
) -> Result < core:: ptr:: NonNull < [ u8 ] > , core:: alloc:: AllocErr > {
132
132
// We forward the allocation request to `AllocatePool()`. This takes the memory-type and
@@ -165,7 +165,7 @@ unsafe impl core::alloc::AllocRef for Allocator {
165
165
) . unwrap ( ) )
166
166
}
167
167
168
- unsafe fn dealloc ( & mut self , ptr : core:: ptr:: NonNull < u8 > , layout : core:: alloc:: Layout ) {
168
+ unsafe fn dealloc ( & self , ptr : core:: ptr:: NonNull < u8 > , layout : core:: alloc:: Layout ) {
169
169
if layout. size ( ) != 0 {
170
170
// The spec allows returning errors from `FreePool()`. However, it
171
171
// must serve any valid requests. Only `INVALID_PARAMETER` is
You can’t perform that action at this time.
0 commit comments