From af4db7be53265a52bf89918b015d2fb399352625 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 6 Mar 2022 15:42:32 +0100 Subject: [PATCH] Fix fallback permit_alloc() implementation --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index 7dd5318b..c22dc434 100644 --- a/src/util.rs +++ b/src/util.rs @@ -18,7 +18,7 @@ pub fn permit_alloc T>(func: F) -> T { /// `assert_process_allocs` feature. #[cfg(not(all(debug_assertions, feature = "assert_process_allocs")))] pub fn permit_alloc T>(func: F) -> T { - func + func() } /// Convert decibels to a voltage gain ratio, treating anything below -100 dB as minus infinity.