engine(module_resolver): Fix build for no_std

This commit is contained in:
KokaKiwi 2020-12-30 14:58:34 +01:00
parent 253e43da30
commit a08544c019
No known key found for this signature in database
GPG Key ID: 09A5A2688F13FAC1

View File

@ -785,7 +785,7 @@ impl Engine {
module_resolver: Box::new(crate::module::resolvers::FileModuleResolver::new()), module_resolver: Box::new(crate::module::resolvers::FileModuleResolver::new()),
#[cfg(not(feature = "no_module"))] #[cfg(not(feature = "no_module"))]
#[cfg(any(feature = "no_std", target_arch = "wasm32",))] #[cfg(any(feature = "no_std", target_arch = "wasm32",))]
module_resolver: None, module_resolver: Box::new(crate::module::resolvers::DummyModuleResolver::new()),
type_names: Default::default(), type_names: Default::default(),
disabled_symbols: Default::default(), disabled_symbols: Default::default(),