From 82b64e9c7a68469dd35f2ebe9edc2e47f70b7373 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Tue, 27 Sep 2022 23:08:27 +0800 Subject: [PATCH] Fix builds. --- src/eval/stmt.rs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/eval/stmt.rs b/src/eval/stmt.rs index 5fa46785..018a6bf4 100644 --- a/src/eval/stmt.rs +++ b/src/eval/stmt.rs @@ -314,17 +314,20 @@ impl Engine { } // idx_lhs[idx_expr] op= rhs #[cfg(not(feature = "no_index"))] - Expr::Index(..) => self.eval_dot_index_chain( - scope, global, caches, lib, this_ptr, lhs, level, _new_val, - ), + Expr::Index(..) => self + .eval_dot_index_chain( + scope, global, caches, lib, this_ptr, lhs, level, _new_val, + ) + .map(|_| Dynamic::UNIT), // dot_lhs.dot_rhs op= rhs #[cfg(not(feature = "no_object"))] - Expr::Dot(..) => self.eval_dot_index_chain( - scope, global, caches, lib, this_ptr, lhs, level, _new_val, - ), + Expr::Dot(..) => self + .eval_dot_index_chain( + scope, global, caches, lib, this_ptr, lhs, level, _new_val, + ) + .map(|_| Dynamic::UNIT), _ => unreachable!("cannot assign to expression: {:?}", lhs), } - .map(|_| Dynamic::UNIT) } else { rhs_result }