mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Clippy fixes
This commit is contained in:
parent
4f15fb3967
commit
dd79a9b35a
3 changed files with 3 additions and 2 deletions
|
@ -57,6 +57,7 @@ pub struct WasmBackend<'a> {
|
|||
}
|
||||
|
||||
impl<'a> WasmBackend<'a> {
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn new(
|
||||
env: &'a Env<'a>,
|
||||
interns: &'a mut Interns,
|
||||
|
|
|
@ -233,5 +233,5 @@ pub const DEBUG_LOG_SETTINGS: WasmDebugLogSettings = WasmDebugLogSettings {
|
|||
helper_procs_ir: false && cfg!(debug_assertions),
|
||||
let_stmt_ir: false && cfg!(debug_assertions),
|
||||
instructions: false && cfg!(debug_assertions),
|
||||
keep_test_binary: false && cfg!(debug_assertions),
|
||||
keep_test_binary: true && cfg!(debug_assertions),
|
||||
};
|
||||
|
|
|
@ -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