Silencing clippy errors

This commit is contained in:
2026-05-03 10:44:31 -07:00
parent da4bad0e87
commit 977c8263d2
5 changed files with 11 additions and 9 deletions

View File

@@ -110,7 +110,7 @@ impl<R: Read + Seek> AudioFrameReader<R> {
let common_format = self.format.common_format();
let bits_per_sample = self.format.bits_per_sample;
if buffer.len() % channel_count != 0 {
if !buffer.len().is_multiple_of(channel_count) {
return Err(Error::InvalidBufferSize {
buffer_size: buffer.len(),
channel_count: self.format.channel_count,
@@ -245,7 +245,7 @@ impl<R: Read + Seek> WaveReader<R> {
/// will return an `Err(errors::Error)` immediately if there is a structural
/// inconsistency that makes the stream unreadable or if it's missing
/// essential components that make interpreting the audio data impossible.
///
/// ```rust
/// use std::fs::File;
/// use std::io::{Error,ErrorKind};