Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
cjrolo committed Oct 4, 2024
1 parent c6556fd commit 3f0f494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brro-compressor/src/compressor/fft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ impl FFT {
let len_f32 = len as f32;

// Clean the data
let mut buffer = FFT::optimize(&g_data);
let mut buffer = FFT::optimize(g_data);

// Create the FFT planners
let mut planner = FftPlanner::new();
Expand Down Expand Up @@ -371,7 +371,7 @@ impl FFT {
.iter()
.map(|&f| self.round(f.re / len_f32, DECIMAL_PRECISION.into()))
.collect();
current_err = calculate_error(&g_data, &out_data);
current_err = calculate_error(g_data, &out_data);
trace!("Current Err: {}", current_err);
// Max iterations is 22 (We start at 10%, we can go to 95% and 1% at a time)
match iterations {
Expand Down

0 comments on commit 3f0f494

Please sign in to comment.