Clippy fixes (#692)

This commit is contained in:
XAMPPRocky
2019-12-24 20:50:07 +00:00
committed by Dan Gohman
parent 6c97cfed1e
commit 907e7aac01
35 changed files with 390 additions and 417 deletions

View File

@@ -67,10 +67,10 @@ impl RangeInfoBuilder {
result.push((range.begin, range.end));
}
Ok(if result.len() > 0 {
RangeInfoBuilder::Ranges(result)
} else {
Ok(if result.is_empty() {
RangeInfoBuilder::Undefined
} else {
RangeInfoBuilder::Ranges(result)
})
}