rust: pin-init: use Markdown autolinks in Rust comments"Normal" comments in Rust (`//`) are also formatted in Markdown, likethe documentation (`///` and `//!`), seeDocumentation/rust/coding-guide
rust: pin-init: use Markdown autolinks in Rust comments"Normal" comments in Rust (`//`) are also formatted in Markdown, likethe documentation (`///` and `//!`), seeDocumentation/rust/coding-guidelines.rstThus use Markdown autolinks for a couple links that were missing it.It also helps to get proper linking in some software like kitty [1].Suggested-by: Benno Lossin <[email protected]>Link: https://github.com/Rust-for-Linux/pin-init/pull/32#discussion_r2023103712 [1]Signed-off-by: Miguel Ojeda <[email protected]>Link: https://github.com/Rust-for-Linux/pin-init/pull/32/commits/dd230d61bf0538281072fbff4bb71efc58f3420cFixes: 84837cf6fa54 ("rust: pin-init: change examples to the user-space version")Cc: [email protected][ Change case in title. Reworded commit message. - Benno ]Signed-off-by: Benno Lossin <[email protected]>Link: https://lore.kernel.org/r/[email protected]Signed-off-by: Miguel Ojeda <[email protected]>
show more ...
rust: pin-init: change examples to the user-space versionReplace the examples in the documentation by the ones from theuser-space version and introduce the standalone examples from theuser-space
rust: pin-init: change examples to the user-space versionReplace the examples in the documentation by the ones from theuser-space version and introduce the standalone examples from theuser-space version such as the `CMutex<T>` type.The `CMutex<T>` example from the pinned-init repository [1] is used inseveral documentation examples in the user-space version instead of thekernel `Mutex<T>` type (as it's not available). In order to split offthe pin-init crate, all examples need to be free of kernel-specifictypes.Link: https://github.com/rust-for-Linux/pinned-init [1]Signed-off-by: Benno Lossin <[email protected]>Reviewed-by: Fiona Behrens <[email protected]>Tested-by: Andreas Hindborg <[email protected]>Link: https://lore.kernel.org/r/[email protected]Signed-off-by: Miguel Ojeda <[email protected]>