1
0
Fork 0

Capitalize the FACTORY lazy static

To stop the linters from complaining.
This commit is contained in:
Robbert van der Helm 2022-02-28 17:30:21 +01:00
parent a26ddbb45e
commit e718bbd0a4

View file

@ -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()
}