cleanup, edition 2018
This commit is contained in:
parent
2734f760c7
commit
01ddb2bc77
@ -23,7 +23,7 @@ fn copysign(x: f32, y: f32) -> f32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn macc(y0: f32, x: &[f32], a: &[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 {
|
impl IIR {
|
||||||
|
@ -3,17 +3,12 @@
|
|||||||
#![feature(asm)]
|
#![feature(asm)]
|
||||||
// Enable returning `!`
|
// Enable returning `!`
|
||||||
#![feature(never_type)]
|
#![feature(never_type)]
|
||||||
#[allow(unused_extern_crates)]
|
|
||||||
|
|
||||||
#[cfg(not(feature = "semihosting"))]
|
#[cfg(not(feature = "semihosting"))]
|
||||||
extern crate panic_abort;
|
extern crate panic_abort;
|
||||||
#[cfg(feature = "semihosting")]
|
#[cfg(feature = "semihosting")]
|
||||||
extern crate panic_semihosting;
|
extern crate panic_semihosting;
|
||||||
|
|
||||||
extern crate cortex_m;
|
|
||||||
extern crate cortex_m_rt;
|
|
||||||
extern crate stm32h7;
|
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate log;
|
extern crate log;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user