Change `AllocRef::by_ref` to take `&self` instead of `&mut self`

This commit is contained in:
Tim Diekmann 2020-09-28 10:42:29 +02:00
parent 4529af972e
commit c22d896b9b
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}