Ignore bodies containing todo!() in clippy::if_same_then_else
This commit is contained in:
parent
844c06a7c7
commit
9306e9a4df
2 changed files with 20 additions and 1 deletions
|
|
@ -126,6 +126,9 @@ fn if_same_then_else() {
|
|||
_ => 4,
|
||||
};
|
||||
}
|
||||
|
||||
// Issue #8836
|
||||
if true { todo!() } else { todo!() }
|
||||
}
|
||||
|
||||
// Issue #2423. This was causing an ICE.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue