mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-30 21:01:10 +00:00
Fix warnings
Fix warnings
This commit is contained in:
parent
cfac1128bc
commit
561a384014
9 changed files with 17 additions and 15 deletions
|
@ -2140,6 +2140,7 @@ impl PyCodeGenerator {
|
|||
}
|
||||
let kwsc = if !kws.is_empty() {
|
||||
self.emit_call_kw_instr(argc, kws);
|
||||
#[allow(clippy::bool_to_int_with_if)]
|
||||
if self.py_version.minor >= Some(11) {
|
||||
0
|
||||
} else {
|
||||
|
@ -2696,7 +2697,7 @@ impl PyCodeGenerator {
|
|||
self.py_version,
|
||||
params,
|
||||
Str::rc(self.cfg.input.enclosed_name()),
|
||||
&name,
|
||||
name,
|
||||
firstlineno,
|
||||
));
|
||||
let idx_copy_free_vars = if self.py_version.minor >= Some(11) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue