diff --git a/src/compile.rs b/src/compile.rs index 29a876f..8f88965 100644 --- a/src/compile.rs +++ b/src/compile.rs @@ -1551,8 +1551,6 @@ impl Compiler { self.set_source_location(expression.location); use ast::ExpressionType::*; - #[allow(unused_imports)] // not unused, overrides ast::ExpressionType::None - use Option::None; match &expression.node { Call { function, @@ -1647,7 +1645,7 @@ impl Compiler { self.mark_generator(); match value { Some(expression) => self.compile_expression(expression)?, - None => self.emit(Instruction::LoadConst { + Option::None => self.emit(Instruction::LoadConst { value: bytecode::Constant::None, }), };