Remove unnecessary clone.
This commit is contained in:
parent
c55fc5a9a5
commit
717e8e7eee
@ -726,7 +726,7 @@ fn optimize(
|
|||||||
.iter()
|
.iter()
|
||||||
.filter(|(_, typ, _)| *typ)
|
.filter(|(_, typ, _)| *typ)
|
||||||
.for_each(|(name, _, value)| {
|
.for_each(|(name, _, value)| {
|
||||||
if let Some(val) = map_dynamic_to_expr(value.clone(), Position::none()) {
|
if let Some(val) = map_dynamic_to_expr(value, Position::none()) {
|
||||||
state.push_constant(name, val);
|
state.push_constant(name, val);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user