You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1d4d337 Separate public and private use statements (Tobin C. Harding)
Pull request description:
Improve the public exports in two ways:
1. Inline re-exports into the docs of the module that re-exports them.
2. Separate public and private use statements
Recently we discussed a way to separate the public and private import statements to make the code more clear and prevent `rustfmt` joining them all together.
Separate public exports using a code block and `#[rustfmt::skip]`. Has the nice advantage of reducing the number of `#[doc(inline)]` attributes also.
1. Modules first, as they are part of the project's structure.
2. Private imports
3. Public re-exports (using `rustfmt::skip` to prevent merge)
Use the format
```rust
mod xyz;
mod abc;
use ...;
pub use {
...,
};
```
This patch introduces changes to the rendered HTML docs.
ACKs for top commit:
clarkmoody:
ACK 1d4d337
apoelstra:
ACK 1d4d337
Tree-SHA512: bdeeb862ea7e1e91f9dbfcce2beff99aedd0bf8cc916607237dff32e2f20be7cb70ef4235d0a823dfea30bd4bf48e0bafbcfa43e13402c7ddf5aadd7a83b64b1
0 commit comments