Skip to content

Commit

Permalink
Clean replace two cfg-feature checks with one
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Saunders <[email protected]>
  • Loading branch information
wlinna and Ralith authored May 1, 2024
1 parent 71ebce2 commit ea29ba5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/query/point/point_composite_shape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ impl PointQuery for TriMesh {
return (proj, feature_id);
}

#[cfg(feature = "dim3")]
let solid = false;
#[cfg(feature = "dim2")]
let solid = true;
let solid = cfg!(feature = "dim2");

let mut visitor =
PointCompositeShapeProjWithFeatureBestFirstVisitor::new(self, point, solid);
Expand Down

0 comments on commit ea29ba5

Please sign in to comment.