mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Ran clippy and rustfmt
This commit is contained in:
parent
028ca816b7
commit
43b0adddc6
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user