Skip to content

Commit 28cc3b0

Browse files
make sure example runs OK, apply fmt
1 parent 5841891 commit 28cc3b0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/linalg/impl_linalg.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ use crate::numeric_util;
1414

1515
use crate::{LinalgScalar, Zip};
1616

17-
#[cfg(not(feature = "std"))]
18-
use alloc::vec::Vec;
1917
#[cfg(not(feature = "std"))]
2018
use alloc::vec;
19+
#[cfg(not(feature = "std"))]
20+
use alloc::vec::Vec;
2121

2222
use std::any::TypeId;
2323
use std::mem::MaybeUninit;
@@ -1092,9 +1092,8 @@ mod blas_tests
10921092
/// # Examples
10931093
///
10941094
/// ```
1095-
/// use ndarray::ArrayD;
1096-
/// use alloc::vec;
1097-
1095+
/// use ndarray::{ArrayD, linalg::Dot};
1096+
///
10981097
/// // Matrix multiplication
10991098
/// let a = ArrayD::from_shape_vec(vec![2, 3], vec![1., 2., 3., 4., 5., 6.]).unwrap();
11001099
/// let b = ArrayD::from_shape_vec(vec![3, 2], vec![1., 2., 3., 4., 5., 6.]).unwrap();

0 commit comments

Comments
 (0)