Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
yihozhang committed Sep 1, 2023
1 parent 16c6026 commit 7bba911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rvsdg/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ fn vec_map<T>(inputs: &egglog::ast::Expr, mut f: impl FnMut(&egglog::ast::Expr)
let mut results = vec![];
if let Call(func, args) = inputs {
if func.as_str() == "vec-of" {
return args.iter().map(|arg| f(arg)).collect();
return args.iter().map(&mut f).collect();
}
}
loop {
Expand Down

0 comments on commit 7bba911

Please sign in to comment.