Skip to content

Commit d64132c

Browse files
committed
Allow missing_safety_doc
We have a whole bunch of unsafe code that calls down to the FFI layer. It would be nice to have clippy running on CI, these safety docs warnings are prohibiting that. Until we can add the docs add a compiler attribute to allow the lint.
1 parent 2cb687f commit d64132c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

secp256k1-sys/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
// Coding conventions
2020
#![deny(non_upper_case_globals, non_camel_case_types, non_snake_case, unused_mut)]
2121

22+
#![allow(clippy::missing_safety_doc)]
23+
2224
#![cfg_attr(all(not(test), not(feature = "std")), no_std)]
2325
#![cfg_attr(docsrs, feature(doc_cfg))]
2426

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@
152152
#![deny(non_upper_case_globals, non_camel_case_types, non_snake_case)]
153153
#![warn(missing_docs, missing_copy_implementations, missing_debug_implementations)]
154154

155+
#![allow(clippy::missing_safety_doc)]
156+
155157
#![cfg_attr(all(not(test), not(feature = "std")), no_std)]
156158
#![cfg_attr(all(test, feature = "unstable"), feature(test))]
157159
#![cfg_attr(docsrs, feature(doc_cfg))]

0 commit comments

Comments
 (0)