Run cargo fmt

This commit is contained in:
Sébastien Crozet
2022-01-23 18:04:24 +01:00
parent 536122e080
commit 0c7ebae1aa
7 changed files with 14 additions and 9 deletions

View File

@@ -6,11 +6,13 @@ use crate::math::{Isometry, Point, Real};
pub struct FixedJoint { pub struct FixedJoint {
data: JointData, data: JointData,
} }
impl Default for FixedJoint { impl Default for FixedJoint {
fn default() -> Self { fn default() -> Self {
FixedJoint::new() FixedJoint::new()
} }
} }
impl FixedJoint { impl FixedJoint {
pub fn new() -> Self { pub fn new() -> Self {
#[cfg(feature = "dim2")] #[cfg(feature = "dim2")]

View File

@@ -7,11 +7,13 @@ use crate::math::{Point, Real};
pub struct SphericalJoint { pub struct SphericalJoint {
data: JointData, data: JointData,
} }
impl Default for SphericalJoint { impl Default for SphericalJoint {
fn default() -> Self { fn default() -> Self {
SphericalJoint::new() SphericalJoint::new()
} }
} }
impl SphericalJoint { impl SphericalJoint {
pub fn new() -> Self { pub fn new() -> Self {
let data = let data =

View File

@@ -319,6 +319,7 @@ pub struct JointGenericVelocityGroundConstraint {
pub writeback_id: WritebackId, pub writeback_id: WritebackId,
} }
impl Default for JointGenericVelocityGroundConstraint { impl Default for JointGenericVelocityGroundConstraint {
fn default() -> Self { fn default() -> Self {
JointGenericVelocityGroundConstraint::invalid() JointGenericVelocityGroundConstraint::invalid()