Fix many warnings.

This commit is contained in:
Crozet Sébastien
2020-10-20 16:22:53 +02:00
parent 6495847095
commit 949e3f5384
28 changed files with 87 additions and 84 deletions

View File

@@ -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