From aebeb39685cdf6f1592cb6644f994ac1092898c8 Mon Sep 17 00:00:00 2001 From: Hernando Castano Date: Sun, 9 Jan 2022 17:32:58 -0800 Subject: [PATCH] Allow `clippy::nonminimal_bool` for `deploy()` --- crates/lang/codegen/src/generator/dispatch.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/lang/codegen/src/generator/dispatch.rs b/crates/lang/codegen/src/generator/dispatch.rs index 6a2535f2ce1..c9ba20f4972 100644 --- a/crates/lang/codegen/src/generator/dispatch.rs +++ b/crates/lang/codegen/src/generator/dispatch.rs @@ -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>()