Skip to content

Commit 7bf4b62

Browse files
emmatypingbluss
authored andcommitted
Don't make map mutable
1 parent 67cbfe1 commit 7bf4b62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xtest-blas/tests/oper.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ fn range_mat_complex(m: Ix, n: Ix) -> Array2<Complex32> {
5959
Array::linspace(0., (m * n) as f32 - 1., m * n)
6060
.into_shape((m, n))
6161
.unwrap()
62-
.map_mut(|&mut f| Complex32::new(f, 0.))
62+
.map(|&f| Complex32::new(f, 0.))
6363
}
6464

6565
fn range_mat_complex64(m: Ix, n: Ix) -> Array2<Complex64> {
6666
Array::linspace(0., (m * n) as f64 - 1., m * n)
6767
.into_shape((m, n))
6868
.unwrap()
69-
.map_mut(|&mut f| Complex64::new(f, 0.))
69+
.map(|&f| Complex64::new(f, 0.))
7070
}
7171

7272
fn range1_mat64(m: Ix) -> Array1<f64> {

0 commit comments

Comments
 (0)