use all instead of any

This commit is contained in:
vms 2020-07-14 18:43:08 +03:00
parent fc5a0d81cb
commit 124673a4df

View File

@ -48,7 +48,7 @@ pub use result::set_result_size;
#[allow(unused_variables)]
pub(crate) fn log<S: AsRef<str>>(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 _);