Skip to content

Commit

Permalink
Allow clippy::nonminimal_bool for deploy()
Browse files Browse the repository at this point in the history
  • Loading branch information
HCastano committed Jan 10, 2022
1 parent c72a352 commit aebeb39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/lang/codegen/src/generator/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ impl Dispatch<'_> {
quote_spanned!(span=>
#[cfg(not(test))]
#[no_mangle]
#[allow(clippy::nonminimal_bool)]
fn deploy() {
if !#any_constructor_accept_payment {
::ink_lang::codegen::deny_payment::<<#storage_ident as ::ink_lang::reflect::ContractEnv>::Env>()
Expand Down

0 comments on commit aebeb39

Please sign in to comment.