From 8b67a9a9bca2ae5f3314f0daffe1dc6e617bb075 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Wed, 24 Feb 2021 11:05:16 +0800 Subject: [PATCH] Do not test for op-assignment when not ending with '='. --- src/fn_call.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fn_call.rs b/src/fn_call.rs index d8e7723c..fa066981 100644 --- a/src/fn_call.rs +++ b/src/fn_call.rs @@ -295,7 +295,7 @@ impl Engine { None => (), } - if is_ref { + if is_ref && fn_name.ends_with('=') { let (first, second) = args.split_first_mut().unwrap(); match run_builtin_op_assignment(fn_name, first, second[0])? {