Skip to content

Commit 0df25c7

Browse files
Fix clippy: remove redundant type annotation
1 parent a3b3847 commit 0df25c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/machine_learning/principal_component_analysis.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ mod test {
319319
assert!(eigenvalue > 0.0);
320320
assert_eq!(eigenvector.len(), 3);
321321

322-
let norm: f64 = eigenvector.iter().map(|x| x * x).sum::<f64>().sqrt();
322+
let norm = eigenvector.iter().map(|x| x * x).sum::<f64>().sqrt();
323323
assert!((norm - 1.0).abs() < 1e-6);
324324
}
325325
}

0 commit comments

Comments
 (0)