From 78a83d50510ec03421406565b1d43031d6c7d6d8 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 5 Feb 2022 13:32:03 +0100 Subject: [PATCH] Allow unused variables in trait defaults --- src/plugin.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugin.rs b/src/plugin.rs index 98bf7205..726755eb 100644 --- a/src/plugin.rs +++ b/src/plugin.rs @@ -39,6 +39,7 @@ use crate::param::internals::Params; /// - MIDI CC handling /// - Outputting MIDI events /// - GUIs +#[allow(unused_variables)] pub trait Plugin: Default + Send + Sync { /// 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 @@ -84,8 +85,8 @@ pub trait Plugin: Default + Send + Sync { // instance. fn create_editor( &self, - _parent: RawWindowHandle, - _context: &impl GuiContext, + parent: RawWindowHandle, + context: &impl GuiContext, ) -> Option { None } @@ -114,7 +115,6 @@ pub trait Plugin: Default + Send + Sync { /// /// Before this point, the plugin should not have done any expensive initialization. Please /// don't be that plugin that takes twenty seconds to scan. - #[allow(unused_variables)] fn initialize( &mut self, bus_config: &BusConfig,