diff options
| author | Crozet Sébastien <developer@crozet.re> | 2020-10-20 16:22:53 +0200 |
|---|---|---|
| committer | Crozet Sébastien <developer@crozet.re> | 2020-10-20 16:22:53 +0200 |
| commit | 949e3f5384a366c3bff5415c5db4635e811a580e (patch) | |
| tree | 910467800fc3038c279c8d166833735e043d5edc /src/dynamics | |
| parent | 64958470950cd9832a669b1bd5d70a2aeb6a85ef (diff) | |
| download | rapier-949e3f5384a366c3bff5415c5db4635e811a580e.tar.gz rapier-949e3f5384a366c3bff5415c5db4635e811a580e.tar.bz2 rapier-949e3f5384a366c3bff5415c5db4635e811a580e.zip | |
Fix many warnings.
Diffstat (limited to 'src/dynamics')
| -rw-r--r-- | src/dynamics/mass_properties_capsule.rs | 4 | ||||
| -rw-r--r-- | src/dynamics/mass_properties_cylinder.rs | 7 | ||||
| -rw-r--r-- | src/dynamics/mass_properties_polygon.rs | 2 |
3 files changed, 9 insertions, 4 deletions
diff --git a/src/dynamics/mass_properties_capsule.rs b/src/dynamics/mass_properties_capsule.rs index c4e039c..cfd4345 100644 --- a/src/dynamics/mass_properties_capsule.rs +++ b/src/dynamics/mass_properties_capsule.rs @@ -1,7 +1,7 @@ use crate::dynamics::MassProperties; +use crate::math::Point; #[cfg(feature = "dim3")] -use crate::geometry::Capsule; -use crate::math::{Point, PrincipalAngularInertia, Rotation, Vector}; +use crate::math::Rotation; impl MassProperties { pub(crate) fn from_capsule(density: f32, half_height: f32, radius: f32) -> Self { diff --git a/src/dynamics/mass_properties_cylinder.rs b/src/dynamics/mass_properties_cylinder.rs index 66a1343..8d4f254 100644 --- a/src/dynamics/mass_properties_cylinder.rs +++ b/src/dynamics/mass_properties_cylinder.rs @@ -1,7 +1,10 @@ use crate::dynamics::MassProperties; +use crate::math::{PrincipalAngularInertia, Vector}; #[cfg(feature = "dim3")] -use crate::geometry::Capsule; -use crate::math::{Point, PrincipalAngularInertia, Rotation, Vector}; +use { + crate::geometry::Capsule, + crate::math::{Point, Rotation}, +}; impl MassProperties { pub(crate) fn cylinder_y_volume_unit_inertia( diff --git a/src/dynamics/mass_properties_polygon.rs b/src/dynamics/mass_properties_polygon.rs index c87e888..8b0b811 100644 --- a/src/dynamics/mass_properties_polygon.rs +++ b/src/dynamics/mass_properties_polygon.rs @@ -1,3 +1,5 @@ +#![allow(dead_code)] // TODO: remove this + use crate::dynamics::MassProperties; use crate::math::Point; |
