File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -196,10 +196,9 @@ impl FuncArgs {
196196 T :: arity( ) . end( ) ,
197197 given_args,
198198 ) ) )
199+ } else if let Some ( err) = self . check_kwargs_empty ( vm) {
200+ Err ( err)
199201 } else {
200- if let Some ( err) = self . check_kwargs_empty ( vm) {
201- return Err ( err) ;
202- }
203202 Ok ( bound)
204203 }
205204 }
Original file line number Diff line number Diff line change 77
88// for methods like vm.to_str(), not the typical use of 'to' as a method prefix
99#![ allow( clippy:: wrong_self_convention, clippy:: implicit_hasher) ]
10- // clippy warns on this for macro generated code rust-clippy/issues/6249
11- #![ allow( clippy:: suspicious_else_formatting) ]
1210// to allow `mod foo {}` in foo.rs; clippy thinks this is a mistake/misunderstanding of
1311// how `mod` works, but we want this sometimes for pymodule declarations
1412#![ allow( clippy:: module_inception) ]
You can’t perform that action at this time.
0 commit comments