fix a rustc warning

This commit is contained in:
Rémi Lauzier 2021-06-25 16:23:23 -04:00
parent 9503ab729e
commit acd2476cd7
No known key found for this signature in database
GPG key ID: D4B9ECD143336C1D

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;
}