Skip to content

Commit 6498d79

Browse files
committed
Fix clippy maybe?
1 parent a6f7bb8 commit 6498d79

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

vm/src/function.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

vm/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
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)]

0 commit comments

Comments
 (0)