cleanup, edition 2018

master
Robert Jördens 2019-04-12 15:44:09 +00:00
parent 2734f760c7
commit 01ddb2bc77
2 changed files with 1 additions and 6 deletions

View File

@ -23,7 +23,7 @@ fn copysign(x: f32, y: f32) -> f32 {
}
fn macc(y0: f32, x: &[f32], a: &[f32]) -> f32 {
y0 + x.iter().zip(a.iter()) .map(|(&i, &j)| i * j).sum::<f32>()
y0 + x.iter().zip(a.iter()).map(|(&i, &j)| i * j).sum::<f32>()
}
impl IIR {

View File

@ -3,17 +3,12 @@
#![feature(asm)]
// Enable returning `!`
#![feature(never_type)]
#[allow(unused_extern_crates)]
#[cfg(not(feature = "semihosting"))]
extern crate panic_abort;
#[cfg(feature = "semihosting")]
extern crate panic_semihosting;
extern crate cortex_m;
extern crate cortex_m_rt;
extern crate stm32h7;
#[macro_use]
extern crate log;