Skip to content

Commit 9392a33

Browse files
committed
remove unneccessary format in assert
1 parent 3532d47 commit 9392a33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/io.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ mod tests {
444444
assert!(ts[0].len() == 5000);
445445
println!("{:?}", ts);
446446
for (actual, expected) in ts[1].iter().zip(expected.iter()) {
447-
assert!((actual-expected).abs() < 0.001, format!("{:?} != {:?}", actual, expected));
447+
assert!((actual-expected).abs() < 0.001, "{:?} != {:?}", actual, expected);
448448
}
449449
}
450450

@@ -601,4 +601,4 @@ mod tests {
601601
assert_approx_eq!(test[2].0, 5.0);
602602
assert_approx_eq!(test[2].1, 30.0);
603603
}
604-
}
604+
}

0 commit comments

Comments
 (0)