From bf59a9496b34425ee54a43ae31c5217c21ca8dc8 Mon Sep 17 00:00:00 2001 From: Benno Straub Date: Sat, 25 Nov 2023 20:18:27 +0100 Subject: [PATCH] Fix an error in nih_export_vst3 and a warning in nih_export_clap --- src/wrapper/clap.rs | 2 +- src/wrapper/vst3.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wrapper/clap.rs b/src/wrapper/clap.rs index b969154b..3e7d2f3e 100644 --- a/src/wrapper/clap.rs +++ b/src/wrapper/clap.rs @@ -82,7 +82,7 @@ macro_rules! nih_export_clap { } unsafe extern "C" fn create_plugin ( - factory: *const clap_plugin_factory, + _factory: *const clap_plugin_factory, host: *const clap_host, plugin_id: *const c_char, ) -> *const clap_plugin { diff --git a/src/wrapper/vst3.rs b/src/wrapper/vst3.rs index e2938dae..7856a6a4 100644 --- a/src/wrapper/vst3.rs +++ b/src/wrapper/vst3.rs @@ -59,7 +59,7 @@ macro_rules! nih_export_vst3 { if cfg!(debug_assertions) { let unique_cids: HashSet<[u8; 16]> = plugin_infos.iter().map(|d| *d.cid).collect(); - nih_debug_assert_eq!( + $crate::nih_debug_assert_eq!( unique_cids.len(), plugin_infos.len(), "Duplicate VST3 class IDs found in `nih_export_vst3!()` call"