Fix no_std build.

This commit is contained in:
Stephen Chung
2020-10-25 22:08:02 +08:00
parent b607a3a9ba
commit b467b18722
3 changed files with 10 additions and 2 deletions

View File

@@ -1055,7 +1055,7 @@ impl Engine {
} else {
// If the first argument is a variable, and there is no curried arguments, convert to method-call style
// in order to leverage potential &mut first argument and avoid cloning the value
if curry.is_empty() && args_expr[0].get_variable_access(false).is_some() {
if curry.is_empty() && args_expr[0].get_variable_access(false).is_some() {
// func(x, ...) -> x.func(...)
arg_values = args_expr
.iter()