diff --git a/lib/runtime-core/src/import.rs b/lib/runtime-core/src/import.rs index f764dc7b785..a8dbe72b4c1 100644 --- a/lib/runtime-core/src/import.rs +++ b/lib/runtime-core/src/import.rs @@ -139,7 +139,10 @@ impl Extend<(String, String, Export)> for ImportObject { let mut map = self.map.borrow_mut(); for (ns, id, exp) in iter.into_iter() { if let Some(like_ns) = map.get_mut(&ns) { - like_ns.maybe_insert(&id, exp).expect(&format!("Insert failed. Duplicate name {} found in namespace {}", id, ns)); + like_ns.maybe_insert(&id, exp).expect(&format!( + "Insert failed. Duplicate name {} found in namespace {}", + id, ns + )); } else { let mut new_ns = Namespace::new(); new_ns.insert(id, exp);