rust: remove collapsible-if
Example:
93 | /     if is_initialized {
94 | |         if !unlock::unlock_keystore("Unlock device").await {
95 | |             return Err(Error::COMMANDER_ERR_GENERIC);
96 | |         }
97 | |     }
Of course `if is_initialized && !unlock::unlock_keystore("Unlock
device").await` also works, but sometimes I prefer the other style,
not relying on the short-circuiting of &&.
@@ -436,6 +436,7 @@ if(NOT CMAKE_CROSSCOMPILING)
-A clippy::iter_nth_zero
-A clippy::redundant_clone
-A clippy::type_complexity
+ -A clippy::collapsible-if
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/rust/
)
add_dependencies(rust-clippy rust-bindgen)
