Remove old .rustfmt.toml config. Run default cargo fmt on repo.

Seeing as a few large refactors have landed recently, I thought I'd take
this opportunity to do a `cargo fmt` run and standardise on the default
rustfmt settings.
This commit is contained in:
mitchmindtree 2020-01-20 20:35:23 +01:00
parent 95cda0dbe8
commit aab0d90add
20 changed files with 458 additions and 530 deletions

View file

@ -37,7 +37,8 @@ pub unsafe trait Sample: Copy + Clone {
/// Converts any sample type to this one by calling `to_i16`, `to_u16` or `to_f32`.
fn from<S>(&S) -> Self
where S: Sample;
where
S: Sample;
}
unsafe impl Sample for u16 {
@ -64,7 +65,8 @@ unsafe impl Sample for u16 {
#[inline]
fn from<S>(sample: &S) -> Self
where S: Sample
where
S: Sample,
{
sample.to_u16()
}
@ -98,7 +100,8 @@ unsafe impl Sample for i16 {
#[inline]
fn from<S>(sample: &S) -> Self
where S: Sample
where
S: Sample,
{
sample.to_i16()
}
@ -128,7 +131,8 @@ unsafe impl Sample for f32 {
#[inline]
fn from<S>(sample: &S) -> Self
where S: Sample
where
S: Sample,
{
sample.to_f32()
}