Eliminate or suppress Clippy messages.

This commit is contained in:
Darakshan Farber 2020-07-21 12:54:49 -07:00
parent 997fb9fa8a
commit 17e079d15d
5 changed files with 23 additions and 15 deletions

View file

@ -423,6 +423,7 @@ impl OutputCallbackInfo {
}
}
#[allow(clippy::len_without_is_empty)]
impl Data {
// Internal constructor for host implementations to use.
//
@ -457,7 +458,7 @@ impl Data {
pub fn len(&self) -> usize {
self.len
}
/// The raw slice of memory representing the underlying audio data as a slice of bytes.
///
/// It is up to the user to interpret the slice of memory based on `Data::sample_format`.