From 949e3f5384a366c3bff5415c5db4635e811a580e Mon Sep 17 00:00:00 2001 From: Crozet Sébastien Date: Tue, 20 Oct 2020 16:22:53 +0200 Subject: Fix many warnings. --- src/geometry/rounded.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/geometry/rounded.rs') diff --git a/src/geometry/rounded.rs b/src/geometry/rounded.rs index 59c6a72..ce3fc96 100644 --- a/src/geometry/rounded.rs +++ b/src/geometry/rounded.rs @@ -1,4 +1,6 @@ -use crate::geometry::{Cylinder, ShapeType}; +#[cfg(feature = "dim3")] +use crate::geometry::Cylinder; +use crate::geometry::ShapeType; use crate::math::{Isometry, Point, Vector}; use na::Unit; use ncollide::query::{ @@ -12,6 +14,7 @@ pub trait Roundable { fn rounded_shape_type() -> ShapeType; } +#[cfg(feature = "dim3")] impl Roundable for Cylinder { fn rounded_shape_type() -> ShapeType { ShapeType::RoundedCylinder -- cgit