Renaming the lint to branches_sharing_code and fixing typos
This commit is contained in:
parent
7c9e192e05
commit
a6f54f5dfd
22 changed files with 71 additions and 69 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#![deny(clippy::panicking_unwrap, clippy::unnecessary_unwrap)]
|
||||
#![allow(clippy::if_same_then_else, clippy::shared_code_in_if_blocks)]
|
||||
#![allow(clippy::if_same_then_else, clippy::branches_sharing_code)]
|
||||
|
||||
fn test_complex_conditions() {
|
||||
let x: Result<(), ()> = Ok(());
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#![deny(clippy::panicking_unwrap, clippy::unnecessary_unwrap)]
|
||||
#![allow(clippy::if_same_then_else, clippy::shared_code_in_if_blocks)]
|
||||
#![allow(clippy::if_same_then_else, clippy::branches_sharing_code)]
|
||||
|
||||
fn test_nested() {
|
||||
fn nested() {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#![deny(clippy::panicking_unwrap, clippy::unnecessary_unwrap)]
|
||||
#![allow(clippy::if_same_then_else, clippy::shared_code_in_if_blocks)]
|
||||
#![allow(clippy::if_same_then_else, clippy::branches_sharing_code)]
|
||||
|
||||
macro_rules! m {
|
||||
($a:expr) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue