Fix builds.
This commit is contained in:
parent
efd57c600b
commit
ea6c264f5f
@ -263,14 +263,23 @@ impl<K: Into<Identifier>, M: Into<Shared<Module>>> Extend<(K, M)> for GlobalRunt
|
|||||||
|
|
||||||
impl fmt::Debug for GlobalRuntimeState {
|
impl fmt::Debug for GlobalRuntimeState {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
f.debug_struct("GlobalRuntimeState")
|
let mut f = f.debug_struct("GlobalRuntimeState");
|
||||||
.field("imports", &self.keys.iter().zip(self.modules.iter()))
|
|
||||||
|
f.field("imports", &self.keys.iter().zip(self.modules.iter()))
|
||||||
.field("source", &self.source)
|
.field("source", &self.source)
|
||||||
.field("num_operations", &self.num_operations)
|
.field("num_operations", &self.num_operations)
|
||||||
.field("num_modules_loaded", &self.num_modules_loaded)
|
.field("num_modules_loaded", &self.num_modules_loaded);
|
||||||
.field("fn_hash_indexing", &self.fn_hash_indexing)
|
|
||||||
.field("embedded_module_resolver", &self.embedded_module_resolver)
|
#[cfg(any(not(feature = "no_index"), not(feature = "no_object")))]
|
||||||
.field("constants", &self.constants)
|
f.field("fn_hash_indexing", &self.fn_hash_indexing);
|
||||||
.finish()
|
|
||||||
|
#[cfg(not(feature = "no_module"))]
|
||||||
|
f.field("embedded_module_resolver", &self.embedded_module_resolver);
|
||||||
|
|
||||||
|
#[cfg(not(feature = "no_module"))]
|
||||||
|
#[cfg(not(feature = "no_function"))]
|
||||||
|
f.field("constants", &self.constants);
|
||||||
|
|
||||||
|
f.finish()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user