-
Notifications
You must be signed in to change notification settings - Fork 9
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
Do some docs improvements #35
Conversation
Implement a pattern we have recently been playing with. Currently public re-exports are listed in a separate section in the HTML docs. This is kinda clunky, instead use `doc(inline)`. Separately but related, put the pub re-export statements below other use statements and use `rustfmt::skip` to stop `rustfmt` from squashing them together.
No content change, just slight re-wording.
Slightly improve the documentation about using the `package` trick in the manifest when depending on this crate.
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.
ACK 0bc4043
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.
ACK 0bc4043
use super::Case; | ||
|
||
#[rustfmt::skip] // Keep public re-exports separate. | ||
#[doc(inline)] | ||
pub use self::out_bytes::OutBytes; |
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.
Why is this exported in the first place? This should be just mostly-internal type, downstream crates don't need to touch it.
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.
Its in a private module, without this it would be private to the crate - is that what we want?
Note, changing it is not in scope for this PR so we can still merge.
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.
🤦♂️ sorry, I thought it's in lib.rs
Do a few minor improvements, note please that patch one is not just docs it introduces the
rustfmt::skip
trick for public re-exports. Its part of "docs improvements" because it includes addingdoc(inline)
. The other two are trivial.