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:
camc314 committed 2026-08-12 15:11:55 +00:00
1 parent 78bf14f4f8
commit 88b34f2db2
1 file changed
+1 -3
+1 -3
View File
@@ -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