Skip to content

Commit

Permalink
Run rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Mar 11, 2019
1 parent 73b3ace commit 02d607c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/command/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,7 @@ impl Test {
}
};

let dl =
bindgen::install_wasm_bindgen(&self.cache, &bindgen_version, install_permitted)?;
let dl = bindgen::install_wasm_bindgen(&self.cache, &bindgen_version, install_permitted)?;

self.test_runner_path = Some(dl.binary("wasm-bindgen-test-runner")?);

Expand Down
1 change: 0 additions & 1 deletion src/manifest/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use self::npm::{
};
use cargo_metadata::Metadata;
use command::build::{BuildProfile, Target};
use emoji;
use failure::{Error, ResultExt};
use serde::{self, Deserialize};
use serde_json;
Expand Down
7 changes: 1 addition & 6 deletions tests/all/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,7 @@ fn it_creates_a_package_json_provided_path_with_scope() {
let crate_data = manifest::CrateData::new(&fixture.path).unwrap();
wasm_pack::command::utils::create_pkg_dir(&out_dir).unwrap();
assert!(crate_data
.write_package_json(
&out_dir,
&Some("test".to_string()),
false,
&Target::Bundler,
)
.write_package_json(&out_dir, &Some("test".to_string()), false, &Target::Bundler,)
.is_ok());
let package_json_path = &fixture.path.join("pkg").join("package.json");
fs::metadata(package_json_path).unwrap();
Expand Down

0 comments on commit 02d607c

Please sign in to comment.