diff --git a/src/buffer.rs b/src/buffer.rs index 50ada039..d61b3fe7 100644 --- a/src/buffer.rs +++ b/src/buffer.rs @@ -141,7 +141,7 @@ impl<'a, T> Inputs<'a, T> { self.len() == 0 } - /// Access channel at the given index, unchecked + /// Access channel at the given index pub fn get(&self, i: usize) -> &'a [T] { unsafe { slice::from_raw_parts(self.bufs[i], self.samples) } } @@ -217,12 +217,12 @@ impl<'a, T> Outputs<'a, T> { self.len() == 0 } - /// Access channel at the given index, unchecked + /// Access channel at the given index pub fn get(&self, i: usize) -> &'a [T] { unsafe { slice::from_raw_parts(self.bufs[i], self.samples) } } - /// Mutably access channel at the given index, unchecked + /// Mutably access channel at the given index pub fn get_mut(&mut self, i: usize) -> &'a mut [T] { unsafe { slice::from_raw_parts_mut(self.bufs[i], self.samples) } } @@ -295,7 +295,9 @@ impl<'a, 'b, T: Sized> IntoIterator for &'b mut Outputs<'a, T> { use event::{Event, MidiEvent, SysExEvent}; -/// This is used as a placeholder to pre-allocate space for a fixed number of midi events in the re-useable `SendEventBuffer`, because `SysExEvent` is larger than `MidiEvent`, so either one can be stored in a `SysExEvent`. +/// This is used as a placeholder to pre-allocate space for a fixed number of +/// midi events in the re-useable `SendEventBuffer`, because `SysExEvent` is +/// larger than `MidiEvent`, so either one can be stored in a `SysExEvent`. pub type PlaceholderEvent = api::SysExEvent; /// This trait is used by `SendEventBuffer::send_events` to accept iterators over midi events diff --git a/src/plugin.rs b/src/plugin.rs index 41596f2c..2eb7e35e 100644 --- a/src/plugin.rs +++ b/src/plugin.rs @@ -677,7 +677,9 @@ pub trait Plugin { } /// Called one time before the start of process call. - /// This indicates that the process call will be interrupted (due to Host reconfiguration or bypass state when the plug-in doesn't support softBypass). + /// + /// This indicates that the process call will be interrupted (due to Host reconfiguration + /// or bypass state when the plug-in doesn't support softBypass). /// /// This method is only called while the plugin is in the *resumed* state. fn start_process(&mut self) {} diff --git a/src/util/atomic_float.rs b/src/util/atomic_float.rs index 0f86e187..65afc8b7 100644 --- a/src/util/atomic_float.rs +++ b/src/util/atomic_float.rs @@ -6,7 +6,6 @@ use std::sync::atomic::{AtomicU32, Ordering}; /// multiple threads when no synchronization or change notification /// is needed. pub struct AtomicFloat { - // TODO: Change atomic to AtomicU32 when stabilized (expected in 1.34). atomic: AtomicU32, } diff --git a/src/util/parameter_transfer.rs b/src/util/parameter_transfer.rs index 09139553..5428ae43 100644 --- a/src/util/parameter_transfer.rs +++ b/src/util/parameter_transfer.rs @@ -12,7 +12,6 @@ fn word_and_bit(index: usize) -> (usize, usize) { /// Supports efficient iteration over parameters that changed since last iteration. #[derive(Default)] pub struct ParameterTransfer { - // TODO: Change values to AtomicU32 when stabilized (expected in 1.34). values: Vec, changed: Vec, }