From d12be7966c709353da5f0969046294f661b31aea Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Tue, 29 Dec 2020 19:28:53 +0000 Subject: [PATCH] drop unnecessary no_mangle annotations on non-exported functions --- secp256k1-sys/src/lib.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/secp256k1-sys/src/lib.rs b/secp256k1-sys/src/lib.rs index 7253a83..53c0674 100644 --- a/secp256k1-sys/src/lib.rs +++ b/secp256k1-sys/src/lib.rs @@ -626,7 +626,6 @@ pub unsafe extern "C" fn rustsecp256k1_v0_4_0_default_error_callback_fn(message: panic!("[libsecp256k1] internal consistency check failed {}", msg); } -#[no_mangle] #[cfg(not(rust_secp_no_symbol_renaming))] unsafe fn strlen(mut str_ptr: *const c_char) -> usize { let mut ctr = 0; @@ -761,7 +760,6 @@ pub use self::fuzz_dummy::*; #[cfg(test)] mod tests { - #[no_mangle] #[cfg(not(rust_secp_no_symbol_renaming))] #[test] fn test_strlen() {