Apply suggestions from code review

Co-authored-by: Fridtjof Stoldt <xFrednet@gmail.com>
This commit is contained in:
Devon Hollowood 2021-10-26 13:55:51 -07:00 committed by GitHub
parent 6c89c00a98
commit 5733c754d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,14 +7,12 @@
#![allow(clippy::new_without_default)] #![allow(clippy::new_without_default)]
#![allow(clippy::redundant_static_lifetimes)] #![allow(clippy::redundant_static_lifetimes)]
#![allow(clippy::bind_instead_of_map)] #![allow(clippy::bind_instead_of_map)]
#![allow(clippy::block_in_if_condition_expr)]
#![allow(clippy::block_in_if_condition_stmt)]
#![allow(clippy::box_collection)] #![allow(clippy::box_collection)]
#![allow(clippy::blocks_in_if_conditions)] #![allow(clippy::blocks_in_if_conditions)]
#![allow(clippy::map_unwrap_or)] #![allow(clippy::map_unwrap_or)]
#![allow(clippy::unwrap_used)] #![allow(clippy::unwrap_used)]
#![allow(clippy::expect_used)] #![allow(clippy::expect_used)]
#![allow(clippy::for_loop_over_fallibles)] #![allow(clippy::for_loops_over_fallibles)]
#![allow(clippy::useless_conversion)] #![allow(clippy::useless_conversion)]
#![allow(clippy::invisible_characters)] #![allow(clippy::invisible_characters)]
#![allow(clippy::single_char_add_str)] #![allow(clippy::single_char_add_str)]
@ -34,9 +32,10 @@
#![warn(clippy::new_without_default_derive)] #![warn(clippy::new_without_default_derive)]
#![warn(clippy::const_static_lifetime)] #![warn(clippy::const_static_lifetime)]
#![warn(clippy::cyclomatic_complexity)] #![warn(clippy::cyclomatic_complexity)]
#![warn(clippy::mem_discriminant_non_enum)]
#![warn(clippy::option_and_then_some)] #![warn(clippy::option_and_then_some)]
#![warn(clippy::box_vec)] #![warn(clippy::box_vec)]
#![warn(clippy::block_in_if_condition_expr)]
#![warn(clippy::block_in_if_condition_stmt)]
#![warn(clippy::option_map_unwrap_or)] #![warn(clippy::option_map_unwrap_or)]
#![warn(clippy::option_map_unwrap_or_else)] #![warn(clippy::option_map_unwrap_or_else)]
#![warn(clippy::result_map_unwrap_or_else)] #![warn(clippy::result_map_unwrap_or_else)]