Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Eliza Weisman <[email protected]>
  • Loading branch information
jamesmunns and hawkw authored Jul 7, 2024
1 parent 91b0405 commit 312b5e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions maitake-sync/src/wait_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -692,8 +692,10 @@ impl WaitQueue {
///
/// Consider using [`Self::wait_for_value()`] if your function does return a value.
///
/// * Returns `Ok(())` if the closure returns `true`.
/// * Returns `Err(Closed)` if the [`WaitQueue`] is closed.
/// # Returns
///
/// * [`Ok`]`(())` if the closure returns `true`.
/// * [`Err`]`(`[`Closed`]`)` if the [`WaitQueue`] is closed.

Check failure on line 698 in maitake-sync/src/wait_queue.rs

View workflow job for this annotation

GitHub Actions / docs

error: unresolved link to `Closed` --> maitake-sync/src/wait_queue.rs:698:23 | 698 | /// * [`Err`]`(`[`Closed`]`)` if the [`WaitQueue`] is closed. | ^^^^^^ no item named `Closed` in scope | = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` = note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(rustdoc::broken_intra_doc_links)]`
pub async fn wait_for<F: FnMut() -> bool>(&self, mut f: F) -> WaitResult<()> {
loop {
let wait = self.wait();
Expand Down

0 comments on commit 312b5e5

Please sign in to comment.