aboutsummaryrefslogtreecommitdiff
path: root/src/voice/streamer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/voice/streamer.rs')
-rw-r--r--src/voice/streamer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/voice/streamer.rs b/src/voice/streamer.rs
index 99be4de..a0334f3 100644
--- a/src/voice/streamer.rs
+++ b/src/voice/streamer.rs
@@ -25,7 +25,7 @@ struct InputSource<R: Read + Send + 'static> {
impl<R: Read + Send> AudioSource for InputSource<R> {
fn is_stereo(&mut self) -> bool { self.stereo }
- fn get_type(&self) -> AudioType { self.kind.clone() }
+ fn get_type(&self) -> AudioType { self.kind }
fn read_pcm_frame(&mut self, buffer: &mut [i16]) -> Option<usize> {
for (i, v) in buffer.iter_mut().enumerate() {