Migrate all crates to the 2018 edition

Most of the CLI crates were already in the 2018 edition, and it turns
out that one of the macro crates was already in the 2018 edition so we
may as well move everything to the 2018 edition!

Always nice to remove those `extern crate` statements nowadays!

This commit also does a `cargo fmt --all` to make sure we're conforming
with style again.
This commit is contained in:
Alex Crichton
2019-03-26 08:00:16 -07:00
parent c5d2b2d1fb
commit a6fe0cefa8
53 changed files with 245 additions and 279 deletions

View File

@ -8,4 +8,4 @@ const TS_INTERFACE_EXPORT: &'static str = r"
#[wasm_bindgen]
pub struct Person {
pub height: u32,
}
}

View File

@ -1,4 +1,4 @@
mod custom_section;
mod opt_args_and_ret;
mod simple_fn;
mod simple_struct;
mod simple_struct;

View File

@ -3,4 +3,4 @@ use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub fn opt_fn(_a: Option<i32>) -> Option<i32> {
None
}
}

View File

@ -1,4 +1,4 @@
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub fn greet(_: &str) {}
pub fn greet(_: &str) {}

View File

@ -1,12 +1,11 @@
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub struct A {
}
pub struct A {}
#[wasm_bindgen]
impl A {
#[wasm_bindgen(constructor)]
#[wasm_bindgen(constructor)]
pub fn new() -> A {
A {}
}
@ -14,4 +13,4 @@ impl A {
pub fn other() {}
pub fn foo(&self) {}
}
}