Refactor.

This commit is contained in:
Stephen Chung
2022-09-26 23:35:37 +08:00
parent 8f1cb4aef7
commit 3a3653f42a
4 changed files with 25 additions and 25 deletions

View File

@@ -928,7 +928,7 @@ impl Dynamic {
#[cfg(not(feature = "no_index"))]
Union::Array(ref mut a, _, ref mut access) => {
*access = typ;
for v in a.iter_mut() {
for v in a.as_mut() {
v.set_access_mode(typ);
}
}