Skip to content

Commit

Permalink
Fix cargo doc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vlovich committed Apr 26, 2024
1 parent 9d9d0a1 commit e5ecea6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions glommio/src/io/dma_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ impl DmaFile {
/// Copies a file range from one file to another in kernel space. This is going to have the same performance
/// characteristic as splice except if both files are on the same filesystem and the filesystem supports reflinks.
/// In that case, the underlying disk blocks will be CoW linked instead of actually performing a copy.
/// Since `copy_file_range` is not yet implemented on io_uring (https://github.com/axboe/liburing/issues/831),
/// Since `copy_file_range` is not yet implemented on io_uring <https://github.com/axboe/liburing/issues/831>,
/// this is just a dispatch to the blocking thread pool to do the syscall.
pub async fn copy_file_range_aligned(
&self,
Expand Down Expand Up @@ -643,7 +643,7 @@ impl DmaFile {
}

/// The major ID of the device containing the filesystem where the file resides.
/// The device may be found by issuing a `readlink`` on `/sys/dev/block/<major>:<minor>`
/// The device may be found by issuing a `readlink` on `/sys/dev/block/<major>:<minor>`
pub fn dev_major(&self) -> u32 {
self.file.dev_major
}
Expand Down Expand Up @@ -803,7 +803,7 @@ impl OwnedDmaFile {
}

/// The major ID of the device containing the filesystem where the file resides.
/// The device may be found by issuing a `readlink`` on `/sys/dev/block/<major>:<minor>`
/// The device may be found by issuing a `readlink` on `/sys/dev/block/<major>:<minor>`
pub fn dev_major(&self) -> u32 {
self.file.dev_major
}
Expand Down
4 changes: 2 additions & 2 deletions glommio/src/timer/timer_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ impl TimerActionRepeat {
///
/// * `action_gen` a Future to be executed repeatedly. The Future's return
/// value must be
/// Option<Duration>. If [`Some`], It will execute again after Duration
/// `Option<Duration>`. If [`Some`], It will execute again after Duration
/// elapses. If `None`, it stops.
/// * `tq` the [`TaskQueueHandle`] for the TaskQueue we want.
///
Expand Down Expand Up @@ -641,7 +641,7 @@ impl TimerActionRepeat {
///
/// * `action_gen` a Future to be executed repeatedly. The Future's return
/// value must be
/// Option<Duration>. If [`Some`], It will execute again after Duration
/// `Option<Duration>`. If [`Some`], It will execute again after Duration
/// elapses. If `None`, it stops.
///
/// # Examples
Expand Down

0 comments on commit e5ecea6

Please sign in to comment.