From cd9b589d23e5ee63bf194cdd99d6bc612c1a4863 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Mon, 6 May 2024 00:35:27 +0200 Subject: [PATCH] Fix invalid debug assertions check --- plugins/diopser/src/editor.rs | 2 +- plugins/spectral_compressor/src/editor.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/diopser/src/editor.rs b/plugins/diopser/src/editor.rs index 7c4a0283..a8d903e7 100644 --- a/plugins/diopser/src/editor.rs +++ b/plugins/diopser/src/editor.rs @@ -101,7 +101,7 @@ fn top_bar(cx: &mut Context) { // Try to open the Diopser plugin's page when clicking on the title. If this // fails then that's not a problem let result = open::that(Diopser::URL); - if cfg!(debug) && result.is_err() { + if cfg!(debug_assertions) && result.is_err() { nih_debug_assert_failure!("Failed to open web browser: {:?}", result); } } diff --git a/plugins/spectral_compressor/src/editor.rs b/plugins/spectral_compressor/src/editor.rs index 1b20be02..b66cf33d 100644 --- a/plugins/spectral_compressor/src/editor.rs +++ b/plugins/spectral_compressor/src/editor.rs @@ -126,7 +126,7 @@ fn main_column(cx: &mut Context) { // Try to open the plugin's page when clicking on the title. If this // fails then that's not a problem let result = open::that(SpectralCompressor::URL); - if cfg!(debug) && result.is_err() { + if cfg!(debug_assertions) && result.is_err() { nih_debug_assert_failure!( "Failed to open web browser: {:?}", result