diff --git a/rust/hyperlane-base/src/settings/loader/case_adapter.rs b/rust/hyperlane-base/src/settings/loader/case_adapter.rs index 0f8e1e081e..b6a8e5561b 100644 --- a/rust/hyperlane-base/src/settings/loader/case_adapter.rs +++ b/rust/hyperlane-base/src/settings/loader/case_adapter.rs @@ -36,14 +36,14 @@ fn recase_pair(key: String, mut val: Value, case: Case) -> (String, Value) { .drain() .map(|(k, v)| recase_pair(k, v, case)) .collect_vec(); - table.extend(tmp.into_iter()); + table.extend(tmp); } ValueKind::Array(ary) => { let tmp = ary .drain(..) .map(|v| recase_pair(String::new(), v, case).1) .collect_vec(); - ary.extend(tmp.into_iter()) + ary.extend(tmp) } _ => {} }