Capitalize the FACTORY lazy static
To stop the linters from complaining.
This commit is contained in:
parent
a26ddbb45e
commit
e718bbd0a4
1 changed files with 2 additions and 2 deletions
|
@ -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
|
// We don't use generics inside of statics, so this lazy_static is used as kind of an
|
||||||
// escape hatch
|
// escape hatch
|
||||||
::nih_plug::wrapper::clap::lazy_static! {
|
::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
|
// 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,
|
::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 {
|
} else {
|
||||||
std::ptr::null()
|
std::ptr::null()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue