Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark McCaskey committed Mar 23, 2019
1 parent 5e39a7b commit d037c5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/runtime-core/src/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d037c5f

Please sign in to comment.