From 3856db20b95c1c803c4234d959e9d263ebfa1464 Mon Sep 17 00:00:00 2001 From: Ashley Williams Date: Mon, 24 Sep 2018 15:35:08 -0400 Subject: [PATCH] fix(style): appease cargo fmt --- src/command/test.rs | 2 +- tests/all/lockfile.rs | 20 ++++---------------- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/src/command/test.rs b/src/command/test.rs index fc3afa2..ed803dc 100644 --- a/src/command/test.rs +++ b/src/command/test.rs @@ -255,7 +255,7 @@ impl Test { wasm-bindgen-test = \"0.2\"", style("wasm-bindgen").bold().dim(), ); - return Err(Error::CrateConfig { message }) + return Err(Error::CrateConfig { message }); } let install_permitted = match self.mode { diff --git a/tests/all/lockfile.rs b/tests/all/lockfile.rs index d8958eb..1ee6e3b 100644 --- a/tests/all/lockfile.rs +++ b/tests/all/lockfile.rs @@ -6,10 +6,7 @@ fn it_gets_wasm_bindgen_version() { let fixture = fixture::js_hello_world(); fixture.cargo_check(); let lock = Lockfile::new(&fixture.path).unwrap(); - assert_eq!( - lock.wasm_bindgen_version(), - Some("0.2.21"), - ); + assert_eq!(lock.wasm_bindgen_version(), Some("0.2.21"),); } #[test] @@ -17,10 +14,7 @@ fn it_gets_wasm_bindgen_test_version() { let fixture = fixture::wbg_test_node(); fixture.cargo_check(); let lock = Lockfile::new(&fixture.path).unwrap(); - assert_eq!( - lock.wasm_bindgen_test_version(), - Some("0.2.21"), - ); + assert_eq!(lock.wasm_bindgen_test_version(), Some("0.2.21"),); } #[test] @@ -62,10 +56,7 @@ fn it_gets_wasm_bindgen_version_in_crate_inside_workspace() { ); fixture.cargo_check(); let lock = Lockfile::new(&fixture.path.join("blah")).unwrap(); - assert_eq!( - lock.wasm_bindgen_version(), - Some("0.2.21"), - ); + assert_eq!(lock.wasm_bindgen_version(), Some("0.2.21"),); } #[test] @@ -128,8 +119,5 @@ fn it_gets_wasm_bindgen_version_from_dependencies() { ); fixture.cargo_check(); let lock = Lockfile::new(&fixture.path.join("parent")).unwrap(); - assert_eq!( - lock.wasm_bindgen_version(), - Some("0.2.21"), - ); + assert_eq!(lock.wasm_bindgen_version(), Some("0.2.21"),); }