Skip to content

Commit 28c7860

Browse files
authored
Merge pull request #269 from rust-ndarray/fix-format
Fix minor format spec breaking of rustfmt
2 parents 7925aa6 + a22c836 commit 28c7860

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

ndarray-linalg/src/solve.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,8 @@ where
468468
self.ensure_square()?;
469469
match self.factorize() {
470470
Ok(fac) => fac.sln_det(),
471-
Err(LinalgError::Lapack(e)) if matches!(e, lax::error::Error::LapackComputationalFailure {..}) =>
471+
Err(LinalgError::Lapack(e))
472+
if matches!(e, lax::error::Error::LapackComputationalFailure { .. }) =>
472473
{
473474
// The determinant is zero.
474475
Ok((A::zero(), A::Real::neg_infinity()))
@@ -487,7 +488,8 @@ where
487488
self.ensure_square()?;
488489
match self.factorize_into() {
489490
Ok(fac) => fac.sln_det_into(),
490-
Err(LinalgError::Lapack(e)) if matches!(e, lax::error::Error::LapackComputationalFailure { .. }) =>
491+
Err(LinalgError::Lapack(e))
492+
if matches!(e, lax::error::Error::LapackComputationalFailure { .. }) =>
491493
{
492494
// The determinant is zero.
493495
Ok((A::zero(), A::Real::neg_infinity()))

ndarray-linalg/src/solveh.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,8 @@ where
426426
fn sln_deth(&self) -> Result<(A::Real, A::Real)> {
427427
match self.factorizeh() {
428428
Ok(fac) => Ok(fac.sln_deth()),
429-
Err(LinalgError::Lapack(e)) if matches!(e, lax::error::Error::LapackComputationalFailure {..}) =>
429+
Err(LinalgError::Lapack(e))
430+
if matches!(e, lax::error::Error::LapackComputationalFailure { .. }) =>
430431
{
431432
// Determinant is zero.
432433
Ok((A::Real::zero(), A::Real::neg_infinity()))
@@ -451,7 +452,8 @@ where
451452
fn sln_deth_into(self) -> Result<(A::Real, A::Real)> {
452453
match self.factorizeh_into() {
453454
Ok(fac) => Ok(fac.sln_deth_into()),
454-
Err(LinalgError::Lapack(e)) if matches!(e, lax::error::Error::LapackComputationalFailure {..}) =>
455+
Err(LinalgError::Lapack(e))
456+
if matches!(e, lax::error::Error::LapackComputationalFailure { .. }) =>
455457
{
456458
// Determinant is zero.
457459
Ok((A::Real::zero(), A::Real::neg_infinity()))

0 commit comments

Comments
 (0)