mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
Clippy fixes
This commit is contained in:
parent
4f15fb3967
commit
dd79a9b35a
3 changed files with 3 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue