Clippy fixes

This commit is contained in:
Brian Carroll 2022-01-09 16:41:53 +00:00
parent 4f15fb3967
commit dd79a9b35a
3 changed files with 3 additions and 2 deletions

View file

@ -117,7 +117,7 @@ impl<'a> WasmModule<'a> {
pub fn preload(arena: &'a Bump, bytes: &[u8]) -> Self {
let is_valid_magic_number = &bytes[0..4] == "\0asm".as_bytes();
let is_valid_version = &bytes[4..8] == Self::WASM_VERSION.to_le_bytes();
let is_valid_version = bytes[4..8] == Self::WASM_VERSION.to_le_bytes();
if !is_valid_magic_number || !is_valid_version {
internal_error!("Invalid Wasm object file header for platform & builtins");
}