mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-15 00:55:22 +00:00
Apply review comments
This commit is contained in:
parent
7d6d5ff907
commit
170719180a
1 changed files with 1 additions and 3 deletions
|
@ -1551,8 +1551,6 @@ impl<O: OutputStream> Compiler<O> {
|
||||||
self.set_source_location(expression.location);
|
self.set_source_location(expression.location);
|
||||||
|
|
||||||
use ast::ExpressionType::*;
|
use ast::ExpressionType::*;
|
||||||
#[allow(unused_imports)] // not unused, overrides ast::ExpressionType::None
|
|
||||||
use Option::None;
|
|
||||||
match &expression.node {
|
match &expression.node {
|
||||||
Call {
|
Call {
|
||||||
function,
|
function,
|
||||||
|
@ -1647,7 +1645,7 @@ impl<O: OutputStream> Compiler<O> {
|
||||||
self.mark_generator();
|
self.mark_generator();
|
||||||
match value {
|
match value {
|
||||||
Some(expression) => self.compile_expression(expression)?,
|
Some(expression) => self.compile_expression(expression)?,
|
||||||
None => self.emit(Instruction::LoadConst {
|
Option::None => self.emit(Instruction::LoadConst {
|
||||||
value: bytecode::Constant::None,
|
value: bytecode::Constant::None,
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue