Fix clippy warnings.

This commit fixes the current set of (stable) clippy warnings in the repo.
This commit is contained in:
Peter Huene
2019-10-23 23:15:42 -07:00
committed by Andrew Brown
parent 1176e4f178
commit 9f506692c2
93 changed files with 667 additions and 662 deletions

View File

@@ -230,7 +230,7 @@ fn try_fold_redundant_jump(
let arguments_vec: alloc::vec::Vec<_> = first_args
.iter()
.chain(second_params.iter())
.map(|x| *x)
.copied()
.collect();
let value_list = ValueList::from_slice(&arguments_vec, &mut func.dfg.value_lists);
@@ -255,7 +255,7 @@ fn try_fold_redundant_jump(
func.layout.remove_ebb(first_dest); // ...from the layout.
}
return true;
true
}
/// Redirects `jump` instructions that point to other `jump` instructions to the final destination.