Run cargo fmt
This commit is contained in:
@@ -60,7 +60,7 @@ impl Default for Index {
|
|||||||
|
|
||||||
impl IndexedData for Index {
|
impl IndexedData for Index {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Default::default()
|
Default::default()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn index(&self) -> usize {
|
fn index(&self) -> usize {
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ impl<E> Edge<E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug,Default)]
|
#[derive(Clone, Debug, Default)]
|
||||||
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
|
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
|
||||||
pub struct Graph<N, E> {
|
pub struct Graph<N, E> {
|
||||||
pub(crate) nodes: Vec<Node<N>>,
|
pub(crate) nodes: Vec<Node<N>>,
|
||||||
|
|||||||
@@ -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")]
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ use na::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Copy, Clone, Debug,Default)]
|
#[derive(Copy, Clone, Debug, Default)]
|
||||||
struct Force {
|
struct Force {
|
||||||
linear: Vector<Real>,
|
linear: Vector<Real>,
|
||||||
angular: AngVector<Real>,
|
angular: AngVector<Real>,
|
||||||
@@ -91,7 +91,7 @@ pub struct Multibody {
|
|||||||
coriolis_w: Vec<OMatrix<Real, AngDim, Dynamic>>,
|
coriolis_w: Vec<OMatrix<Real, AngDim, Dynamic>>,
|
||||||
i_coriolis_dt: Jacobian<Real>,
|
i_coriolis_dt: Jacobian<Real>,
|
||||||
}
|
}
|
||||||
impl Default for Multibody{
|
impl Default for Multibody {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Multibody::new()
|
Multibody::new()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 =
|
||||||
|
|||||||
@@ -319,9 +319,10 @@ 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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ impl ColliderPair {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for ColliderPair{
|
impl Default for ColliderPair {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
ColliderPair::zero()
|
ColliderPair::zero()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user