mirror of
https://github.com/fluencelabs/wasmer
synced 2025-05-04 14:52:14 +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();
|
let mut map = self.map.borrow_mut();
|
||||||
for (ns, id, exp) in iter.into_iter() {
|
for (ns, id, exp) in iter.into_iter() {
|
||||||
if let Some(like_ns) = map.get_mut(&ns) {
|
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 {
|
} else {
|
||||||
let mut new_ns = Namespace::new();
|
let mut new_ns = Namespace::new();
|
||||||
new_ns.insert(id, exp);
|
new_ns.insert(id, exp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user