From e257545321cb27fd808c35f5c7d8ddedca632fbb Mon Sep 17 00:00:00 2001 From: Matt Huszagh Date: Wed, 16 Dec 2020 16:14:11 -0800 Subject: [PATCH] fix formatting --- dsp/src/atan2.rs | 2 +- dsp/src/iir.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dsp/src/atan2.rs b/dsp/src/atan2.rs index a5f4d3e..2643d19 100644 --- a/dsp/src/atan2.rs +++ b/dsp/src/atan2.rs @@ -80,8 +80,8 @@ pub fn atan2(y: i32, x: i32) -> i32 { #[cfg(test)] mod tests { use super::*; - use core::f64::consts::PI; use crate::testing::isclose; + use core::f64::consts::PI; fn angle_to_axis(angle: f64) -> f64 { let angle = angle % (PI / 2.); diff --git a/dsp/src/iir.rs b/dsp/src/iir.rs index 48c92e9..5ff0970 100644 --- a/dsp/src/iir.rs +++ b/dsp/src/iir.rs @@ -1,8 +1,8 @@ use core::ops::{Add, Mul, Neg}; use serde::{Deserialize, Serialize}; -use core::f32; use super::abs; +use core::f32; // These are implemented here because core::f32 doesn't have them (yet). // They are naive and don't handle inf/nan.