mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-30 15:18:02 +00:00
Fix clippy errors
This commit is contained in:
parent
cb3578dbf2
commit
f8ae56c75b
2 changed files with 2 additions and 2 deletions
|
@ -1997,7 +1997,7 @@ impl Compiler {
|
||||||
.zip(values.iter())
|
.zip(values.iter())
|
||||||
.partition(|(k, _)| k.is_some());
|
.partition(|(k, _)| k.is_some());
|
||||||
for (key, value) in packed {
|
for (key, value) in packed {
|
||||||
self.compile_expression(&key.as_ref().unwrap())?;
|
self.compile_expression(key.as_ref().unwrap())?;
|
||||||
self.compile_expression(value)?;
|
self.compile_expression(value)?;
|
||||||
size += 1;
|
size += 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -890,7 +890,7 @@ impl SymbolTableBuilder {
|
||||||
.zip(values.iter())
|
.zip(values.iter())
|
||||||
.partition(|(key, _)| key.is_some());
|
.partition(|(key, _)| key.is_some());
|
||||||
for (key, value) in packed {
|
for (key, value) in packed {
|
||||||
self.scan_expression(&key.as_ref().unwrap(), context)?;
|
self.scan_expression(key.as_ref().unwrap(), context)?;
|
||||||
self.scan_expression(value, context)?;
|
self.scan_expression(value, context)?;
|
||||||
}
|
}
|
||||||
for (_, value) in unpacked {
|
for (_, value) in unpacked {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue