1
0
Fork 0

Fix fallback permit_alloc() implementation

This commit is contained in:
Robbert van der Helm 2022-03-06 15:42:32 +01:00
parent d7ea21f597
commit af4db7be53

View file

@ -18,7 +18,7 @@ pub fn permit_alloc<T, F: FnOnce() -> T>(func: F) -> T {
/// `assert_process_allocs` feature.
#[cfg(not(all(debug_assertions, feature = "assert_process_allocs")))]
pub fn permit_alloc<T, F: FnOnce() -> T>(func: F) -> T {
func
func()
}
/// Convert decibels to a voltage gain ratio, treating anything below -100 dB as minus infinity.