Skip to content

Commit

Permalink
Apply new cargo format.
Browse files Browse the repository at this point in the history
  • Loading branch information
n3vu0r committed Oct 25, 2023
1 parent 14fa6a0 commit 3c9b3da
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/enclosing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,16 @@ pub trait Enclosing<R: RealField, const D: usize>: Clone {
bounds: &mut ArrayVec<Point<R, D>, { D + 1 }>,
) -> Option<Self> {
// Take point from back.
if let Some(point) = points.pop_back() && !bounds.is_full() {
if let Some(point) = points.pop_back()
&& !bounds.is_full()
{
let ball = maybe_grow(Self::RED_ZONE, Self::STACK_SIZE, || {
// Branch with one point less.
Self::enclosing_points_with_bounds(points, bounds)
});
if let Some(ball) = ball && ball.contains(&point) {
if let Some(ball) = ball
&& ball.contains(&point)
{
// Move point to back.
points.push_back(point);
Some(ball)
Expand Down

0 comments on commit 3c9b3da

Please sign in to comment.