From a82b0f3e908a53d1f53794368fa8ea9e16f5e2bb Mon Sep 17 00:00:00 2001 From: Matt Huszagh Date: Wed, 9 Dec 2020 15:53:56 -0800 Subject: [PATCH] trig: fix formatting --- dsp/build.rs | 6 +++--- dsp/src/lib.rs | 1 - dsp/src/trig.rs | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/dsp/build.rs b/dsp/build.rs index 2e6fbfe..1b60363 100644 --- a/dsp/build.rs +++ b/dsp/build.rs @@ -1,7 +1,7 @@ -use std::fs::File; -use std::path::Path; -use std::io::prelude::*; use std::f64::consts::PI; +use std::fs::File; +use std::io::prelude::*; +use std::path::Path; const TABLE_DEPTH: usize = 8; const TABLE_SIZE: usize = 1 << TABLE_DEPTH; diff --git a/dsp/src/lib.rs b/dsp/src/lib.rs index b7bfeeb..798b0fc 100644 --- a/dsp/src/lib.rs +++ b/dsp/src/lib.rs @@ -17,7 +17,6 @@ pub fn shift_round(x: i32, shift: i32) -> i32 { (x + (1 << (shift - 1))) >> shift } - pub mod iir; pub mod lockin; pub mod pll; diff --git a/dsp/src/trig.rs b/dsp/src/trig.rs index e8f170d..3c7eb2b 100644 --- a/dsp/src/trig.rs +++ b/dsp/src/trig.rs @@ -1,5 +1,5 @@ +use super::{shift_round, Complex}; use core::mem::swap; -use super::{Complex, shift_round}; const PHASE_BITS: i32 = 20; const LUT_DEPTH: i32 = 8;