Fix clippy maybe?

This commit is contained in:
carbotaniuman
2020-11-14 13:11:47 -06:00
parent a6f7bb8845
commit 6498d7922d
2 changed files with 2 additions and 5 deletions

View File

@@ -196,10 +196,9 @@ impl FuncArgs {
T::arity().end(),
given_args,
)))
} else if let Some(err) = self.check_kwargs_empty(vm) {
Err(err)
} else {
if let Some(err) = self.check_kwargs_empty(vm) {
return Err(err);
}
Ok(bound)
}
}

View File

@@ -7,8 +7,6 @@
// for methods like vm.to_str(), not the typical use of 'to' as a method prefix
#![allow(clippy::wrong_self_convention, clippy::implicit_hasher)]
// clippy warns on this for macro generated code rust-clippy/issues/6249
#![allow(clippy::suspicious_else_formatting)]
// to allow `mod foo {}` in foo.rs; clippy thinks this is a mistake/misunderstanding of
// how `mod` works, but we want this sometimes for pymodule declarations
#![allow(clippy::module_inception)]