From 124673a4df0f8214ff6f85d2b40ca2345de8f902 Mon Sep 17 00:00:00 2001 From: vms Date: Tue, 14 Jul 2020 18:43:08 +0300 Subject: [PATCH] use all instead of any --- crates/main/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/main/src/lib.rs b/crates/main/src/lib.rs index 8422b91..09c7b33 100644 --- a/crates/main/src/lib.rs +++ b/crates/main/src/lib.rs @@ -48,7 +48,7 @@ pub use result::set_result_size; #[allow(unused_variables)] pub(crate) fn log>(msg: S) { // logs will be printed only if debug feature is enabled - #[cfg(any(feature = "debug", feature = "logger"))] + #[cfg(all(feature = "debug", feature = "logger"))] unsafe { let msg = msg.as_ref(); logger::log_utf8_string(msg.as_ptr() as _, msg.len() as _);