1
0
Fork 0

Allow unused variables in trait defaults

This commit is contained in:
Robbert van der Helm 2022-02-05 13:32:03 +01:00
parent d2407db284
commit 78a83d5051

View file

@ -39,6 +39,7 @@ use crate::param::internals::Params;
/// - MIDI CC handling /// - MIDI CC handling
/// - Outputting MIDI events /// - Outputting MIDI events
/// - GUIs /// - GUIs
#[allow(unused_variables)]
pub trait Plugin: Default + Send + Sync { pub trait Plugin: Default + Send + Sync {
/// The type of the GUI editor instance belonging to this plugin. Use [NoEditor] when you don't /// The type of the GUI editor instance belonging to this plugin. Use [NoEditor] when you don't
/// need an editor. Make sure to implement both the [Self::create_editor()] and /// need an editor. Make sure to implement both the [Self::create_editor()] and
@ -84,8 +85,8 @@ pub trait Plugin: Default + Send + Sync {
// instance. // instance.
fn create_editor( fn create_editor(
&self, &self,
_parent: RawWindowHandle, parent: RawWindowHandle,
_context: &impl GuiContext, context: &impl GuiContext,
) -> Option<Self::Editor> { ) -> Option<Self::Editor> {
None None
} }
@ -114,7 +115,6 @@ pub trait Plugin: Default + Send + Sync {
/// ///
/// Before this point, the plugin should not have done any expensive initialization. Please /// Before this point, the plugin should not have done any expensive initialization. Please
/// don't be that plugin that takes twenty seconds to scan. /// don't be that plugin that takes twenty seconds to scan.
#[allow(unused_variables)]
fn initialize( fn initialize(
&mut self, &mut self,
bus_config: &BusConfig, bus_config: &BusConfig,