drop unnecessary no_mangle annotations on non-exported functions

This commit is contained in:
Andrew Poelstra 2020-12-29 19:28:53 +00:00
parent 58f946fcc8
commit d12be7966c
1 changed files with 0 additions and 2 deletions

View File

@ -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); panic!("[libsecp256k1] internal consistency check failed {}", msg);
} }
#[no_mangle]
#[cfg(not(rust_secp_no_symbol_renaming))] #[cfg(not(rust_secp_no_symbol_renaming))]
unsafe fn strlen(mut str_ptr: *const c_char) -> usize { unsafe fn strlen(mut str_ptr: *const c_char) -> usize {
let mut ctr = 0; let mut ctr = 0;
@ -761,7 +760,6 @@ pub use self::fuzz_dummy::*;
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
#[no_mangle]
#[cfg(not(rust_secp_no_symbol_renaming))] #[cfg(not(rust_secp_no_symbol_renaming))]
#[test] #[test]
fn test_strlen() { fn test_strlen() {