Skip to content

Commit 2fbee06

Browse files
committed
rustfmt
1 parent e7231ff commit 2fbee06

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

src/main.rs

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,7 @@ mod tests {
196196
use hound::WavSpec as InputSpec;
197197

198198
/// Generates a simple sine wave WAV file for testing.
199-
fn create_test_wav(
200-
path: &Path,
201-
channels: u16,
202-
rate: u32,
203-
freq: f32,
204-
duration: f32,
205-
) {
199+
fn create_test_wav(path: &Path, channels: u16, rate: u32, freq: f32, duration: f32) {
206200
let spec = InputSpec {
207201
channels,
208202
sample_rate: rate,
@@ -274,9 +268,11 @@ mod tests {
274268
let samples_in: Vec<i16> = reader_in.samples().collect::<Result<_, _>>().unwrap();
275269

276270
assert_eq!(samples_out.len(), samples_in.len());
277-
assert!(samples_out
278-
.iter()
279-
.zip(&samples_in)
280-
.all(|(&a, &b)| (a as i32 - b as i32).abs() <= 1));
271+
assert!(
272+
samples_out
273+
.iter()
274+
.zip(&samples_in)
275+
.all(|(&a, &b)| (a as i32 - b as i32).abs() <= 1)
276+
);
281277
}
282278
}

0 commit comments

Comments
 (0)