Skip to content

Commit 406c0b8

Browse files
committed
Remove unnecessary mut.
`mut_results` immediately below is the `&mut self` version, this one should be `&self`.
1 parent 0f12da1 commit 406c0b8

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_mir_dataflow/src/framework

1 file changed

+1
-1
lines changed

compiler/rustc_mir_dataflow/src/framework/cursor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ where
147147
}
148148

149149
/// Returns the underlying `Results`.
150-
pub fn results(&mut self) -> &Results<'tcx, A, R::EntrySets> {
150+
pub fn results(&self) -> &Results<'tcx, A, R::EntrySets> {
151151
self.results.borrow()
152152
}
153153

0 commit comments

Comments
 (0)