mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
Change AllocRef::by_ref
to take &self
instead of &mut self
This commit is contained in:
parent
4529af972e
commit
c22d896b9b
@ -337,7 +337,7 @@ pub unsafe trait AllocRef {
|
||||
///
|
||||
/// The returned adaptor also implements `AllocRef` and will simply borrow this.
|
||||
#[inline(always)]
|
||||
fn by_ref(&mut self) -> &Self {
|
||||
fn by_ref(&self) -> &Self {
|
||||
self
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user