mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 16:39:26 +00:00
uncomment code that was commented out for testing
This commit is contained in:
parent
1ba8ed96cf
commit
2e63a5648a
1 changed files with 12 additions and 12 deletions
|
@ -122,22 +122,22 @@ fn if_same_then_else() -> Result<&'static str, ()> {
|
||||||
if true {
|
if true {
|
||||||
//~^NOTE same as this
|
//~^NOTE same as this
|
||||||
for _ in &[42] {
|
for _ in &[42] {
|
||||||
// let foo: &Option<_> = &Some::<u8>(42);
|
let foo: &Option<_> = &Some::<u8>(42);
|
||||||
// if true {
|
if true {
|
||||||
// break;
|
break;
|
||||||
// } else {
|
} else {
|
||||||
// continue;
|
continue;
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else { //~ERROR this `if` has identical blocks
|
else { //~ERROR this `if` has identical blocks
|
||||||
for _ in &[42] {
|
for _ in &[42] {
|
||||||
// let foo: &Option<_> = &Some::<u8>(42);
|
let foo: &Option<_> = &Some::<u8>(42);
|
||||||
// if true {
|
if true {
|
||||||
// break;
|
break;
|
||||||
// } else {
|
} else {
|
||||||
// continue;
|
continue;
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue