From 70c2985b7cd2e9cd1b5e536ea63e04312fd61d97 Mon Sep 17 00:00:00 2001 From: est31 Date: Sat, 10 Aug 2019 23:03:19 +0200 Subject: [PATCH] Add dyn to the traits This fixes a few warnings on nightly --- src/dynamic_mixer.rs | 4 ++-- src/queue.rs | 4 ++-- src/source/mod.rs | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/dynamic_mixer.rs b/src/dynamic_mixer.rs index 7b683f1..3604d77 100644 --- a/src/dynamic_mixer.rs +++ b/src/dynamic_mixer.rs @@ -41,7 +41,7 @@ where /// The input of the mixer. pub struct DynamicMixerController { has_pending: AtomicBool, - pending_sources: Mutex + Send>>>, + pending_sources: Mutex + Send>>>, channels: u16, sample_rate: u32, } @@ -68,7 +68,7 @@ where /// The output of the mixer. Implements `Source`. pub struct DynamicMixer { // The current iterator that produces samples. - current_sources: Vec + Send>>, + current_sources: Vec + Send>>, // The pending sounds. input: Arc>, diff --git a/src/queue.rs b/src/queue.rs index 7e24622..0bcf394 100644 --- a/src/queue.rs +++ b/src/queue.rs @@ -48,7 +48,7 @@ where /// The input of the queue. pub struct SourcesQueueInput { - next_sounds: Mutex + Send>, Option>)>>, + next_sounds: Mutex + Send>, Option>)>>, // See constructor. keep_alive_if_empty: AtomicBool, @@ -98,7 +98,7 @@ where /// The output of the queue. Implements `Source`. pub struct SourcesQueueOutput { // The current iterator that produces samples. - current: Box + Send>, + current: Box + Send>, // Signal this sender before picking from `next`. signal_after_end: Option>, diff --git a/src/source/mod.rs b/src/source/mod.rs index 9e8f4af..1601bea 100644 --- a/src/source/mod.rs +++ b/src/source/mod.rs @@ -302,7 +302,7 @@ where } } -impl Source for Box> +impl Source for Box> where S: Sample, { @@ -327,7 +327,7 @@ where } } -impl Source for Box + Send> +impl Source for Box + Send> where S: Sample, { @@ -352,7 +352,7 @@ where } } -impl Source for Box + Send + Sync> +impl Source for Box + Send + Sync> where S: Sample, {