Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
schungx committed Nov 27, 2023
1 parent c834484 commit 12e9cd5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/api/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::func::native::locked_write;
use crate::parser::{ParseSettingFlags, ParseState};
use crate::tokenizer::{lex_raw, Token};
use crate::types::StringsInterner;
use crate::{Engine, LexError, Map, OptimizationLevel, RhaiResultOf};
use crate::{Engine, LexError, Map, RhaiResultOf};
#[cfg(feature = "no_std")]
use std::prelude::v1::*;

Expand Down Expand Up @@ -134,7 +134,7 @@ impl Engine {
state,
|s| s.flags |= ParseSettingFlags::DISALLOW_UNQUOTED_MAP_PROPERTIES,
#[cfg(not(feature = "no_optimize"))]
OptimizationLevel::None,
crate::OptimizationLevel::None,
#[cfg(feature = "no_optimize")]
<_>::default(),
)?
Expand Down
5 changes: 4 additions & 1 deletion src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,10 @@ impl Engine {
.global_modules
.iter()
.filter(|&m| m.count().1 > 0)
.count()
.count();

#[cfg(not(feature = "no_module"))]
let num_modules = num_modules
+ self
.global_sub_modules
.values()
Expand Down
1 change: 0 additions & 1 deletion src/func/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ impl Engine {

if let Some(Entry::Occupied(entry)) = entry {
// Found in cache
println!("Found function in cache!");
return entry.into_mut().as_ref();
}

Expand Down

0 comments on commit 12e9cd5

Please sign in to comment.