Update to the rustfmt in rust 1.31, which is now stable.

This commit is contained in:
Dan Gohman
2018-12-06 11:34:38 -05:00
parent 96941a59af
commit 8170a9db79
15 changed files with 39 additions and 48 deletions

View File

@@ -518,7 +518,8 @@ impl<'module_environment> cranelift_wasm::FuncEnvironment for FuncEnvironment<'m
.as_u32()
.checked_mul(u32::from(sig_id_size))
.unwrap(),
).unwrap(),
)
.unwrap(),
);
// Load the callee ID.

View File

@@ -6,10 +6,7 @@
#![deny(missing_docs, trivial_numeric_casts, unused_extern_crates)]
#![warn(unused_import_braces)]
#![cfg_attr(feature = "std", deny(unstable_features))]
#![cfg_attr(
feature = "clippy",
plugin(clippy(conf_file = "../../clippy.toml"))
)]
#![cfg_attr(feature = "clippy", plugin(clippy(conf_file = "../../clippy.toml")))]
#![cfg_attr(
feature = "cargo-clippy",
allow(new_without_default, new_without_default_derive)

View File

@@ -115,7 +115,8 @@ impl VMOffsets {
index
.checked_mul(u32::from(self.size_of_vmmemory()))
.unwrap(),
).unwrap()
)
.unwrap()
}
/// Return the offset from the `globals` pointer to `VMGlobal` index `index`.
@@ -124,7 +125,8 @@ impl VMOffsets {
index
.checked_mul(u32::from(self.size_of_vmglobal()))
.unwrap(),
).unwrap()
)
.unwrap()
}
/// Return the offset from the `tables` pointer to `VMTable` index `index`.
@@ -133,7 +135,8 @@ impl VMOffsets {
index
.checked_mul(u32::from(self.size_of_vmtable()))
.unwrap(),
).unwrap()
)
.unwrap()
}
/// Return the offset from the `memories` pointer to the `base` field in