From 4076e2a18b535058db4b429c3a8ad3f6529cf167 Mon Sep 17 00:00:00 2001 From: Filipe Rodrigues Date: Thu, 22 Apr 2021 20:08:58 +0100 Subject: [PATCH] Added `clippy::if_not_else` to allowed lints. --- dcb-bytes/src/lib.rs | 2 +- dcb-cdrom-xa/src/lib.rs | 2 +- dcb-drv/src/lib.rs | 2 +- dcb-exe/src/lib.rs | 2 +- dcb-io/src/lib.rs | 2 +- dcb-iso9660/src/lib.rs | 2 +- dcb-pak/src/lib.rs | 2 +- dcb-util/src/lib.rs | 2 +- dcb/src/lib.rs | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dcb-bytes/src/lib.rs b/dcb-bytes/src/lib.rs index 6359cb4..7275633 100644 --- a/dcb-bytes/src/lib.rs +++ b/dcb-bytes/src/lib.rs @@ -44,7 +44,7 @@ // We're fine with shadowing, as long as it's related #![allow(clippy::shadow_reuse, clippy::shadow_same)] // Matching on booleans can look better than `if / else` -#![allow(clippy::match_bool, clippy::single_match_else)] +#![allow(clippy::match_bool, clippy::single_match_else, clippy::if_not_else)] // If the `else` isn't needed, we don't put it #![allow(clippy::else_if_without_else)] // We're fine with non-exhaustive structs / enums, we aren't committing to them yet. diff --git a/dcb-cdrom-xa/src/lib.rs b/dcb-cdrom-xa/src/lib.rs index 5489e05..6e96cd2 100644 --- a/dcb-cdrom-xa/src/lib.rs +++ b/dcb-cdrom-xa/src/lib.rs @@ -43,7 +43,7 @@ // We're fine with shadowing, as long as it's related #![allow(clippy::shadow_reuse, clippy::shadow_same)] // Matching on booleans can look better than `if / else` -#![allow(clippy::match_bool, clippy::single_match_else)] +#![allow(clippy::match_bool, clippy::single_match_else, clippy::if_not_else)] // If the `else` isn't needed, we don't put it #![allow(clippy::else_if_without_else)] // We're fine with non-exhaustive structs / enums, we aren't committing to them yet. diff --git a/dcb-drv/src/lib.rs b/dcb-drv/src/lib.rs index 2a4b60b..d76e2b6 100644 --- a/dcb-drv/src/lib.rs +++ b/dcb-drv/src/lib.rs @@ -53,7 +53,7 @@ // We're fine with shadowing, as long as it's related #![allow(clippy::shadow_reuse, clippy::shadow_same)] // Matching on booleans can look better than `if / else` -#![allow(clippy::match_bool, clippy::single_match_else)] +#![allow(clippy::match_bool, clippy::single_match_else, clippy::if_not_else)] // If the `else` isn't needed, we don't put it #![allow(clippy::else_if_without_else)] // We're fine with non-exhaustive structs / enums, we aren't committing to them yet. diff --git a/dcb-exe/src/lib.rs b/dcb-exe/src/lib.rs index ea43dea..dcb3983 100644 --- a/dcb-exe/src/lib.rs +++ b/dcb-exe/src/lib.rs @@ -62,7 +62,7 @@ // We're fine with shadowing, as long as it's related #![allow(clippy::shadow_reuse, clippy::shadow_same)] // Matching on booleans can look better than `if / else` -#![allow(clippy::match_bool, clippy::single_match_else)] +#![allow(clippy::match_bool, clippy::single_match_else, clippy::if_not_else)] // If the `else` isn't needed, we don't put it #![allow(clippy::else_if_without_else)] // We're fine with non-exhaustive structs / enums, we aren't committing to them yet. diff --git a/dcb-io/src/lib.rs b/dcb-io/src/lib.rs index 6f2823a..c67b71a 100644 --- a/dcb-io/src/lib.rs +++ b/dcb-io/src/lib.rs @@ -57,7 +57,7 @@ // We're fine with shadowing, as long as it's related #![allow(clippy::shadow_reuse, clippy::shadow_same)] // Matching on booleans can look better than `if / else` -#![allow(clippy::match_bool, clippy::single_match_else)] +#![allow(clippy::match_bool, clippy::single_match_else, clippy::if_not_else)] // If the `else` isn't needed, we don't put it #![allow(clippy::else_if_without_else)] // We're fine with non-exhaustive structs / enums, we aren't committing to them yet. diff --git a/dcb-iso9660/src/lib.rs b/dcb-iso9660/src/lib.rs index 1ab7a3c..b6ddee6 100644 --- a/dcb-iso9660/src/lib.rs +++ b/dcb-iso9660/src/lib.rs @@ -51,7 +51,7 @@ // We're fine with shadowing, as long as it's related #![allow(clippy::shadow_reuse, clippy::shadow_same)] // Matching on booleans can look better than `if / else` -#![allow(clippy::match_bool, clippy::single_match_else)] +#![allow(clippy::match_bool, clippy::single_match_else, clippy::if_not_else)] // If the `else` isn't needed, we don't put it #![allow(clippy::else_if_without_else)] // We're fine with non-exhaustive structs / enums, we aren't committing to them yet. diff --git a/dcb-pak/src/lib.rs b/dcb-pak/src/lib.rs index 336ede6..e31463a 100644 --- a/dcb-pak/src/lib.rs +++ b/dcb-pak/src/lib.rs @@ -52,7 +52,7 @@ // We're fine with shadowing, as long as it's related #![allow(clippy::shadow_reuse, clippy::shadow_same)] // Matching on booleans can look better than `if / else` -#![allow(clippy::match_bool, clippy::single_match_else)] +#![allow(clippy::match_bool, clippy::single_match_else, clippy::if_not_else)] // If the `else` isn't needed, we don't put it #![allow(clippy::else_if_without_else)] // We're fine with non-exhaustive structs / enums, we aren't committing to them yet. diff --git a/dcb-util/src/lib.rs b/dcb-util/src/lib.rs index b4795d1..8d76aaf 100644 --- a/dcb-util/src/lib.rs +++ b/dcb-util/src/lib.rs @@ -43,7 +43,7 @@ // We're fine with shadowing, as long as it's related #![allow(clippy::shadow_reuse, clippy::shadow_same)] // Matching on booleans can look better than `if / else` -#![allow(clippy::match_bool, clippy::single_match_else)] +#![allow(clippy::match_bool, clippy::single_match_else, clippy::if_not_else)] // If the `else` isn't needed, we don't put it #![allow(clippy::else_if_without_else)] // We're fine with non-exhaustive structs / enums, we aren't committing to them yet. diff --git a/dcb/src/lib.rs b/dcb/src/lib.rs index 6cb2a91..0bbe0e9 100644 --- a/dcb/src/lib.rs +++ b/dcb/src/lib.rs @@ -64,7 +64,7 @@ // We're fine with shadowing, as long as it's related #![allow(clippy::shadow_reuse, clippy::shadow_same)] // Matching on booleans can look better than `if / else` -#![allow(clippy::match_bool, clippy::single_match_else)] +#![allow(clippy::match_bool, clippy::single_match_else, clippy::if_not_else)] // If the `else` isn't needed, we don't put it #![allow(clippy::else_if_without_else)] // We're fine with non-exhaustive structs / enums, we aren't committing to them yet.