Skip to content

Fix cargo doc warnings#2404

Open
wutchzone wants to merge 2 commits intocloudflare:masterfrom
wutchzone:master
Open

Fix cargo doc warnings#2404
wutchzone wants to merge 2 commits intocloudflare:masterfrom
wutchzone:master

Conversation

@wutchzone
Copy link
Copy Markdown

When running cargo doc --workspace --all-features --no-deps it prints out plenty of warnings about invalid hyperlinks. This series fixes them all.

Maybe we should add documentation generation to the pipeline so we do not have broken links in the documentation?

@wutchzone wutchzone requested a review from a team as a code owner March 16, 2026 08:04
@antoniovicente
Copy link
Copy Markdown
Contributor

Adding docs checks to CI does seem like a good call.

Comment thread quiche/src/lib.rs Outdated
Comment on lines +1753 to +1754
///
/// [`RFC9000`]: https://datatracker.ietf.org/doc/html/rfc9000#section-7.2-3
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
///
/// [`RFC9000`]: https://datatracker.ietf.org/doc/html/rfc9000#section-7.2-3

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with mentioning the section part, but why do you think inlining the hyperlink into the text, compared to this fragment specifier method, is better? IMO, when inlined, it is much harder to read in an IDE.

Also, the connect_with_dcid has been commented in a similar fashion.

Comment thread quiche/src/lib.rs Outdated
Comment on lines 1746 to 1749
/// Creates a new client-side connection, with a custom buffer generation
/// method using the given dcid initially.
/// Be aware the RFC places requirements for unpredictability and length
/// Be aware the [`RFC9000`] places requirements for unpredictability and length
/// on the client DCID field.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This results in odd grammar, better to replace the whole block with

/// Creates a new client-side connection, with a custom buffer generation method
/// using the given dcid initially. Be aware that [RFC 9000, Section
/// 7.2.3](https://datatracker.ietf.org/doc/html/rfc9000#section-7.2-3) places
/// requirements for unpredictability and length on the client DCID field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants