Remove unnecessary clone.

This commit is contained in:
Stephen Chung 2020-11-01 22:55:19 +08:00
parent c55fc5a9a5
commit 717e8e7eee

View File

@ -726,7 +726,7 @@ fn optimize(
.iter()
.filter(|(_, typ, _)| *typ)
.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);
}
});