mirror of
https://github.com/fluencelabs/wasmer
synced 2025-03-16 16:20:49 +00:00
fmt
This commit is contained in:
parent
5e39a7b3d9
commit
d037c5fdbb
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user