Fix builds.

This commit is contained in:
Stephen Chung
2021-04-04 15:06:13 +08:00
parent e6c878edf3
commit 20aaf1826a
7 changed files with 25 additions and 22 deletions

View File

@@ -140,6 +140,7 @@ fn main() {
// Set a file module resolver without caching
#[cfg(not(feature = "no_module"))]
#[cfg(not(feature = "no_std"))]
{
let mut resolver = rhai::module_resolvers::FileModuleResolver::new();
resolver.enable_cache(false);