Fix clippy suggestions from Rust 1.54
This commit is contained in:
parent
9ea727cdb8
commit
f7c00b741c
|
@ -442,7 +442,7 @@ impl<'a, P: Point> Construction<'a, P> {
|
||||||
|
|
||||||
let point = &self.points[new];
|
let point = &self.points[new];
|
||||||
search.reset();
|
search.reset();
|
||||||
search.push(PointId(0), point, &self.points);
|
search.push(PointId(0), point, self.points);
|
||||||
let num = if layer.is_zero() { M * 2 } else { M };
|
let num = if layer.is_zero() { M * 2 } else { M };
|
||||||
|
|
||||||
for cur in self.top.descend() {
|
for cur in self.top.descend() {
|
||||||
|
@ -453,11 +453,11 @@ impl<'a, P: Point> Construction<'a, P> {
|
||||||
};
|
};
|
||||||
match cur > layer {
|
match cur > layer {
|
||||||
true => {
|
true => {
|
||||||
search.search(point, layers[cur.0 - 1].as_slice(), &self.points, num);
|
search.search(point, layers[cur.0 - 1].as_slice(), self.points, num);
|
||||||
search.cull();
|
search.cull();
|
||||||
}
|
}
|
||||||
false => {
|
false => {
|
||||||
search.search(point, self.zero, &self.points, num);
|
search.search(point, self.zero, self.points, num);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue