Skip to content

Commit 0fcc5c3

Browse files
committed
Fix clippy redundant_closure warning in substitute_symbol
1 parent b6da0e1 commit 0fcc5c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • cprover_bindings/src/goto_program

cprover_bindings/src/goto_program/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ impl Expr {
367367
size_of_annotation: ann.clone(),
368368
};
369369
let sub = |e: Expr| e.substitute_symbol(old_id, replacement);
370-
let sub_vec = |v: Vec<Expr>| v.into_iter().map(|e| sub(e)).collect();
370+
let sub_vec = |v: Vec<Expr>| v.into_iter().map(&sub).collect();
371371

372372
match *self.value {
373373
ExprValue::Symbol { identifier } if identifier == *old_id => {

0 commit comments

Comments
 (0)