Eliminate or suppress Clippy messages.
This commit is contained in:
parent
997fb9fa8a
commit
17e079d15d
5 changed files with 23 additions and 15 deletions
|
|
@ -15,10 +15,10 @@ impl SampleFormat {
|
|||
/// Returns the size in bytes of a sample of this format.
|
||||
#[inline]
|
||||
pub fn sample_size(&self) -> usize {
|
||||
match self {
|
||||
&SampleFormat::I16 => mem::size_of::<i16>(),
|
||||
&SampleFormat::U16 => mem::size_of::<u16>(),
|
||||
&SampleFormat::F32 => mem::size_of::<f32>(),
|
||||
match *self {
|
||||
SampleFormat::I16 => mem::size_of::<i16>(),
|
||||
SampleFormat::U16 => mem::size_of::<u16>(),
|
||||
SampleFormat::F32 => mem::size_of::<f32>(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue