From 0c7ebae1aaae3ca2a55e33429a4466110deda208 Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Sun, 23 Jan 2022 18:04:24 +0100 Subject: Run cargo fmt --- src/dynamics/joint/fixed_joint.rs | 4 +++- src/dynamics/joint/multibody_joint/multibody.rs | 4 ++-- src/dynamics/joint/spherical_joint.rs | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) (limited to 'src/dynamics/joint') diff --git a/src/dynamics/joint/fixed_joint.rs b/src/dynamics/joint/fixed_joint.rs index 6082938..c7ca904 100644 --- a/src/dynamics/joint/fixed_joint.rs +++ b/src/dynamics/joint/fixed_joint.rs @@ -6,11 +6,13 @@ use crate::math::{Isometry, Point, Real}; pub struct FixedJoint { data: JointData, } -impl Default for FixedJoint{ + +impl Default for FixedJoint { fn default() -> Self { FixedJoint::new() } } + impl FixedJoint { pub fn new() -> Self { #[cfg(feature = "dim2")] diff --git a/src/dynamics/joint/multibody_joint/multibody.rs b/src/dynamics/joint/multibody_joint/multibody.rs index 5779b3e..f2fa623 100644 --- a/src/dynamics/joint/multibody_joint/multibody.rs +++ b/src/dynamics/joint/multibody_joint/multibody.rs @@ -18,7 +18,7 @@ use na::{ }; #[repr(C)] -#[derive(Copy, Clone, Debug,Default)] +#[derive(Copy, Clone, Debug, Default)] struct Force { linear: Vector, angular: AngVector, @@ -91,7 +91,7 @@ pub struct Multibody { coriolis_w: Vec>, i_coriolis_dt: Jacobian, } -impl Default for Multibody{ +impl Default for Multibody { fn default() -> Self { Multibody::new() } diff --git a/src/dynamics/joint/spherical_joint.rs b/src/dynamics/joint/spherical_joint.rs index 19fbd6f..194682d 100644 --- a/src/dynamics/joint/spherical_joint.rs +++ b/src/dynamics/joint/spherical_joint.rs @@ -7,11 +7,13 @@ use crate::math::{Point, Real}; pub struct SphericalJoint { data: JointData, } -impl Default for SphericalJoint{ + +impl Default for SphericalJoint { fn default() -> Self { SphericalJoint::new() } } + impl SphericalJoint { pub fn new() -> Self { let data = -- cgit