mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-03 18:29:04 +00:00
Fix manual_flatten Clippy warning
This commit is contained in:
parent
1ab3589844
commit
5d639cc8de
1 changed files with 2 additions and 4 deletions
|
@ -1074,10 +1074,8 @@ impl SymbolTableBuilder {
|
|||
) -> SymbolTableResult {
|
||||
// Evaluate eventual default parameters:
|
||||
self.scan_expressions(&args.defaults, ExpressionContext::Load)?;
|
||||
for kw_default in &args.kw_defaults {
|
||||
if let Some(expression) = kw_default {
|
||||
self.scan_expression(&expression, ExpressionContext::Load)?;
|
||||
}
|
||||
for expression in args.kw_defaults.iter().flatten() {
|
||||
self.scan_expression(&expression, ExpressionContext::Load)?;
|
||||
}
|
||||
|
||||
// Annotations are scanned in outer scope:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue