Fix some warnings.

This commit is contained in:
Crozet Sébastien
2021-03-31 12:35:54 +02:00
parent 6272f778c3
commit 3412e9ddbf
2 changed files with 4 additions and 4 deletions

View File

@@ -970,7 +970,7 @@ impl RigidBodyBuilder {
/// Sets the angular inertia of this rigid-body.
#[cfg(feature = "dim2")]
#[deprecated(note = "renamed to `additional_principal_angular_inertia`.")]
pub fn principal_angular_inertia(mut self, inertia: Real) -> Self {
pub fn principal_angular_inertia(self, inertia: Real) -> Self {
self.additional_principal_angular_inertia(inertia)
}