@@ -1431,7 +1431,7 @@ where
1431
1431
///
1432
1432
/// The windows are all distinct views of size `window_size`
1433
1433
/// that fit into the array's shape.
1434
- ///
1434
+ ///
1435
1435
/// The stride is ordered by the outermost axis.<br>
1436
1436
/// Hence, a (x₀, x₁, ..., xₙ) stride will be applied to
1437
1437
/// (A₀, A₁, ..., Aₙ) where Aₓ stands for `Axis(x)`.
@@ -1441,7 +1441,7 @@ where
1441
1441
///
1442
1442
/// The produced element is an `ArrayView<A, D>` with exactly the dimension
1443
1443
/// `window_size`.
1444
- ///
1444
+ ///
1445
1445
/// Note that passing a stride of only ones is similar to
1446
1446
/// calling [`ArrayBase::windows()`].
1447
1447
///
@@ -2374,7 +2374,7 @@ where
2374
2374
A : Clone ,
2375
2375
S2 : Data < Elem = A > ,
2376
2376
{
2377
- self . zip_mut_with ( rhs, |x, y| * x = y . clone ( ) ) ;
2377
+ self . zip_mut_with ( rhs, |x, y| x . clone_from ( y ) ) ;
2378
2378
}
2379
2379
2380
2380
/// Perform an elementwise assigment of values cloned from `self` into array or producer `to`.
@@ -2400,7 +2400,7 @@ where
2400
2400
S : DataMut ,
2401
2401
A : Clone ,
2402
2402
{
2403
- self . map_inplace ( move |elt| * elt = x . clone ( ) ) ;
2403
+ self . map_inplace ( move |elt| elt. clone_from ( & x ) ) ;
2404
2404
}
2405
2405
2406
2406
pub ( crate ) fn zip_mut_with_same_shape < B , S2 , E , F > ( & mut self , rhs : & ArrayBase < S2 , E > , mut f : F )
0 commit comments