Skip to content

Commit 4e55346

Browse files
committed
add type declaration in test
1 parent 0a377d5 commit 4e55346

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/linear/logistic_regression.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ mod tests {
829829
#[test]
830830
#[cfg(feature = "serde")]
831831
fn serde() {
832-
let x = DenseMatrix::from_2d_array(&[
832+
let x: DenseMatrix<f32> = DenseMatrix::from_2d_array(&[
833833
&[1., -5.],
834834
&[2., 5.],
835835
&[3., -2.],

0 commit comments

Comments
 (0)