Skip to content

Commit 7035c0a

Browse files
committed
virtio-blk: add missing method doc in tests
Add missing doc comment in #[cfg(test)] Request::new() method to silence the `missing_docs` rustc lint. error: missing documentation for an associated function --> virtio-blk/src/request.rs:278:9 | 278 | / pub fn new( 279 | | request_type: RequestType, 280 | | data: Vec<(GuestAddress, u32)>, 281 | | sector: u64, 282 | | status_addr: GuestAddress, 283 | | ) -> Self { | |_________________^ | note: the lint level is defined here --> virtio-blk/src/lib.rs:8:9 | 8 | #![deny(missing_docs)] | ^^^^^^^^^^^^ Signed-off-by: Manos Pitsidianakis <[email protected]>
1 parent 8aff76a commit 7035c0a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

virtio-blk/src/request.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ mod tests {
275275
}
276276

277277
impl Request {
278+
/// Manually create mock `Request` instances.
278279
pub fn new(
279280
request_type: RequestType,
280281
data: Vec<(GuestAddress, u32)>,

0 commit comments

Comments
 (0)