Run cargo fmt over all code

This commit is contained in:
Alex Crichton
2019-08-12 11:28:37 -07:00
parent 3697fb7205
commit 1d0c333a2b
9 changed files with 21 additions and 25 deletions

View File

@ -627,14 +627,10 @@ impl<'a> Context<'a> {
// Make sure to export the `anyref` table for the JS bindings since it
// will need to be initialized. If it doesn't exist though then the
// module must not use it, so we skip it.
let table = self
.module
.tables
.iter()
.find(|t| match t.kind {
walrus::TableKind::Anyref(_) => true,
_ => false,
});
let table = self.module.tables.iter().find(|t| match t.kind {
walrus::TableKind::Anyref(_) => true,
_ => false,
});
let table = match table {
Some(t) => t.id(),
None => return Ok(()),
@ -642,11 +638,9 @@ impl<'a> Context<'a> {
self.module.exports.add("__wbg_anyref_table", table);
let ty = self.module.types.add(&[], &[]);
let (import, import_id) = self.module.add_import_func(
PLACEHOLDER_MODULE,
"__wbindgen_init_anyref_table",
ty,
);
let (import, import_id) =
self.module
.add_import_func(PLACEHOLDER_MODULE, "__wbindgen_init_anyref_table", ty);
self.module.start = Some(match self.module.start {
Some(prev_start) => {