Skip to content

Commit 7610c65

Browse files
committed
cargo fmt
1 parent 919d3dc commit 7610c65

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

splashsurf_lib/src/traits.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,21 @@ pub trait RealConvert: Sized {
192192
}
193193

194194
impl<From: Real> RealConvert for &From {
195-
type Out<To> = To where To: Real;
195+
type Out<To>
196+
= To
197+
where
198+
To: Real;
196199

197200
fn try_convert<To: Real>(self) -> Option<To> {
198201
<To as NumCast>::from(*self)
199202
}
200203
}
201204

202205
impl<From: Real, const R: usize, const C: usize> RealConvert for SMatrix<From, R, C> {
203-
type Out<To> = SMatrix<To, R, C> where To: Real;
206+
type Out<To>
207+
= SMatrix<To, R, C>
208+
where
209+
To: Real;
204210

205211
fn try_convert<To: Real>(self) -> Option<SMatrix<To, R, C>> {
206212
let mut m_out: SMatrix<To, R, C> = SMatrix::zeros();

0 commit comments

Comments
 (0)