commit | e516211f615fb54ce3429870eefc17469ae289b8 | [log] [tgz] |
---|---|---|
author | Miguel Ojeda <[email protected]> | Tue Jul 09 18:05:56 2024 +0200 |
committer | Miguel Ojeda <[email protected]> | Wed Jul 10 10:28:51 2024 +0200 |
tree | 6872d04c4ae8242630c6bd6482e5527b5efb8e28 | |
parent | fc6e66f4696b63b8a2645a2bcea407cb04bd0666 [diff] |
rust: macros: indent list item in `paste!`'s docs A new style lint, `doc_lazy_continuation` [1], has been introduced in the upcoming Rust 1.80 (currently in beta), which detects missing indentation in code documentation. We have one such case: error: doc list item missing indentation --> rust/macros/lib.rs:315:5 | 315 | /// default the span of the `[< >]` group is used. | ^ | = help: if this is supposed to be its own paragraph, add a blank line = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation = note: `-D clippy::doc-lazy-continuation` implied by `-D clippy::style` = help: to override `-D clippy::style` add `#[allow(clippy::doc_lazy_continuation)]` help: indent this line | 315 | /// default the span of the `[< >]` group is used. | ++ While the rendering of the docs by `rustdoc` is not affected, we apply this kind of indentation elsewhere since it looks better. Thus clean it up. Link: https://rust-lang.github.io/rust-clippy/master/index.html#/doc_lazy_continuation [1] Reviewed-by: Björn Roy Baron <[email protected]> Reviewed-by: Finn Behrens <[email protected]> Tested-by: Benno Lossin <[email protected]> Tested-by: Andreas Hindborg <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>