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.
This commit is contained in:
parent
db6867b794
commit
5f327aba86
|
|
@ -93,6 +93,7 @@ impl Id {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A trait indicating that a key has parameters.
|
/// A trait indicating that a key has parameters.
|
||||||
|
#[allow(clippy::missing_safety_doc)]
|
||||||
pub unsafe trait HasParams {}
|
pub unsafe trait HasParams {}
|
||||||
|
|
||||||
unsafe impl HasParams for Params {}
|
unsafe impl HasParams for Params {}
|
||||||
|
|
@ -100,6 +101,7 @@ unsafe impl HasParams for Params {}
|
||||||
unsafe impl<T> HasParams for T where T: HasPublic {}
|
unsafe impl<T> HasParams for T where T: HasPublic {}
|
||||||
|
|
||||||
/// A trait indicating that a key has public components.
|
/// A trait indicating that a key has public components.
|
||||||
|
#[allow(clippy::missing_safety_doc)]
|
||||||
pub unsafe trait HasPublic {}
|
pub unsafe trait HasPublic {}
|
||||||
|
|
||||||
unsafe impl HasPublic for Public {}
|
unsafe impl HasPublic for Public {}
|
||||||
|
|
@ -107,6 +109,7 @@ unsafe impl HasPublic for Public {}
|
||||||
unsafe impl<T> HasPublic for T where T: HasPrivate {}
|
unsafe impl<T> HasPublic for T where T: HasPrivate {}
|
||||||
|
|
||||||
/// A trait indicating that a key has private components.
|
/// A trait indicating that a key has private components.
|
||||||
|
#[allow(clippy::missing_safety_doc)]
|
||||||
pub unsafe trait HasPrivate {}
|
pub unsafe trait HasPrivate {}
|
||||||
|
|
||||||
unsafe impl HasPrivate for Private {}
|
unsafe impl HasPrivate for Private {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue