Skip to content

Commit 13f8dc6

Browse files
committed
[fix] warning.
1 parent 15421dd commit 13f8dc6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/lambda-rs/src/audio/buffer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ impl SoundBuffer {
179179
});
180180
}
181181

182-
if samples.len() % channels as usize != 0 {
182+
if !samples.len().is_multiple_of(channels as usize) {
183183
return Err(AudioError::InvalidData {
184184
details: format!(
185185
"test sound buffer sample length was not divisible by channels (samples={}, channels={})",

0 commit comments

Comments
 (0)