Use is_empty() instead of comparing len() with 0.

https://github.com/rust-lang-nursery/rust-clippy/wiki#len_zero
This commit is contained in:
Dan Gohman
2017-08-31 11:40:18 -07:00
parent adfdd77311
commit abbc6ddf24

View File

@@ -530,7 +530,7 @@ where
fn ebb_args_adjustement(&mut self, dest_ebb: Ebb, jump_args: &[Type]) {
let ty_to_append: Option<Vec<Type>> =
if self.builder.ssa.predecessors(dest_ebb).len() == 0 ||
if self.builder.ssa.predecessors(dest_ebb).is_empty() ||
self.builder.ebbs[dest_ebb].pristine
{
// This is the first jump instruction targeting this Ebb