Skip to content

Commit

Permalink
Fix clippy lints on aarch64-apple-darwin
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexcrichton committed Sep 28, 2024
1 parent c5e0433 commit ff820ca
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion crates/wasmtime/src/runtime/vm/sys/unix/machports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@
//! function declarations. Many bits and pieces are copied or translated from
//! the SpiderMonkey implementation and it should pass all the tests!

#![allow(non_snake_case, clippy::cast_sign_loss)]
#![allow(
// FFI bindings here for C/etc don't follow Rust's naming conventions.
non_snake_case,
// Platform-specific code has a lot of false positives with these lints so
// like Unix disable the lints for this module.
clippy::cast_sign_loss,
clippy::cast_possible_truncation
)]

use crate::runtime::module::lookup_code;
use crate::runtime::vm::sys::traphandlers::wasmtime_longjmp;
Expand Down

0 comments on commit ff820ca

Please sign in to comment.