From affb9465d5faa3a8bde162596b5bdf12005903e1 Mon Sep 17 00:00:00 2001 From: Mark McCaskey Date: Mon, 15 Jul 2019 10:43:30 -0700 Subject: [PATCH] update rustfmt.toml to ignore and fmt --- lib/wasi-tests/tests/wasitests/envvar.rs | 2 +- lib/wasi-tests/tests/wasitests/fseek.rs | 5 ++++- lib/wasi-tests/tests/wasitests/mapdir.rs | 5 ++++- rustfmt.toml | 3 ++- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/lib/wasi-tests/tests/wasitests/envvar.rs b/lib/wasi-tests/tests/wasitests/envvar.rs index 36952ba34..f32c6c36e 100644 --- a/lib/wasi-tests/tests/wasitests/envvar.rs +++ b/lib/wasi-tests/tests/wasitests/envvar.rs @@ -4,7 +4,7 @@ fn test_envvar() { "../../wasitests/envvar.wasm", "envvar", vec![], - vec!["DOG=1".to_string(),"CAT=2".to_string(),], + vec!["DOG=1".to_string(), "CAT=2".to_string(),], "../../wasitests/envvar.out" ); } diff --git a/lib/wasi-tests/tests/wasitests/fseek.rs b/lib/wasi-tests/tests/wasitests/fseek.rs index 8b1a34feb..e48dd5814 100644 --- a/lib/wasi-tests/tests/wasitests/fseek.rs +++ b/lib/wasi-tests/tests/wasitests/fseek.rs @@ -3,7 +3,10 @@ fn test_fseek() { assert_wasi_output!( "../../wasitests/fseek.wasm", "fseek", - vec![(".".to_string(), ::std::path::PathBuf::from("wasitests/test_fs/hamlet")),], + vec![( + ".".to_string(), + ::std::path::PathBuf::from("wasitests/test_fs/hamlet") + ),], vec![], "../../wasitests/fseek.out" ); diff --git a/lib/wasi-tests/tests/wasitests/mapdir.rs b/lib/wasi-tests/tests/wasitests/mapdir.rs index 057c3076e..efb99c7a4 100644 --- a/lib/wasi-tests/tests/wasitests/mapdir.rs +++ b/lib/wasi-tests/tests/wasitests/mapdir.rs @@ -3,7 +3,10 @@ fn test_mapdir() { assert_wasi_output!( "../../wasitests/mapdir.wasm", "mapdir", - vec![(".".to_string(), ::std::path::PathBuf::from("wasitests/test_fs/hamlet")),], + vec![( + ".".to_string(), + ::std::path::PathBuf::from("wasitests/test_fs/hamlet") + ),], vec![], "../../wasitests/mapdir.out" ); diff --git a/rustfmt.toml b/rustfmt.toml index 4a3e0232a..d590c8b69 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,4 +1,5 @@ ignore = [ "src/spectests", - "src/emtests", + "src/emscripten-tests", + "src/wasi-tests", ]