Skip to content

Commit 5c8cd22

Browse files
authored
Fix clippy lints on aarch64-apple-darwin (#9324)
This isn't caught in CI because it's in platform-specific code, but allow a few extra lints in platform-specific code since the "noisier than default" stance is not as useful for platform-specific code where we have far less control over integral types.
1 parent c0c3e79 commit 5c8cd22

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

crates/wasmtime/src/runtime/vm/sys/unix/machports.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,14 @@
3131
//! function declarations. Many bits and pieces are copied or translated from
3232
//! the SpiderMonkey implementation and it should pass all the tests!
3333
34-
#![allow(non_snake_case, clippy::cast_sign_loss)]
34+
#![allow(
35+
// FFI bindings here for C/etc don't follow Rust's naming conventions.
36+
non_snake_case,
37+
// Platform-specific code has a lot of false positives with these lints so
38+
// like Unix disable the lints for this module.
39+
clippy::cast_sign_loss,
40+
clippy::cast_possible_truncation
41+
)]
3542

3643
use crate::runtime::module::lookup_code;
3744
use crate::runtime::vm::sys::traphandlers::wasmtime_longjmp;

0 commit comments

Comments
 (0)