Skip to content

Commit 5f327ab

Browse files
ilammyjyn514
authored andcommitted
boring: Suppress Clippy warnings about missing safety docs
I'm not quite sure why these are unsafe traits, probably to prevent implementing them for random types accidentally. However, Clippy demands a "# Safety" section in their docs. Tell it to get lost.
1 parent db6867b commit 5f327ab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

boring/src/pkey.rs

+3
Original file line numberDiff line numberDiff line change
@@ -93,20 +93,23 @@ impl Id {
9393
}
9494

9595
/// A trait indicating that a key has parameters.
96+
#[allow(clippy::missing_safety_doc)]
9697
pub unsafe trait HasParams {}
9798

9899
unsafe impl HasParams for Params {}
99100

100101
unsafe impl<T> HasParams for T where T: HasPublic {}
101102

102103
/// A trait indicating that a key has public components.
104+
#[allow(clippy::missing_safety_doc)]
103105
pub unsafe trait HasPublic {}
104106

105107
unsafe impl HasPublic for Public {}
106108

107109
unsafe impl<T> HasPublic for T where T: HasPrivate {}
108110

109111
/// A trait indicating that a key has private components.
112+
#[allow(clippy::missing_safety_doc)]
110113
pub unsafe trait HasPrivate {}
111114

112115
unsafe impl HasPrivate for Private {}

0 commit comments

Comments
 (0)