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

@ -1,10 +1,10 @@
use core::char;
use core::mem::{self, ManuallyDrop};
use convert::{Stack, FromWasmAbi, IntoWasmAbi, RefFromWasmAbi};
use convert::{OptionIntoWasmAbi, OptionFromWasmAbi, ReturnWasmAbi};
use convert::traits::WasmAbi;
use {JsValue, Clamped};
use convert::{FromWasmAbi, IntoWasmAbi, RefFromWasmAbi, Stack};
use convert::{OptionFromWasmAbi, OptionIntoWasmAbi, ReturnWasmAbi};
use {Clamped, JsValue};
unsafe impl WasmAbi for () {}
@ -224,12 +224,16 @@ impl FromWasmAbi for bool {
impl OptionIntoWasmAbi for bool {
#[inline]
fn none() -> u32 { 0xFFFFFFu32 }
fn none() -> u32 {
0xFFFFFFu32
}
}
impl OptionFromWasmAbi for bool {
#[inline]
fn is_none(js: &u32) -> bool { *js == 0xFFFFFFu32 }
fn is_none(js: &u32) -> bool {
*js == 0xFFFFFFu32
}
}
impl IntoWasmAbi for char {