Fix debug print for GlobalRuntimeStates.
This commit is contained in:
parent
683cf31de2
commit
1e0d46fc13
@ -263,9 +263,14 @@ impl<K: Into<Identifier>, M: Into<Shared<Module>>> Extend<(K, M)> for GlobalRunt
|
||||
|
||||
impl fmt::Debug for GlobalRuntimeState {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.write_str("Imports")?;
|
||||
f.debug_map()
|
||||
.entries(self.keys.iter().zip(self.modules.iter()))
|
||||
f.debug_struct("GlobalRuntimeState")
|
||||
.field("imports", &self.keys.iter().zip(self.modules.iter()))
|
||||
.field("source", &self.source)
|
||||
.field("num_operations", &self.num_operations)
|
||||
.field("num_modules_loaded", &self.num_modules_loaded)
|
||||
.field("fn_hash_indexing", &self.fn_hash_indexing)
|
||||
.field("embedded_module_resolver", &self.embedded_module_resolver)
|
||||
.field("constants", &self.constants)
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user