Skip to content

Commit

Permalink
Auto merge of #803 - gurry:fix-mut-warning, r=compiler-errors
Browse files Browse the repository at this point in the history
Remove an unnecessary mut and fix warning

Fixes a `variable does not need to be mutable` warning
  • Loading branch information
bors committed Oct 5, 2023
2 parents 48f8151 + 40ff5b7 commit 749714f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions chalk-engine/src/logic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1310,10 +1310,7 @@ impl<'forest, I: Interner> SolveState<'forest, I> {
}
}

fn select_subgoal(
&mut self,
mut canonical_strand: &mut CanonicalStrand<I>,
) -> SubGoalSelection {
fn select_subgoal(&mut self, canonical_strand: &mut CanonicalStrand<I>) -> SubGoalSelection {
loop {
while canonical_strand.value.selected_subgoal.is_none() {
if canonical_strand.value.ex_clause.subgoals.is_empty() {
Expand Down

0 comments on commit 749714f

Please sign in to comment.