mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-16 17:18:57 +00:00
cargo fmt
This commit is contained in:
@@ -440,10 +440,10 @@ pub extern "C" fn wasm_engine_new_with_config(
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[cfg(target_os = "windows")]
|
||||
use wasmer_inline_c::assert_c;
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
use inline_c::assert_c;
|
||||
#[cfg(target_os = "windows")]
|
||||
use wasmer_inline_c::assert_c;
|
||||
|
||||
#[test]
|
||||
fn test_engine_new() {
|
||||
|
||||
4
lib/c-api/src/wasm_c_api/externals/global.rs
vendored
4
lib/c-api/src/wasm_c_api/externals/global.rs
vendored
@@ -97,10 +97,10 @@ pub unsafe extern "C" fn wasm_global_type(
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[cfg(target_os = "windows")]
|
||||
use wasmer_inline_c::assert_c;
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
use inline_c::assert_c;
|
||||
#[cfg(target_os = "windows")]
|
||||
use wasmer_inline_c::assert_c;
|
||||
|
||||
#[test]
|
||||
fn test_set_host_global_immutable() {
|
||||
|
||||
4
lib/c-api/src/wasm_c_api/externals/mod.rs
vendored
4
lib/c-api/src/wasm_c_api/externals/mod.rs
vendored
@@ -132,10 +132,10 @@ pub extern "C" fn wasm_extern_as_table(r#extern: Option<&wasm_extern_t>) -> Opti
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[cfg(target_os = "windows")]
|
||||
use wasmer_inline_c::assert_c;
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
use inline_c::assert_c;
|
||||
#[cfg(target_os = "windows")]
|
||||
use wasmer_inline_c::assert_c;
|
||||
|
||||
#[test]
|
||||
fn test_extern_copy() {
|
||||
|
||||
@@ -207,10 +207,10 @@ pub unsafe extern "C" fn wasm_instance_exports(
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[cfg(target_os = "windows")]
|
||||
use wasmer_inline_c::assert_c;
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
use inline_c::assert_c;
|
||||
#[cfg(target_os = "windows")]
|
||||
use wasmer_inline_c::assert_c;
|
||||
|
||||
#[test]
|
||||
fn test_instance_new() {
|
||||
|
||||
@@ -480,10 +480,10 @@ pub unsafe extern "C" fn wasm_module_serialize(module: &wasm_module_t, out: &mut
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[cfg(target_os = "windows")]
|
||||
use wasmer_inline_c::assert_c;
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
use inline_c::assert_c;
|
||||
#[cfg(target_os = "windows")]
|
||||
use wasmer_inline_c::assert_c;
|
||||
|
||||
#[test]
|
||||
fn test_module_validate() {
|
||||
|
||||
@@ -144,10 +144,10 @@ pub unsafe extern "C" fn wasm_trap_trace(
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[cfg(target_os = "windows")]
|
||||
use wasmer_inline_c::assert_c;
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
use inline_c::assert_c;
|
||||
#[cfg(target_os = "windows")]
|
||||
use wasmer_inline_c::assert_c;
|
||||
|
||||
#[test]
|
||||
fn test_trap_message_null_terminated() {
|
||||
|
||||
@@ -166,11 +166,11 @@ pub extern "C" fn wasmer_is_engine_available(engine: wasmer_engine_t) -> bool {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
use inline_c::assert_c;
|
||||
use std::env::{remove_var, set_var};
|
||||
#[cfg(target_os = "windows")]
|
||||
use wasmer_inline_c::assert_c;
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
use inline_c::assert_c;
|
||||
|
||||
#[test]
|
||||
fn test_wasmer_is_headless() {
|
||||
|
||||
@@ -403,10 +403,10 @@ pub unsafe extern "C" fn wasi_get_start_function(
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[cfg(target_os = "windows")]
|
||||
use wasmer_inline_c::assert_c;
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
use inline_c::assert_c;
|
||||
#[cfg(target_os = "windows")]
|
||||
use wasmer_inline_c::assert_c;
|
||||
|
||||
#[test]
|
||||
fn test_wasi_get_wasi_version_snapshot0() {
|
||||
|
||||
@@ -26,10 +26,10 @@ pub unsafe extern "C" fn wat2wasm(wat: &wasm_byte_vec_t, out: &mut wasm_byte_vec
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[cfg(target_os = "windows")]
|
||||
use wasmer_inline_c::assert_c;
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
use inline_c::assert_c;
|
||||
#[cfg(target_os = "windows")]
|
||||
use wasmer_inline_c::assert_c;
|
||||
|
||||
#[test]
|
||||
fn test_wat2wasm() {
|
||||
|
||||
Reference in New Issue
Block a user