Fix debug print for GlobalRuntimeStates.
@@ -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()
}
}
