Skip to content

Commit 60e6564

Browse files
committed
fix clippy
1 parent 59d865e commit 60e6564

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

rust/catalyst-signed-doc-macro/src/signed_doc_spec/doc_ref.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use crate::signed_doc_spec::{DocTypes, IsRequired};
44

55
/// `signed_doc.json` "ref" field JSON object
66
#[derive(serde::Deserialize)]
7+
#[allow(clippy::missing_docs_in_private_items)]
78
pub(crate) struct Ref {
89
pub(crate) required: IsRequired,
910
#[serde(rename = "type")]

rust/catalyst-signed-doc-macro/src/signed_doc_spec/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ pub(crate) struct DocSpec {
5151

5252
/// Document's metadata fields defintion
5353
#[derive(serde::Deserialize)]
54+
#[allow(clippy::missing_docs_in_private_items)]
5455
pub(crate) struct Metadata {
5556
#[serde(rename = "ref")]
5657
pub(crate) doc_ref: doc_ref::Ref,
@@ -59,12 +60,14 @@ pub(crate) struct Metadata {
5960
/// "required" field defition
6061
#[derive(serde::Deserialize)]
6162
#[serde(rename_all = "lowercase")]
63+
#[allow(clippy::missing_docs_in_private_items)]
6264
pub(crate) enum IsRequired {
6365
Yes,
6466
Excluded,
6567
Optional,
6668
}
6769

70+
/// A helper type for deserialization "type" metadata field
6871
pub(crate) struct DocTypes(Vec<DocumentName>);
6972

7073
impl Deref for DocTypes {
@@ -76,6 +79,7 @@ impl Deref for DocTypes {
7679
}
7780

7881
impl<'de> serde::Deserialize<'de> for DocTypes {
82+
#[allow(clippy::missing_docs_in_private_items)]
7983
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
8084
where D: serde::Deserializer<'de> {
8185
#[derive(serde::Deserialize)]

0 commit comments

Comments
 (0)