Merge pull request #583 from remilauzier/master

fix a rustc warning
This commit is contained in:
est31 2021-06-25 23:35:32 +02:00 • committed by GitHub
commit e993111309
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,7 @@ pub unsafe trait Sample: Copy + Clone {
fn to_u16(&self) -> u16;
/// Converts any sample type to this one by calling `to_i16`, `to_u16` or `to_f32`.
fn from<S>(&S) -> Self
fn from<S>(s: &S) -> Self
where
S: Sample;
}