Skip to content

Commit

Permalink
treewide: remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
phip1611 committed Apr 28, 2024
1 parent 5cd45cb commit b6769a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/audio_history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ mod tests {

hist.update([0.0].repeat(hist.data().capacity() * 2).iter().copied());

let sample = hist.index_to_sample_info(0);
assert_eq!(
hist.index_to_sample_info(0).duration_behind,
Duration::from_secs_f32((DEFAULT_BUFFER_SIZE - 1) as f32)
Expand Down
4 changes: 2 additions & 2 deletions src/beat_detector.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::EnvelopeInfo;
use crate::{AudioHistory, EnvelopeIterator};
use biquad::{coefficients, Biquad, Coefficients, DirectForm1, ToHertz, Type, Q_BUTTERWORTH_F32};
use biquad::{Biquad, Coefficients, DirectForm1, ToHertz, Type, Q_BUTTERWORTH_F32};
use std::fmt::{Debug, Formatter};

/// Cutoff frequency for the lowpass filter to detect beats.
Expand Down Expand Up @@ -102,7 +102,7 @@ mod tests {

#[test]
fn is_send_and_sync() {
fn accept<I: Send + Sync>() {};
fn accept<I: Send + Sync>() {}

accept::<BeatDetector>();
}
Expand Down
2 changes: 1 addition & 1 deletion src/envelope_iterator.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::MaxMinIterator;
use crate::{AudioHistory, SampleInfo};
use crate::{AudioInput, MaxMinIterator};
use core::cmp::Ordering;
use core::time::Duration;
use ringbuffer::RingBuffer;
Expand Down

0 comments on commit b6769a6

Please sign in to comment.