chore(rln): clippy ignore unsafe

Already wrapped in unsafe block but doesn't seem to work. Whole function
can be made unsafe but shouldn't be necessary from what I can tell.
This commit is contained in:
Oskar Thoren 2022-03-16 14:16:43 +08:00
parent abe67c8d4a
commit 6717a24c07
No known key found for this signature in database
GPG Key ID: B2ECCFD3BC2EF77E
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,7 @@ impl<'a> From<&Buffer> for &'a [u8] {
}
}
#[allow(clippy::not_unsafe_ptr_arg_deref)]
#[no_mangle]
pub extern "C" fn new_circuit(ctx: *mut *mut RLN) -> bool {
println!("rln ffi: new");
@ -38,6 +39,7 @@ pub extern "C" fn new_circuit(ctx: *mut *mut RLN) -> bool {
true
}
#[allow(clippy::not_unsafe_ptr_arg_deref)]
#[no_mangle]
pub extern "C" fn prove(
ctx: *const RLN,
@ -56,6 +58,7 @@ pub extern "C" fn prove(
true
}
#[allow(clippy::not_unsafe_ptr_arg_deref)]
#[no_mangle]
pub extern "C" fn verify(
ctx: *const RLN,