Skip to content

Commit 50b0b9a

Browse files
lqdcompiler-errors
authored andcommitted
CoreVariable is copy
1 parent 1d5ff7c commit 50b0b9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/formality-core/src/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ impl<L: Language> Scope<L> {
187187
self.bindings
188188
.iter()
189189
.rev()
190-
.flat_map(|(n, p)| if name == n { Some(p.clone()) } else { None })
190+
.flat_map(|(n, p)| if name == n { Some(*p) } else { None })
191191
.next()
192192
}
193193

0 commit comments

Comments
 (0)