Remove unnecessary mut.

`mut_results` immediately below is the `&mut self` version, this one
should be `&self`.
This commit is contained in:
Nicholas Nethercote 2023-11-24 13:12:08 +11:00
parent 0f12da17c0
commit 406c0b8ae4

View File

@ -147,7 +147,7 @@ pub(crate) fn allow_unreachable(&mut self) {
}
/// Returns the underlying `Results`.
pub fn results(&mut self) -> &Results<'tcx, A, R::EntrySets> {
pub fn results(&self) -> &Results<'tcx, A, R::EntrySets> {
self.results.borrow()
}