Skip to content

Commit

Permalink
docs: rust: clean up empty \\\ lines and improve rustdoc formatting
Browse files Browse the repository at this point in the history
Remove unnecessary empty `\\\` lines in the rust docs. Also add linebreaks
in kernel::block::mq::Request to fix formatting

Suggested-by: Miguel Ojeda <[email protected]>
Link: Rust-for-Linux#1109
Signed-off-by: hridesh <[email protected]>
  • Loading branch information
hrideshmg authored and intel-lab-lkp committed Sep 9, 2024
1 parent 93dc3be commit 0823380
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions rust/kernel/block/mq/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@ use core::{
///
/// There are four states for a request that the Rust bindings care about:
///
/// A) Request is owned by block layer (refcount 0)
/// A) Request is owned by block layer (refcount 0)\
/// B) Request is owned by driver but with zero `ARef`s in existence
/// (refcount 1)
/// (refcount 1)\
/// C) Request is owned by driver with exactly one `ARef` in existence
/// (refcount 2)
/// (refcount 2)\
/// D) Request is owned by driver with more than one `ARef` in existence
/// (refcount > 2)
///
///
/// We need to track A and B to ensure we fail tag to request conversions for
/// requests that are not owned by the driver.
///
Expand Down
1 change: 0 additions & 1 deletion rust/kernel/rbtree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,6 @@ impl<K, V> Iterator for IterRaw<K, V> {

/// A memory reservation for a red-black tree node.
///
///
/// It contains the memory needed to hold a node that can be inserted into a red-black tree. One
/// can be obtained by directly allocating it ([`RBTreeNodeReservation::new`]).
pub struct RBTreeNodeReservation<K, V> {
Expand Down

0 comments on commit 0823380

Please sign in to comment.