Streamline as_mut to &mut.

This commit is contained in:
Stephen Chung
2021-04-17 13:54:24 +08:00
parent 199df9aa4a
commit 2f2b7403cb
4 changed files with 16 additions and 26 deletions

View File

@@ -947,7 +947,7 @@ fn optimize_expr(expr: &mut Expr, state: &mut State) {
""
};
if let Some(result) = call_fn_with_constant_arguments(&state, x.name.as_ref(), arg_values.as_mut())
if let Some(result) = call_fn_with_constant_arguments(&state, x.name.as_ref(), &mut arg_values)
.or_else(|| {
if !arg_for_type_of.is_empty() {
// Handle `type_of()`