aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2025-02-20 12:22:17 -0800
committerJack O'Connor <[email protected]>2025-02-20 12:22:17 -0800
commit2cb802b115aa248f6534f353f26cc9060378bc31 (patch)
tree88362fa88f93242c732d37fe73dd5cd3f655843d /src
parenteccd0e5379bacc1121e3550714f5a4d5690ba776 (diff)
revert `unsafe extern "C"` blocks
This will be necessary when we eventually move to the 2024 edition, but for now it's an unnecessary MSRV bump.
Diffstat (limited to 'src')
-rw-r--r--src/ffi_avx2.rs2
-rw-r--r--src/ffi_avx512.rs2
-rw-r--r--src/ffi_sse2.rs2
-rw-r--r--src/ffi_sse41.rs2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/ffi_avx2.rs b/src/ffi_avx2.rs
index ef954bd..43bf150 100644
--- a/src/ffi_avx2.rs
+++ b/src/ffi_avx2.rs
@@ -35,7 +35,7 @@ pub unsafe fn hash_many<const N: usize>(
}
pub mod ffi {
- unsafe extern "C" {
+ extern "C" {
pub fn blake3_hash_many_avx2(
inputs: *const *const u8,
num_inputs: usize,
diff --git a/src/ffi_avx512.rs b/src/ffi_avx512.rs
index c83048e..e648eda 100644
--- a/src/ffi_avx512.rs
+++ b/src/ffi_avx512.rs
@@ -97,7 +97,7 @@ pub unsafe fn xof_many(
}
pub mod ffi {
- unsafe extern "C" {
+ extern "C" {
pub fn blake3_compress_in_place_avx512(
cv: *mut u32,
block: *const u8,
diff --git a/src/ffi_sse2.rs b/src/ffi_sse2.rs
index 78f09b8..8dafd69 100644
--- a/src/ffi_sse2.rs
+++ b/src/ffi_sse2.rs
@@ -73,7 +73,7 @@ pub unsafe fn hash_many<const N: usize>(
}
pub mod ffi {
- unsafe extern "C" {
+ extern "C" {
pub fn blake3_compress_in_place_sse2(
cv: *mut u32,
block: *const u8,
diff --git a/src/ffi_sse41.rs b/src/ffi_sse41.rs
index 77ab89a..f851ca1 100644
--- a/src/ffi_sse41.rs
+++ b/src/ffi_sse41.rs
@@ -73,7 +73,7 @@ pub unsafe fn hash_many<const N: usize>(
}
pub mod ffi {
- unsafe extern "C" {
+ extern "C" {
pub fn blake3_compress_in_place_sse41(
cv: *mut u32,
block: *const u8,