Skip to content

Commit

Permalink
trig: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
matthuszagh committed Dec 9, 2020
1 parent 4add34c commit a82b0f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dsp/build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::f64::consts::PI;
use std::fs::File;
use std::path::Path;
use std::io::prelude::*;
use std::f64::consts::PI;
use std::path::Path;

const TABLE_DEPTH: usize = 8;
const TABLE_SIZE: usize = 1 << TABLE_DEPTH;
Expand Down
1 change: 0 additions & 1 deletion dsp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion dsp/src/trig.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit a82b0f3

Please sign in to comment.