cargo fmt

This commit is contained in:
Felix Schütt
2022-09-26 10:22:56 +02:00
parent 35d41e75cf
commit 449a77fb6b
2 changed files with 8 additions and 8 deletions

View File

@@ -189,13 +189,11 @@ fn test_run() {
};
for test in TESTS.iter() {
let mut manifest_dir_parent = std::path::Path::new(&manifest_dir);
let mut manifest_dir_parent = manifest_dir_parent.parent().unwrap();
let c_file_path = manifest_dir_parent.join(&format!("{test}.c"));
if target.contains("msvc") {
let mut build = cc::Build::new();
let mut build = build
.cargo_metadata(false)
@@ -280,7 +278,10 @@ fn test_run() {
if !std::path::Path::new(&exe_outpath).exists() {
panic!("error: {exe_outpath} does not exist");
}
if !std::path::Path::new(&wasmer_dll_dir).join("wasmer.dll").exists() {
if !std::path::Path::new(&wasmer_dll_dir)
.join("wasmer.dll")
.exists()
{
panic!("error: {wasmer_dll_dir} has no wasmer.dll");
}
// execute

View File

@@ -24,7 +24,6 @@ impl Config {
println!("manifest dir = {manifest_dir}, wasmer root dir = {wasmer_base_dir}");
config.wasmer_dir = wasmer_base_dir.clone() + "/package";
if !std::path::Path::new(&config.wasmer_dir).exists() {
println!("running make build-capi...");
// run make build-capi
let mut cmd = std::process::Command::new("make");