Skip to content
Snippets Groups Projects
Commit e57df06e authored by Stephen D's avatar Stephen D
Browse files

fix clippy lints

parent a7c65863
No related branches found
No related tags found
No related merge requests found
Pipeline #2025 passed
......@@ -111,9 +111,9 @@ fn sine() {
for testfreq in (0..30).map(|x| (x * 100) as f32) {
let p = Parameters::new(testfreq, 8000, 8000);
let testmag = p.mag(&buf[..]);
println!("{:4}: {:12.3}", testfreq, testmag);
println!("{testfreq:4}: {testmag:12.3}");
if (freq - testfreq).abs() > 100. {
println!("{} > 10*{}", mag, testmag);
println!("{mag} > 10*{testmag}");
assert!(mag > 10. * testmag);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment