Skip to content

Commit

Permalink
Fix lazy_mode flag check
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaAmora committed Feb 26, 2024
1 parent 6ad080b commit 3c4f0db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ impl CompileOpts {
// Disable optimizations that don't work or are unnecessary on lazy mode
pub fn lazy_mode(&mut self) {
self.lift_combinators = false;
if let OptLevel::Extra = self.linearize_matches {
if self.linearize_matches.is_extra() {
self.linearize_matches = OptLevel::Enabled;
}
self.pre_reduce = false;
Expand Down

0 comments on commit 3c4f0db

Please sign in to comment.