Ran clippy and rustfmt

This commit is contained in:
Talha Qamar 2024-03-22 15:08:21 +05:00
parent 028ca816b7
commit 43b0adddc6

View File

@ -20,8 +20,7 @@ use crate::audio::{
fader::{FadeDirection, Fader},
Listener,
};
use rodio::{OutputStreamHandle, Sample, Sink, Source, SpatialSink};
use rodio::cpal::FromSample;
use rodio::{cpal::FromSample, OutputStreamHandle, Sample, Sink, Source, SpatialSink};
use serde::Deserialize;
use std::time::Instant;
use strum::EnumIter;
@ -89,7 +88,7 @@ impl MusicChannel {
S::Item: Sample,
S::Item: Send,
<S as Iterator>::Item: std::fmt::Debug,
f32:FromSample<<S as Iterator>::Item>,
f32: FromSample<<S as Iterator>::Item>,
{
self.tag = tag;
self.sink.append(source);
@ -210,7 +209,7 @@ impl AmbientChannel {
S::Item: Sample,
S::Item: Send,
<S as Iterator>::Item: std::fmt::Debug,
f32:FromSample<<S as Iterator>::Item>,
f32: FromSample<<S as Iterator>::Item>,
{
self.sink.append(source);
}
@ -251,7 +250,7 @@ impl SfxChannel {
S::Item: Sample,
S::Item: Send,
<S as Iterator>::Item: std::fmt::Debug,
f32:FromSample<<S as Iterator>::Item>,
f32: FromSample<<S as Iterator>::Item>,
{
self.sink.append(source);
}
@ -309,7 +308,7 @@ impl UiChannel {
S::Item: Sample,
S::Item: Send,
<S as Iterator>::Item: std::fmt::Debug,
f32:FromSample<<S as Iterator>::Item>,
f32: FromSample<<S as Iterator>::Item>,
{
self.sink.append(source);
}