From aa7207630677ebfae77c716d9cdf986b9a5401d0 Mon Sep 17 00:00:00 2001 From: gibbz00 Date: Mon, 21 Oct 2024 20:42:16 +0200 Subject: [PATCH] fix: rust-doc warnings --- .github/workflows/rust.yml | 8 +++++++- src/extensions/rgp/poll.rs | 2 +- src/extensions/secdns.rs | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 92ab277..65c094c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -62,7 +62,7 @@ jobs: profile: minimal toolchain: stable override: true - components: rustfmt, clippy + components: rustfmt, clippy, rust-docs - uses: actions-rs/cargo@v1 with: command: fmt @@ -72,6 +72,12 @@ jobs: with: command: clippy args: --workspace --all-targets --all-features -- -D warnings + - uses: actions-rs/cargo@v1 + env: + RUSTDOCFLAGS: "-D warnings" + with: + command: doc + args: --no-deps --all-features --document-private-items audit: runs-on: ubuntu-latest diff --git a/src/extensions/rgp/poll.rs b/src/extensions/rgp/poll.rs index f6d546b..4d65112 100644 --- a/src/extensions/rgp/poll.rs +++ b/src/extensions/rgp/poll.rs @@ -1,4 +1,4 @@ -//! https://www.verisign.com/assets/epp-sdk/verisign_epp-extension_rgp-poll_v00.html +//! use chrono::{DateTime, Utc}; use instant_xml::FromXml; diff --git a/src/extensions/secdns.rs b/src/extensions/secdns.rs index 20098fe..d2ccfbe 100644 --- a/src/extensions/secdns.rs +++ b/src/extensions/secdns.rs @@ -137,7 +137,7 @@ impl<'a> DsDataType<'a> { } /// DigestAlgorithm identifies the algorithm used to construct the digest -/// https://www.iana.org/assignments/ds-rr-types/ds-rr-types.xhtml +/// #[derive(Clone, Copy, Debug)] // XXX Do NOT derive PartialEq, Hash or Ord because the variant // Other(u8) could clash with one of the other variants. They have to @@ -173,7 +173,7 @@ impl ToXml for DigestAlgorithm { } /// Algorithm identifies the public key's cryptographic algorithm -/// https://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml#dns-sec-alg-numbers-1 +/// #[derive(Clone, Copy, Debug)] // XXX Do NOT derive PartialEq, Hash or Ord because the variant // Other(u8) could clash with one of the other variants. They have to