Fix Clippy warnings

This commit is contained in:
Mateusz Mikuła
2019-05-10 12:01:02 +02:00
parent 30f6a9c323
commit 7597c082e7
20 changed files with 115 additions and 126 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ fn heapify(
// we start at the last parent in the heap (the parent of the last child)
let last_parent = (nel - 2) / 2;
for start in (0..last_parent + 1).rev() {
for start in (0..=last_parent).rev() {
heap_sift_down(base, start, nel - 1, width, comp);
}
}