mirror of
https://github.com/fluencelabs/marine-rs-sdk-test
synced 2024-12-04 23:30:18 +00:00
use all instead of any
This commit is contained in:
parent
fc5a0d81cb
commit
124673a4df
@ -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 _);
|
||||
|
Loading…
Reference in New Issue
Block a user