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
|
@ -160,7 +160,7 @@ impl Global {
|
|||
// SAFETY: Same as `AllocRef::grow`
|
||||
#[inline]
|
||||
unsafe fn grow_impl(
|
||||
&mut self,
|
||||
&self,
|
||||
ptr: NonNull<u8>,
|
||||
old_layout: Layout,
|
||||
new_layout: Layout,
|
||||
|
@ -228,7 +228,7 @@ unsafe impl AllocRef for Global {
|
|||
|
||||
#[inline]
|
||||
unsafe fn grow(
|
||||
&mut self,
|
||||
&self,
|
||||
ptr: NonNull<u8>,
|
||||
old_layout: Layout,
|
||||
new_layout: Layout,
|
||||
|
@ -239,7 +239,7 @@ unsafe impl AllocRef for Global {
|
|||
|
||||
#[inline]
|
||||
unsafe fn grow_zeroed(
|
||||
&mut self,
|
||||
&self,
|
||||
ptr: NonNull<u8>,
|
||||
old_layout: Layout,
|
||||
new_layout: Layout,
|
||||
|
@ -250,7 +250,7 @@ unsafe impl AllocRef for Global {
|
|||
|
||||
#[inline]
|
||||
unsafe fn shrink(
|
||||
&mut self,
|
||||
&self,
|
||||
ptr: NonNull<u8>,
|
||||
old_layout: Layout,
|
||||
new_layout: Layout,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue