Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rust: platform: fix docs related to missing Markdown code spans

Convert `TODO` from documentation to a normal comment, and put code in
block.

This was found using the Clippy `doc_markdown` lint, which we may want
to enable.

Fixes: 683a63befc73 ("rust: platform: add basic platform device / driver abstractions")
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20250324210359.1199574-9-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>

+5 -4
+5 -4
rust/kernel/platform.rs
··· 151 151 ///``` 152 152 pub trait Driver: Send { 153 153 /// The type holding driver private data about each device id supported by the driver. 154 - /// 155 - /// TODO: Use associated_type_defaults once stabilized: 156 - /// 157 - /// type IdInfo: 'static = (); 154 + // TODO: Use associated_type_defaults once stabilized: 155 + // 156 + // ``` 157 + // type IdInfo: 'static = (); 158 + // ``` 158 159 type IdInfo: 'static; 159 160 160 161 /// The table of OF device ids supported by the driver.