From e718bbd0a4e68d59807281e9a0b44afea756713b Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Mon, 28 Feb 2022 17:30:21 +0100 Subject: [PATCH] Capitalize the FACTORY lazy static To stop the linters from complaining. --- src/wrapper/clap.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wrapper/clap.rs b/src/wrapper/clap.rs index c81fdf56..71d42868 100644 --- a/src/wrapper/clap.rs +++ b/src/wrapper/clap.rs @@ -21,7 +21,7 @@ macro_rules! nih_export_clap { // We don't use generics inside of statics, so this lazy_static is used as kind of an // escape hatch ::nih_plug::wrapper::clap::lazy_static! { - static ref factory: ::nih_plug::wrapper::clap::Factory<$plugin_ty> = ::nih_plug::wrapper::clap::Factory::default(); + static ref FACTORY: ::nih_plug::wrapper::clap::Factory<$plugin_ty> = ::nih_plug::wrapper::clap::Factory::default(); } // We don't need any special initialization or deinitialization handling @@ -44,7 +44,7 @@ macro_rules! nih_export_clap { ::nih_plug::wrapper::clap::CLAP_PLUGIN_FACTORY_ID, ) } { - &(*factory).clap_plugin_factory as *const _ as *const ::std::ffi::c_void + &(*FACTORY).clap_plugin_factory as *const _ as *const ::std::ffi::c_void } else { std::ptr::null() }