Fix feature builds.

This commit is contained in:
Stephen Chung
2020-12-08 23:09:12 +08:00
parent f22a04fc74
commit 7598ec136f
5 changed files with 63 additions and 45 deletions

View File

@@ -997,7 +997,7 @@ impl Engine {
let (mut target, _, pos) =
self.search_namespace(scope, mods, state, lib, this_ptr, &args_expr[0])?;
if target.as_ref().is_constant() {
if target.as_ref().is_read_only() {
target = target.into_owned();
}