Skip to content

Commit f2692bf

Browse files
committed
Fix doc indentation to satistfy clippy.
Signed-off-by: Sergio Lopez <[email protected]>
1 parent df5fc2f commit f2692bf

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

src/devices/src/virtio/net/gvproxy.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ impl NetBackend for Gvproxy {
105105
/// (Will mutate and override parts of buf, with a passt header!)
106106
///
107107
/// * `hdr_len` - specifies the size of any existing headers encapsulating the ethernet frame,
108-
/// (such as vnet header), that can be overwritten.
109-
/// must be >= PASST_HEADER_LEN
108+
/// (such as vnet header), that can be overwritten. Must be >= PASST_HEADER_LEN.
110109
/// * `buf` - the buffer to write to passt, `buf[..hdr_len]` may be overwritten
111110
///
112111
/// If this function returns WriteError::PartialWrite, you have to finish the write using

src/devices/src/virtio/net/passt.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ impl NetBackend for Passt {
133133
/// (Will mutate and override parts of buf, with a passt header!)
134134
///
135135
/// * `hdr_len` - specifies the size of any existing headers encapsulating the ethernet frame,
136-
/// (such as vnet header), that can be overwritten.
137-
/// must be >= PASST_HEADER_LEN
136+
/// (such as vnet header), that can be overwritten. Must be >= PASST_HEADER_LEN.
138137
/// * `buf` - the buffer to write to passt, `buf[..hdr_len]` may be overwritten
139138
///
140139
/// If this function returns WriteError::PartialWrite, you have to finish the write using

src/polly/src/event_manager.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ pub trait Subscriber {
5151
/// # Arguments
5252
/// * event - the available `EpollEvent` ready for processing
5353
/// * event_manager - Reference to the `EventManager` that gives the implementor
54-
/// the possibility to directly call the required update operations.
55-
/// The only functions safe to call on this `EventManager` reference
56-
/// are `register`, `unregister` and `modify` which correspond to
57-
/// the `libc::epoll_ctl` operations.
54+
/// the possibility to directly call the required update operations.
55+
/// The only functions safe to call on this `EventManager` reference
56+
/// are `register`, `unregister` and `modify` which correspond to
57+
/// the `libc::epoll_ctl` operations.
5858
fn process(&mut self, event: &EpollEvent, event_manager: &mut EventManager);
5959

6060
/// Returns a list of `EpollEvent` that this subscriber is interested in.

0 commit comments

Comments
 (0)