refactor, move test dep use into test mod

This commit is contained in:
github-actions[bot] 2024-08-09 11:53:49 +02:00
parent 3c18b53a47
commit 7c39451138
No known key found for this signature in database
GPG key ID: F687E89FC7894F98
2 changed files with 2 additions and 3 deletions

View file

@ -137,6 +137,3 @@ pub use crate::source::Source;
pub use crate::spatial_sink::SpatialSink; pub use crate::spatial_sink::SpatialSink;
pub use crate::stream::{OutputStream, OutputStreamHandle, PlayError, StreamError}; pub use crate::stream::{OutputStream, OutputStreamHandle, PlayError, StreamError};
#[cfg(test)]
#[macro_use]
extern crate approx;

View file

@ -144,6 +144,8 @@ where
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use approx::assert_abs_diff_eq;
use super::*; use super::*;
use crate::buffer::SamplesBuffer; use crate::buffer::SamplesBuffer;