Run fmt and clippy

This commit is contained in:
Gus Caplan
2019-05-28 09:52:44 -05:00
parent dfcaabc738
commit 2cc40a27d2
9 changed files with 84 additions and 64 deletions

View File

@ -6,7 +6,7 @@ use wasm_bindgen::JsCast;
use web_sys::Node;
#[wasm_bindgen(raw_module = "../globals.js")]
extern {
extern "C" {
#[wasm_bindgen(js_name = jsthunk)]
fn js_thunk();
#[wasm_bindgen(js_name = add)]
@ -57,8 +57,10 @@ pub fn fibonacci(n: i32) -> i32 {
b += a;
a = tmp;
}
unsafe { FIB_HIGH = (a >> 32) as i32; }
return a as i32
unsafe {
FIB_HIGH = (a >> 32) as i32;
}
return a as i32;
}
#[wasm_bindgen]
@ -97,7 +99,7 @@ pub fn call_doesnt_throw_with_catch_n_times(n: usize) {
}
#[wasm_bindgen]
extern {
extern "C" {
pub type Element;
#[wasm_bindgen(method, js_name = firstChild, final, getter)]