-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add and fix more lints, improve docs #4765
Conversation
5f52818
to
9e47873
Compare
Codecov Report
... and 4 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm overall
@@ -1037,6 +1039,7 @@ pub(crate) enum PeerCommand { | |||
|
|||
/// Actions the peer manager can trigger. | |||
#[derive(Debug)] | |||
#[allow(missing_docs)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this allow is not needed i think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can also be resolved by adding a simple one liner to PeerRemoved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
struct-like variants' fields need docs (c
in enum A { B { c: ... } }
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW this whole module/crate is weird, I would appreciate someone taking a look after this PR with unreachable_pub
because a lot of the public structs reference private ones in docs and I don't know which should be public or not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
supportive, only minor nits
@@ -1037,6 +1039,7 @@ pub(crate) enum PeerCommand { | |||
|
|||
/// Actions the peer manager can trigger. | |||
#[derive(Debug)] | |||
#[allow(missing_docs)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can also be resolved by adding a simple one liner to PeerRemoved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See commits, just boring changes:
rustdoc::all
--generate-link-to-definition
,--show-type-layout
, and#![feature(doc_cfg, doc_auto_cfg)]
unstable features to rustdoc builds for better documentation