mirror of
https://github.com/RustPython/Parser.git
synced 2025-09-20 00:59:48 +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 {
|
) -> SymbolTableResult {
|
||||||
// Evaluate eventual default parameters:
|
// Evaluate eventual default parameters:
|
||||||
self.scan_expressions(&args.defaults, ExpressionContext::Load)?;
|
self.scan_expressions(&args.defaults, ExpressionContext::Load)?;
|
||||||
for kw_default in &args.kw_defaults {
|
for expression in args.kw_defaults.iter().flatten() {
|
||||||
if let Some(expression) = kw_default {
|
self.scan_expression(&expression, ExpressionContext::Load)?;
|
||||||
self.scan_expression(&expression, ExpressionContext::Load)?;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Annotations are scanned in outer scope:
|
// Annotations are scanned in outer scope:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue