Skip to content

Commit 3cb40e5

Browse files
committed
Remove unnecessary &format!
These were likely from before the `PartialEq<str>` impl for `&String`.
1 parent 6afcb85 commit 3cb40e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/core_simd/examples/spectral_norm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fn dot(x: &[f64], y: &[f64]) -> f64 {
6969
#[cfg(test)]
7070
#[test]
7171
fn test() {
72-
assert_eq!(&format!("{:.9}", spectral_norm(100)), "1.274219991");
72+
assert_eq!(format!("{:.9}", spectral_norm(100)), "1.274219991");
7373
}
7474

7575
fn main() {

0 commit comments

Comments
 (0)