rustfmt all the things

This commit is contained in:
R. Andrew Ohana
2018-06-27 22:42:34 -07:00
parent a29e71ec49
commit 9127a0419f
62 changed files with 2724 additions and 1400 deletions

View File

@ -10,8 +10,8 @@ use std::path::PathBuf;
use std::process;
use docopt::Docopt;
use wasm_bindgen_cli_support::Bindgen;
use failure::Error;
use wasm_bindgen_cli_support::Bindgen;
const USAGE: &'static str = "
Generating JS bindings for a wasm file

View File

@ -1,12 +1,12 @@
#[macro_use]
extern crate serde_derive;
extern crate docopt;
extern crate failure;
extern crate parity_wasm;
extern crate wasm_bindgen_cli_support;
extern crate failure;
use std::fs::File;
use std::io::{Write, Read};
use std::io::{Read, Write};
use std::path::PathBuf;
use std::process;
@ -76,9 +76,7 @@ fn rmain(args: &Args) -> Result<(), Error> {
let ts = object.typescript();
File::create(&dst)
.and_then(|mut f| f.write_all(ts.as_bytes()))
.with_context(|_| {
format!("failed to write `{}`", dst.display())
})?;
.with_context(|_| format!("failed to write `{}`", dst.display()))?;
}
}