From 7c39451138c4d398a6cdf036634ebe6625c48df9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 9 Aug 2024 11:53:49 +0200 Subject: [PATCH] refactor, move test dep use into test mod --- src/lib.rs | 3 --- src/source/linear_ramp.rs | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 0c86ba9..4344a5e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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; diff --git a/src/source/linear_ramp.rs b/src/source/linear_ramp.rs index 5be8b39..0e46a68 100644 --- a/src/source/linear_ramp.rs +++ b/src/source/linear_ramp.rs @@ -144,6 +144,8 @@ where #[cfg(test)] mod tests { + use approx::assert_abs_diff_eq; + use super::*; use crate::buffer::SamplesBuffer;