mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-08 05:35:22 +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())
|
||||
.partition(|(k, _)| k.is_some());
|
||||
for (key, value) in packed {
|
||||
self.compile_expression(&key.as_ref().unwrap())?;
|
||||
self.compile_expression(key.as_ref().unwrap())?;
|
||||
self.compile_expression(value)?;
|
||||
size += 1;
|
||||
}
|
||||
|
|
|
@ -890,7 +890,7 @@ impl SymbolTableBuilder {
|
|||
.zip(values.iter())
|
||||
.partition(|(key, _)| key.is_some());
|
||||
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)?;
|
||||
}
|
||||
for (_, value) in unpacked {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue