Skip to content

Commit

Permalink
refactor, move test dep use into test mod
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 9, 2024
1 parent 3c18b53 commit 7c39451
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,3 @@ pub use crate::source::Source;
pub use crate::spatial_sink::SpatialSink;
pub use crate::stream::{OutputStream, OutputStreamHandle, PlayError, StreamError};

#[cfg(test)]
#[macro_use]
extern crate approx;
2 changes: 2 additions & 0 deletions src/source/linear_ramp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ where

#[cfg(test)]
mod tests {
use approx::assert_abs_diff_eq;

use super::*;
use crate::buffer::SamplesBuffer;

Expand Down

0 comments on commit 7c39451

Please sign in to comment.