From 170719180aea8c440e471adf0dedff766d4614d3 Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Fri, 13 Mar 2020 08:16:27 -0500 Subject: [PATCH] Apply review comments --- src/compile.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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, }), };