Auto merge of #77289 - TimDiekmann:alloc-ref-by-ref, r=Amanieu
Change `AllocRef::by_ref` to take `&self` instead of `&mut self` r? `@Amanieu`
This commit is contained in:
commit
0d97f7a968
1 changed files with 1 additions and 1 deletions
|
@ -337,7 +337,7 @@ pub unsafe trait AllocRef {
|
||||||
///
|
///
|
||||||
/// The returned adaptor also implements `AllocRef` and will simply borrow this.
|
/// The returned adaptor also implements `AllocRef` and will simply borrow this.
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
fn by_ref(&mut self) -> &Self {
|
fn by_ref(&self) -> &Self {
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue