Enable the deny(unsafe_op_in_unsafe_fn)
lint everywhere in librustzcash we define unsafe
functions
#703
Labels
deny(unsafe_op_in_unsafe_fn)
lint everywhere in librustzcash we define unsafe
functions
#703
Similar to Electric-Coin-Company/zcash-light-client-ffi#65 :
A side-effect of declaring a function
unsafe
is that unsafe operations in its body are no longer required to be inunsafe
blocks (see Rust RFC 2585 for a proposal to change this, not yet adopted). Ideally, we should enable thedeny(unsafe_op_in_unsafe_fn)
lint everywhere we defineunsafe
functions, since the style we write FFI functions in is mostly already consistent with that lint.The text was updated successfully, but these errors were encountered: