From ea29ba519a5b2c706e265503c114973eb9cc9d98 Mon Sep 17 00:00:00 2001 From: William Linna Date: Wed, 1 May 2024 23:00:07 +0300 Subject: [PATCH] Clean replace two cfg-feature checks with one Co-authored-by: Benjamin Saunders --- src/query/point/point_composite_shape.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/query/point/point_composite_shape.rs b/src/query/point/point_composite_shape.rs index 1f2d8e26..8ddcf5b2 100644 --- a/src/query/point/point_composite_shape.rs +++ b/src/query/point/point_composite_shape.rs @@ -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);