cargo fmt

This commit is contained in:
Felix Schütt
2022-09-16 00:03:13 +02:00
parent 1895dd21bb
commit 7eb4d0fc7c
9 changed files with 18 additions and 18 deletions

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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() {

View File

@@ -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() {