mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-15 14:01:25 +00:00
rustfmt all the things
This commit is contained in:
@ -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
|
||||
|
@ -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()))?;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user