Skip to content

Commit e9d1baa

Browse files
committed
fmt
1 parent 5d8dc64 commit e9d1baa

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/node/audio_buffer_source.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,8 @@ mod tests {
899899
fn test_sub_quantum_start_2() {
900900
let sample_rate = 44_100.;
901901
let length_in_seconds = 4.;
902-
let mut context = OfflineAudioContext::new(2, (length_in_seconds * sample_rate) as usize, sample_rate);
902+
let mut context =
903+
OfflineAudioContext::new(2, (length_in_seconds * sample_rate) as usize, sample_rate);
903904

904905
let mut dirac = context.create_buffer(2, 512, sample_rate);
905906
dirac.copy_to_channel(&[1.], 0);
@@ -925,7 +926,11 @@ mod tests {
925926
// assert we got our dirac at each defined offsets
926927

927928
sample_offsets.iter().for_each(|index| {
928-
assert_ne!(channel_left[*index], 0., "non zero sample at index {:?}", index);
929+
assert_ne!(
930+
channel_left[*index], 0.,
931+
"non zero sample at index {:?}",
932+
index
933+
);
929934
});
930935
}
931936

0 commit comments

Comments
 (0)