diff --git a/core/src/backend/audio/decoders/mp3.rs b/core/src/backend/audio/decoders/mp3.rs index 5a90bfaf8..822ae4aa0 100644 --- a/core/src/backend/audio/decoders/mp3.rs +++ b/core/src/backend/audio/decoders/mp3.rs @@ -181,7 +181,7 @@ pub mod symphonia { while let Ok(packet) = self.reader.next_packet() { match self.decoder.decode(&packet) { Ok(decoded) => { - if self.sample_buf.len() == 0 { + if self.sample_buf.is_empty() { self.sample_buf = audio::SampleBuffer::new( decoded.capacity() as core::units::Duration, *decoded.spec(),