From 6c895df13b77c105ee7f60212d33825dea4977f2 Mon Sep 17 00:00:00 2001 From: Mirko Covizzi Date: Mon, 27 Apr 2020 18:40:38 +0200 Subject: [PATCH] Adapt interface ordering issue to single component implementations --- com/macros/support/src/utils/idents.rs | 4 +--- examples/passthru.rs | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/com/macros/support/src/utils/idents.rs b/com/macros/support/src/utils/idents.rs index f9fbb0b..3b7d44b 100644 --- a/com/macros/support/src/utils/idents.rs +++ b/com/macros/support/src/utils/idents.rs @@ -68,9 +68,7 @@ pub fn base_interface_idents(attr_args: &AttributeArgs) -> Vec { format_ident!("IComponent"), "IComponent should always be first." ); - } - - if base_interface_idents.contains(&format_ident!("IEditController")) { + } else if base_interface_idents.contains(&format_ident!("IEditController")) { assert_eq!( base_interface_idents[0], format_ident!("IEditController"), diff --git a/examples/passthru.rs b/examples/passthru.rs index 2e01843..41d26c1 100644 --- a/examples/passthru.rs +++ b/examples/passthru.rs @@ -36,6 +36,7 @@ unsafe fn wstrcpy(src: &str, dst: *mut c_short) { } #[VST3(implements( + IComponent, IEditController, IAudioProcessor, IAutomationState,