Skip to content

Commit 0823380

Browse files
hrideshmgintel-lab-lkp
authored andcommitted
docs: rust: clean up empty \\\ lines and improve rustdoc formatting
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]>
1 parent 93dc3be commit 0823380

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

rust/kernel/block/mq/request.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,14 @@ use core::{
2222
///
2323
/// There are four states for a request that the Rust bindings care about:
2424
///
25-
/// A) Request is owned by block layer (refcount 0)
25+
/// A) Request is owned by block layer (refcount 0)\
2626
/// B) Request is owned by driver but with zero `ARef`s in existence
27-
/// (refcount 1)
27+
/// (refcount 1)\
2828
/// C) Request is owned by driver with exactly one `ARef` in existence
29-
/// (refcount 2)
29+
/// (refcount 2)\
3030
/// D) Request is owned by driver with more than one `ARef` in existence
3131
/// (refcount > 2)
3232
///
33-
///
3433
/// We need to track A and B to ensure we fail tag to request conversions for
3534
/// requests that are not owned by the driver.
3635
///

rust/kernel/rbtree.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,6 @@ impl<K, V> Iterator for IterRaw<K, V> {
10311031

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

0 commit comments

Comments
 (0)