mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-13 16:15:16 +00:00
Merge pull request #1114 from mkurnikov/fix-clippy-1.36
Enable clippy in CI
This commit is contained in:
commit
5973ef9a41
1 changed files with 10 additions and 12 deletions
|
@ -301,8 +301,7 @@ impl SymbolTableBuilder {
|
|||
if let Some(alias) = &part.alias {
|
||||
// `import mymodule as myalias`
|
||||
self.register_name(alias, SymbolRole::Assigned)?;
|
||||
} else {
|
||||
if part.symbols.is_empty() {
|
||||
} else if part.symbols.is_empty() {
|
||||
// `import module`
|
||||
self.register_name(&part.module, SymbolRole::Assigned)?;
|
||||
} else {
|
||||
|
@ -318,7 +317,6 @@ impl SymbolTableBuilder {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
ast::Statement::Return { value } => {
|
||||
if let Some(expression) = value {
|
||||
self.scan_expression(expression)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue