cargo +nightly fmt --all

Rustfmt all the things!
This commit is contained in:
Alex Crichton
2018-09-26 08:26:00 -07:00
parent a3e160744e
commit 7ecf4aae87
163 changed files with 2975 additions and 1998 deletions

View File

@ -17,7 +17,7 @@ pub struct Timeout {
}
#[wasm_bindgen]
extern {
extern "C" {
#[wasm_bindgen(js_name = setTimeout)]
fn set_timeout(closure: JsValue, millis: f64) -> u32;
@ -27,7 +27,8 @@ extern {
impl Timeout {
pub fn new(dur: Duration) -> Timeout {
let millis = dur.as_secs()
let millis = dur
.as_secs()
.checked_mul(1000)
.unwrap()
.checked_add(dur.subsec_millis() as u64)