Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
maku693 authored and kvark committed Mar 7, 2022
1 parent 11a5346 commit 2e76e82
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ macro_rules! impl_mint_conversions {
$ArrayN { $( $field: v.$field, )+ }
}
}

impl<S: Clone> mint::IntoMint for $ArrayN<S> {
type MintType = mint::$Mint<S>;
}
Expand Down
2 changes: 1 addition & 1 deletion src/matrix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1558,7 +1558,7 @@ macro_rules! mint_conversions {
$MatrixN { $($field: m.$field.into()),+ }
}
}

impl<S: Clone> mint::IntoMint for $MatrixN<S> {
type MintType = mint::$MintN<S>;
}
Expand Down
2 changes: 1 addition & 1 deletion src/quaternion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ impl<S: Clone> From<Quaternion<S>> for mint::Quaternion<S> {
}

#[cfg(feature = "mint")]
impl <S: Clone> mint::IntoMint for Quaternion<S> {
impl<S: Clone> mint::IntoMint for Quaternion<S> {
type MintType = mint::Quaternion<S>;
}

Expand Down
5 changes: 4 additions & 1 deletion src/structure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,10 @@ where
/// let centroid = Point2::centroid(&triangle);
/// ```
#[inline]
fn centroid(points: &[Self]) -> Self where Self::Scalar: NumCast {
fn centroid(points: &[Self]) -> Self
where
Self::Scalar: NumCast,
{
let total_displacement = points
.iter()
.fold(Self::Diff::zero(), |acc, p| acc + p.to_vec());
Expand Down

0 comments on commit 2e76e82

Please sign in to comment.