|
23 | 23 | //! [`cancel`](trait.Aio.html#method.cancel) or |
24 | 24 | //! [`aio_cancel_all`](fn.aio_cancel_all.html), though the operating system may |
25 | 25 | //! not support this for all filesystems and devices. |
| 26 | +#![allow(clippy::doc_overindented_list_items)] // It looks better this way |
26 | 27 | #[cfg(target_os = "freebsd")] |
27 | 28 | use std::io::{IoSlice, IoSliceMut}; |
28 | 29 | use std::{ |
@@ -313,7 +314,7 @@ pub trait Aio { |
313 | 314 | fn error(self: Pin<&mut Self>) -> Result<()>; |
314 | 315 |
|
315 | 316 | /// Returns the underlying file descriptor associated with the operation. |
316 | | - fn fd(&self) -> BorrowedFd; |
| 317 | + fn fd(&self) -> BorrowedFd<'_>; |
317 | 318 |
|
318 | 319 | /// Does this operation currently have any in-kernel state? |
319 | 320 | /// |
@@ -572,8 +573,9 @@ impl<'a> AioRead<'a> { |
572 | 573 | /// * `fd`: File descriptor to read from |
573 | 574 | /// * `offs`: File offset |
574 | 575 | /// * `buf`: A memory buffer. It must outlive the `AioRead`. |
575 | | - /// * `prio`: If POSIX Prioritized IO is supported, then the operation |
576 | | - /// will be prioritized at the process's priority level minus `prio` |
| 576 | + /// * `prio`: If POSIX Prioritized IO is supported, then the |
| 577 | + /// operation will be prioritized at the process's |
| 578 | + /// priority level minus `prio`. |
577 | 579 | /// * `sigev_notify`: Determines how you will be notified of event completion. |
578 | 580 | pub fn new( |
579 | 581 | fd: BorrowedFd<'a>, |
@@ -802,8 +804,9 @@ impl<'a> AioWrite<'a> { |
802 | 804 | /// * `fd`: File descriptor to write to |
803 | 805 | /// * `offs`: File offset |
804 | 806 | /// * `buf`: A memory buffer. It must outlive the `AioWrite`. |
805 | | - /// * `prio`: If POSIX Prioritized IO is supported, then the operation |
806 | | - /// will be prioritized at the process's priority level minus `prio` |
| 807 | + /// * `prio`: If POSIX Prioritized IO is supported, then the |
| 808 | + /// operation will be prioritized at the process's |
| 809 | + /// priority level minus `prio` |
807 | 810 | /// * `sigev_notify`: Determines how you will be notified of event completion. |
808 | 811 | pub fn new( |
809 | 812 | fd: BorrowedFd<'a>, |
|
0 commit comments