mirror of
https://github.com/fluencelabs/marine-rs-sdk
synced 2025-03-15 14:30:48 +00:00
fix building
This commit is contained in:
parent
742ff0e2df
commit
ab438b33d0
@ -57,9 +57,9 @@ pub(crate) fn log<S: AsRef<str>>(msg: S) {
|
|||||||
let msg = msg.as_ref();
|
let msg = msg.as_ref();
|
||||||
|
|
||||||
if cfg!(target_arch = "wasm32") {
|
if cfg!(target_arch = "wasm32") {
|
||||||
unsafe { logger::log_utf8_string(log_msg.as_ptr() as i32, log_msg.len() as i32) };
|
logger::log_utf8_string(msg.as_ptr() as i32, msg.len() as i32);
|
||||||
} else {
|
} else {
|
||||||
println!("{}", log_msg);
|
println!("{}", msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user