mirror of
https://github.com/aphrody-labs/oxc.git
synced 2026-10-14 22:29:17 +00:00
fix(clippy): remove unneeded unsafe (#25551)
ah lint only runs on linux so this didn't fail previously in CI
This commit is contained in:
1 parent
78bf14f4f8
commit
88b34f2db2
1 file changed
+1
-3
@@ -45,9 +45,7 @@ impl ToInt32 for f64 {
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
#[target_feature(enable = "jsconv")]
|
||||
unsafe fn f64_to_int32_arm64(number: f64) -> i32 {
|
||||
// SAFETY: `jsconv` target feature was just verified to be available,
|
||||
// so the `fjcvtzs` instruction used by `__jcvt` is available.
|
||||
unsafe { std::arch::aarch64::__jcvt(number) }
|
||||
std::arch::aarch64::__jcvt(number)
|
||||
}
|
||||
|
||||
/// Generic implementation of ToInt32 for non-ARM64 architectures or ARM64 without JSCVT
|
||||
|
||||
Reference in new issue
Block a user