Skip to content

Commit

Permalink
Fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
schungx committed Feb 8, 2024
1 parent 6c8ba84 commit 450c73a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3835,15 +3835,15 @@ impl Engine {
state.external_constants,
statements,
#[cfg(not(feature = "no_function"))]
state.lib.values().cloned().collect(),
std::mem::take(state.lib).into_values().collect(),
_optimization_level,
));

#[cfg(feature = "no_optimize")]
return Ok(AST::new(
statements,
#[cfg(not(feature = "no_function"))]
crate::Module::from(state.lib.values().cloned().collect()),
crate::Module::from(std::mem::take(state.lib).into_values()),
));
}

Expand Down

0 comments on commit 450c73a

Please sign in to comment.