From a200b259164f534cdcb151fbd57d0eefbb9ad48e Mon Sep 17 00:00:00 2001 From: Roderick van Domburg Date: Sat, 27 Mar 2021 21:44:01 +0100 Subject: [PATCH] Fix formatting --- audio/src/libvorbis_decoder.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/audio/src/libvorbis_decoder.rs b/audio/src/libvorbis_decoder.rs index e86fc000..5ad48f0d 100644 --- a/audio/src/libvorbis_decoder.rs +++ b/audio/src/libvorbis_decoder.rs @@ -45,7 +45,9 @@ where packet .data .iter() - .map(|sample| ((*sample as f64 + 0.5) / (std::i16::MAX as f64 + 0.5)) as f32) + .map(|sample| { + ((*sample as f64 + 0.5) / (std::i16::MAX as f64 + 0.5)) as f32 + }) .collect(), ))); }