Skip to content

Commit cba3b86

Browse files
ojedaJocelyn Falempe
authored andcommitted
drm/panic: fix overindented list items in documentation
Starting with the upcoming Rust 1.86.0 (to be released 2025-04-03), Clippy warns: error: doc list item overindented --> drivers/gpu/drm/drm_panic_qr.rs:914:5 | 914 | /// will be encoded as binary segment, otherwise it will be encoded | ^^^ help: try using ` ` (2 spaces) | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items The overindentation is slightly hard to notice, since all the items start with a backquote that makes it look OK, but it is there. Thus fix it. Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Fixes: cb5164a ("drm/panic: Add a QR code panic screen") Cc: stable@vger.kernel.org # Needed in 6.12.y and 6.13.y only (Rust is pinned in older LTSs). Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250301231602.917580-2-ojeda@kernel.org
1 parent 986c2e9 commit cba3b86

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/gpu/drm/drm_panic_qr.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -911,16 +911,16 @@ impl QrImage<'_> {
911911
///
912912
/// * `url`: The base URL of the QR code. It will be encoded as Binary segment.
913913
/// * `data`: A pointer to the binary data, to be encoded. if URL is NULL, it
914-
/// will be encoded as binary segment, otherwise it will be encoded
915-
/// efficiently as a numeric segment, and appended to the URL.
914+
/// will be encoded as binary segment, otherwise it will be encoded
915+
/// efficiently as a numeric segment, and appended to the URL.
916916
/// * `data_len`: Length of the data, that needs to be encoded, must be less
917-
/// than data_size.
917+
/// than data_size.
918918
/// * `data_size`: Size of data buffer, it should be at least 4071 bytes to hold
919-
/// a V40 QR code. It will then be overwritten with the QR code image.
919+
/// a V40 QR code. It will then be overwritten with the QR code image.
920920
/// * `tmp`: A temporary buffer that the QR code encoder will use, to write the
921-
/// segments and ECC.
921+
/// segments and ECC.
922922
/// * `tmp_size`: Size of the temporary buffer, it must be at least 3706 bytes
923-
/// long for V40.
923+
/// long for V40.
924924
///
925925
/// # Safety
926926
///

0 commit comments

Comments
 (0)